diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-04-19 20:59:24 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-04-19 20:59:24 +0100 |
commit | 293af4aa75d6640225a0ebd4ffa7f3cce5d6dc6e (patch) | |
tree | b95d0b66433d5cee3bdfd3d66212a3751d0e1959 | |
parent | ee2c1021481511f26668c781215fe9fb91a4c338 (diff) | |
download | infra-293af4aa75d6640225a0ebd4ffa7f3cce5d6dc6e.tar.gz infra-293af4aa75d6640225a0ebd4ffa7f3cce5d6dc6e.tar.bz2 infra-293af4aa75d6640225a0ebd4ffa7f3cce5d6dc6e.zip |
Setup lmtp protocol for dovecot
-rw-r--r-- | roles/dovecot/files/dovecot.conf | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/roles/dovecot/files/dovecot.conf b/roles/dovecot/files/dovecot.conf index 35e8c3f..3271cbd 100644 --- a/roles/dovecot/files/dovecot.conf +++ b/roles/dovecot/files/dovecot.conf @@ -1,5 +1,5 @@ # Protocols we want to be serving. -protocols = imap pop3 +protocols = imap pop3 lmtp # Path to the mail directory. mail_location = maildir:/var/mail/%d/%n/Maildir @@ -20,6 +20,28 @@ service auth { } } +service lmtp { + unix_listener /var/spool/postfix/private/dovecot-lmtp { + mode = 0600 + user = postfix + group = postfix + } +} + +service imap-login { + # Do not listen for plain IMAP. + inet_listener imap { + port = 0 + } +} + +service pop3-login { + # Do not listen for plain POP3. + inet_listener pop3 { + port = 0 + } +} + namespace { inbox = yes separator = / @@ -58,17 +80,3 @@ userdb { args = username_format=%u /etc/dovecot/passwd override_fields = uid=vmail gid=vmail } - -service imap-login { - # Do not listen for plain IMAP. - inet_listener imap { - port = 0 - } -} - -service pop3-login { - # Do not listen for plain POP3. - inet_listener pop3 { - port = 0 - } -} |