summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2012-03-27 12:26:37 +0200
committerJonas Smedegaard <dr@jones.dk>2012-03-27 12:26:37 +0200
commit3314548c9846d7b4b556d6fc3dbbd2ad05c92341 (patch)
tree10dde93237b54dceed6fa2046af79660a64b4495 /postfix
parent579b8bf760fbf07f8ead276f8cb16057000bca63 (diff)
Fix support no SASL available.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh
index d52bfa6..b79ff03 100755
--- a/postfix/postfix.sh
+++ b/postfix/postfix.sh
@@ -274,6 +274,7 @@ if [ -n "$sasl_cyrus" ]; then
echo 'tlsmgr unix - - - 300 1 tlsmgr' >> $tempdir/master.cf
fi
case "$sasl_main_type" in
+ '') ;;
dovecot)
$postconf -c "$tempdir" -e smtpd_sasl_type=dovecot
$postconf -c "$tempdir" -e smtpd_sasl_path=private/auth
@@ -283,7 +284,7 @@ case "$sasl_main_type" in
[ -z "$pf23" ] || $postconf -c "$tempdir" -e smtpd_sasl_path=smtpd
[ -n "$pf23" ] || $postconf -c "$tempdir" -e smtpd_sasl_application_name=smtpd
;;
- *) exit1 "ERROR: Wrong SASL type \"$sasl_main_type\"!"
+ *) exit1 "ERROR: Wrong SASL type \"$sasl_main_type\"!";;
esac
if [ -n "$sslcert" ]; then
$postconf -c "$tempdir" -e 'smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem'