Fix sasl_password generation to allow passwords containing hashes

This commit is contained in:
guardiande 2020-07-15 08:26:25 +02:00 committed by GitHub
parent 1a085d411a
commit 76d3f7643a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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