summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-10-08 14:56:44 +0200
committerJonas Smedegaard <dr@jones.dk>2020-10-08 14:56:44 +0200
commitf8a1dc9cdf4b271838bc0a481c53a69a19954758 (patch)
tree178823e92ca5d9581974729c17c3f3f2261082af /postfix
parent11a3b6218a47b1f69373e156cedab928417b51a9 (diff)
support Dovecot LMTP (favored over Dovecot deliver)
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh10
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