summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-10-08 18:04:37 +0200
committerJonas Smedegaard <dr@jones.dk>2020-10-08 18:04:37 +0200
commitc706e005f1153949aabda290fa6ed9e44c399df3 (patch)
tree0214f2a0650c023e6083c00f9076025b9683b4ff /postfix
parent7d70c1683a9c6637cecfc4a7bcf7aa7683a9028c (diff)
unset mailbox_transport/mailbox_command if Dovecot LMTP/deliver is unavailable
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh5
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