make Postfix -> Dovecot delivery over LMTP (was LDA) (#305) (#360)

This commit is contained in:
Kai Ren 2016-10-24 16:03:08 +03:00 committed by Thomas VIAL
parent 50a3418d7f
commit a62062c382
6 changed files with 25 additions and 14 deletions

View file

@ -58,14 +58,10 @@ smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
# Mail directory
virtual_mailbox_base = /var/mail
virtual_transport = lmtp:unix:/var/run/dovecot/lmtp
virtual_mailbox_domains = /etc/postfix/vhost
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
# Enable Dovecot Sieve
virtual_transport = dovecot
# Additional option for filtering
content_filter = smtp-amavis:[127.0.0.1]:10024

View file

@ -45,7 +45,7 @@ retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
lmtp unix - - n - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
@ -63,12 +63,6 @@ mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
#
# Dovecot LDA configuration
#
dovecot unix - n n - - pipe
flags=DRhu user=docker argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -m ${extension}
#
# Amavis configuration