From: Jakub Czajka Date: Sun, 6 Nov 2022 15:16:41 +0000 (+0100) Subject: [postfix] Relay incoming email to `dovecot` through LMTP. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=a8b19ca023da8abd02411151c67003e1eb5a47f1;p=server.git [postfix] Relay incoming email to `dovecot` through LMTP. Local Mail Transfer Protocol (LMTP) is a protocol for transfering local email. --- diff --git a/dovecot/10-master.conf b/dovecot/10-master.conf index 73dc404..abdda26 100644 --- a/dovecot/10-master.conf +++ b/dovecot/10-master.conf @@ -52,8 +52,10 @@ service submission-login { } service lmtp { - unix_listener lmtp { - #mode = 0666 + unix_listener /var/spool/postfix/private/dovecot-lmtp { + mode = 0600 + user = postfix + group = postfix } # Create inet listener only if you can't use the above UNIX socket diff --git a/dovecot/README b/dovecot/README index fb6087f..4cba856 100644 --- a/dovecot/README +++ b/dovecot/README @@ -76,7 +76,7 @@ Install Each package corresponds to a plugin: ``` -$ apt install dovecot-imapd dovecot-pgsql +$ apt install dovecot-imapd dovecot-lmtpd dovecot-pgsql ``` Tables diff --git a/postfix/main.cf b/postfix/main.cf index c2184c5..d47f02c 100644 --- a/postfix/main.cf +++ b/postfix/main.cf @@ -25,6 +25,8 @@ smtpd_tls_key_file = ${mail_ssl_cert_dir}/privkey.pem smtpd_tls_mandatory_ciphers = high smtpd_tls_security_level = encrypt +mailbox_transport = lmtp:unix:private/dovecot-lmtp + # Message rewrite always_add_missing_headers = yes # OpenDKIM