Fix and comment the LMTP config better
authorAlex Dehnert <adehnert@mit.edu>
Thu, 28 May 2020 20:35:22 +0000 (20:35 +0000)
committerAlex Dehnert <adehnert@mit.edu>
Thu, 28 May 2020 20:35:22 +0000 (20:35 +0000)
conf.d/10-master.conf
conf.d/20-lmtp.conf

index 31b8e22bf7148c046dc2ed8bcc7d31264f98f121..496443cc1280dfefeb478cf0a1df77c86ead6521 100644 (file)
@@ -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
index a95bea4f538feda26f12957ddca13f41a1ffacc9..d1c91c98b6d2f0bab64f471611681c42425f7c39 100644 (file)
@@ -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: %$