auth_realms = {{ getv "/mail/domains" }} auth_default_realm = {{ first 1 (split (getv "/mail/domains") " ") }} auth_username_format = {{ getv "/auth/username/format" }} auth_mechanisms = {{ getv "/auth/mechanisms" }} {{ if eq (getv "/auth/master/enable") "yes"}} passdb { driver = passwd-file master = yes args = /etc/dovecot/master-users # Unless you're using PAM, you probably still want the destination user to # be looked up from passdb that it really exists. pass=yes does that. pass = yes } {{ end }} {{ if eq (getv "/auth/ldap/enable") "yes"}} passdb { driver = ldap args = /etc/dovecot/local.d/ldap.conf.ext } userdb { driver = prefetch } userdb { driver = ldap args = /etc/dovecot/local.d/ldap2.conf.ext } {{ end }}