diff options
Diffstat (limited to 'app/email/build')
-rw-r--r-- | app/email/build/dovecot/Dockerfile | 2 | ||||
-rw-r--r-- | app/email/build/dovecot/conf/dovecot.conf | 24 |
2 files changed, 16 insertions, 10 deletions
diff --git a/app/email/build/dovecot/Dockerfile b/app/email/build/dovecot/Dockerfile index 9b87627..8e57c57 100644 --- a/app/email/build/dovecot/Dockerfile +++ b/app/email/build/dovecot/Dockerfile @@ -1,4 +1,4 @@ -FROM amd64/debian:stretch +FROM amd64/debian:bullseye RUN apt-get update && \ apt-get install -y \ diff --git a/app/email/build/dovecot/conf/dovecot.conf b/app/email/build/dovecot/conf/dovecot.conf index 0d5068c..b0fffbf 100644 --- a/app/email/build/dovecot/conf/dovecot.conf +++ b/app/email/build/dovecot/conf/dovecot.conf @@ -19,10 +19,7 @@ service auth { } } -passdb { - args = /etc/dovecot/dovecot-ldap.conf - driver = ldap -} + service lmtp { inet_listener lmtp { @@ -31,6 +28,20 @@ service lmtp { } } +# https://doc.dovecot.org/configuration_manual/authentication/ldap_authentication/ +passdb { + args = /etc/dovecot/dovecot-ldap.conf + driver = ldap +} +userdb { + driver = prefetch +} +userdb { + args = /etc/dovecot/dovecot-ldap.conf + driver = ldap +} + + service imap-login { inet_listener imap { port = 143 @@ -40,11 +51,6 @@ service imap-login { } } -userdb { - args = uid=mailstore gid=mailstore home=/var/mail/%u - driver = static -} - protocol imap { mail_plugins = $mail_plugins imap_sieve } |