From 4b59f7a4cfe0f84e2084f01671982b7713a534aa Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 23 May 2016 00:28:37 +0200 Subject: Dovecot imapc: don't hardcode the master IMAP server's IP. --- .../templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2 (limited to 'roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2') 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..30b8d7f --- /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. +# +# + +passdb { + driver = imap + args = host={{ ipsec[imapsvr.inventory_hostname_short] }} port=143 + default_fields = 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. +# +userdb { + driver = prefetch + default_fields = home=/var/lib/imapproxy/%d/%n +} -- cgit v1.2.3