diff options
-rwxr-xr-x | postfix/postfix.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index f95f339..0c306d7 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -55,10 +55,14 @@ fi # exit1 "ERROR: Greylisting support (Debian package postgrey) missing." #fi dovecot= +dovecot_lmtp= dovecot_deliver= if [ -x /usr/sbin/dovecot ]; then dovecot=1 - if [ -x /usr/lib/dovecot/deliver ]; then + if [ -x /usr/lib/dovecot/lmtp ]; then + dovecot_lmtp=1 + elif [ -x /usr/lib/dovecot/deliver ]; then + warn "Dovecot LMTP missing - (Debian package dovecot-lmtp)." dovecot_deliver=1 else warn "Dovecot deliver missing." @@ -258,7 +262,9 @@ $postconf -c "$tempdir" -e "unverified_sender_reject_code = 550" # Trust recipient verification too $postconf -c "$tempdir" -e "unverified_recipient_reject_code = 550" -if [ -n "$dovecot_deliver" ]; then +if [ -n "$dovecot_lmtp" ]; then + $postconf -c "$tempdir" -e mailbox_transport=lmtp:unix:private/dovecot-lmtp +elif [ -n "$dovecot_deliver" ]; then $postconf -c "$tempdir" -e mailbox_command=/usr/lib/dovecot/deliver fi if [ -n "$sasl" ]; then |