diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-10-08 18:04:37 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-10-08 18:04:37 +0200 |
commit | c706e005f1153949aabda290fa6ed9e44c399df3 (patch) | |
tree | 0214f2a0650c023e6083c00f9076025b9683b4ff | |
parent | 7d70c1683a9c6637cecfc4a7bcf7aa7683a9028c (diff) |
unset mailbox_transport/mailbox_command if Dovecot LMTP/deliver is unavailable
-rwxr-xr-x | postfix/postfix.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 225bc09..cb4b86c 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -264,8 +264,13 @@ $postconf -c "$tempdir" -e "unverified_recipient_reject_code = 550" if [ -n "$dovecot_lmtp" ]; then $postconf -c "$tempdir" -e mailbox_transport=lmtp:unix:private/dovecot-lmtp + $postconf -c "$tempdir" -e mailbox_command= elif [ -n "$dovecot_deliver" ]; then + $postconf -c "$tempdir" -e mailbox_transport= $postconf -c "$tempdir" -e mailbox_command=/usr/lib/dovecot/deliver +else + $postconf -c "$tempdir" -e mailbox_transport= + $postconf -c "$tempdir" -e mailbox_command= fi if [ -n "$sasl" ]; then $postconf -c "$tempdir" -e smtpd_sasl_type=dovecot |