From 76d3f7643a760b892ec835e43bf6d6979b1205c7 Mon Sep 17 00:00:00 2001 From: guardiande Date: Wed, 15 Jul 2020 08:26:25 +0200 Subject: [PATCH] Fix sasl_password generation to allow passwords containing hashes --- target/start-mailserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 7f56923e..efa35d14 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -1326,7 +1326,7 @@ function _setup_postfix_relay_hosts() { if [ -f /tmp/docker-mailserver/postfix-sasl-password.cf ]; then notify 'inf' "Adding relay authentication from postfix-sasl-password.cf" while read line; do - if ! echo "$line" | grep -q -e "\s*#"; then + if ! echo "$line" | grep -q -e "^\s*#"; then echo "$line" >> /etc/postfix/sasl_passwd fi done < /tmp/docker-mailserver/postfix-sasl-password.cf