From c706e005f1153949aabda290fa6ed9e44c399df3 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 8 Oct 2020 18:04:37 +0200 Subject: unset mailbox_transport/mailbox_command if Dovecot LMTP/deliver is unavailable --- postfix/postfix.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'postfix') 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 -- cgit v1.2.3