summaryrefslogtreecommitdiffstats
path: root/roles/IMAP-proxy/templates/etc/dovecot/conf.d/auth-imap.conf.ext.j2
blob: 30b8d7ff3c27b3a6b5573c7727466144abda9fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Authentication via remote IMAP server. Included from auth.conf.
#
# <doc/wiki/PasswordDatabase.IMAP.txt>

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.
# <doc/wiki/UserDatabase.Prefetch.txt>
userdb {
  driver         = prefetch
  default_fields = home=/var/lib/imapproxy/%d/%n
}