From 782152f82749573a97825c69ed2ba0475fc7e669 Mon Sep 17 00:00:00 2001 From: alinmear Date: Mon, 19 Dec 2016 13:39:30 +0100 Subject: [PATCH] Fix Problem with Saslauthd and Postfix master.cf The provided default postfix master.cf overwrites the configs for saslauthd within main.cf. To make saslauthd work, we have to comment or in this case delete the lines from master.cf to make the given configs in main.cf work. --- target/start-mailserver.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 9e8f8efe..45aef988 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -442,6 +442,11 @@ log_level: 10 EOF fi + sed -i \ + -e "/^[^#].*smtpd_sasl_type.*/s/^/#/g" \ + -e "/^[^#].*smtpd_sasl_path.*/s/^/#/g" \ + etc/postfix/master.cf + sed -i \ -e "s|^START=.*|START=yes|g" \ -e "s|^MECHANISMS=.*|MECHANISMS="\"$SASLAUTHD_MECHANISMS\""|g" \