From: Alex Dehnert Date: Thu, 28 May 2020 20:35:22 +0000 (+0000) Subject: Fix and comment the LMTP config better X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=b8d193b6606d1bb659f5e90f1a129cfb8059f434;p=sysconfig%2Fdovecot.git Fix and comment the LMTP config better --- diff --git a/conf.d/10-master.conf b/conf.d/10-master.conf index 31b8e22..496443c 100644 --- a/conf.d/10-master.conf +++ b/conf.d/10-master.conf @@ -49,6 +49,9 @@ service lmtp { #unix_listener lmtp { #mode = 0666 #} + user = dovecot-vmail + executable = lmtp -L + unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 diff --git a/conf.d/20-lmtp.conf b/conf.d/20-lmtp.conf index a95bea4..d1c91c9 100644 --- a/conf.d/20-lmtp.conf +++ b/conf.d/20-lmtp.conf @@ -24,6 +24,10 @@ protocol lmtp { # Space separated list of plugins to load (default is global mail_plugins). mail_plugins = $mail_plugins sieve + # Postfix passes the whole user@domain, and we only deal with users, so just + # strip the domain part off. Docs on the %n construct at: + # https://doc.dovecot.org/configuration_manual/config_file/config_variables/ + # Inspired by lowercasing comment on https://wiki2.dovecot.org/LMTP/Exim auth_username_format = %Ln deliver_log_format = msgid=%m, subj=%s: %$