diff options
Diffstat (limited to 'roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2')
-rw-r--r-- | roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2 b/roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2 new file mode 100644 index 0000000..5e2b28c --- /dev/null +++ b/roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2 @@ -0,0 +1,17 @@ +# Authentication via remote IMAP server. Included from auth.conf. +# +# <doc/wiki/PasswordDatabase.IMAP.txt> + +passdb { + driver = imap + args = host={{ IMAP }} port=143 + default_fields = userdb_imapc_user=%u userdb_imapc_password=%w +} + +# "prefetch" user database means that the passdb already provided the +# needed information and there's no need to do a separate userdb lookup. +# <doc/wiki/UserDatabase.Prefetch.txt> +userdb { + driver = prefetch + default_fields = home=/home/imapproxy/%d/%n +} |