Browse Source

Use lmtp instead of lda for delivery.

Miloš Hadžić 9 years ago
parent
commit
d823ed0848

+ 1
- 1
roles/mailserver/files/etc_postfix_master.cf View File

117
 dspam     unix  -       n       n       -       10      pipe
117
 dspam     unix  -       n       n       -       10      pipe
118
   flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent,spam --user ${user}@${domain} -i -f $sender -- $recipient
118
   flags=Ru user=dspam argv=/usr/bin/dspam --deliver=innocent,spam --user ${user}@${domain} -i -f $sender -- $recipient
119
 dovecot   unix  -       n       n       -       -       pipe
119
 dovecot   unix  -       n       n       -       -       pipe
120
-  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${user}@${nexthop}
120
+  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/lmtp -f ${sender} -d ${user}@${nexthop}

+ 3
- 1
roles/mailserver/templates/etc_postfix_main.cf.j2 View File

91
 inet_interfaces = all
91
 inet_interfaces = all
92
 
92
 
93
 # dovecot db
93
 # dovecot db
94
-virtual_transport = dovecot
94
+virtual_transport = lmtp:unix:private/dovecot-lmtp
95
+mailbox_transport = lmtp:unix:private/dovecot-lmtp
96
+
95
 dovecot_destination_recipient_limit = 1
97
 dovecot_destination_recipient_limit = 1
96
 virtual_mailbox_domains = pgsql:/etc/postfix/pgsql-virtual-mailbox-domains.cf
98
 virtual_mailbox_domains = pgsql:/etc/postfix/pgsql-virtual-mailbox-domains.cf
97
 virtual_mailbox_maps = pgsql:/etc/postfix/pgsql-virtual-mailbox-maps.cf
99
 virtual_mailbox_maps = pgsql:/etc/postfix/pgsql-virtual-mailbox-maps.cf

Loading…
Cancel
Save