Fix erroneous removal of an conditional within the postfix override

This commit is contained in:
alinmear 2017-07-01 21:37:26 +02:00
parent e448235aff
commit 8a21f497e7
1 changed files with 10 additions and 0 deletions

View File

@ -913,6 +913,16 @@ function _setup_postfix_override_configuration() {
else
notify 'inf' "No extra postfix settings loaded because optional '/tmp/docker-mailserver/postfix-main.cf' not provided."
fi
if [ -f /tmp/docker-mailserver/postfix-master.cf ]; then
while read line; do
if [[ "$line" =~ ^[a-z] ]]; then
postconf -P "$line"
fi
done < /tmp/docker-mailserver/postfix-master.cf
notify 'inf' "Loaded 'config/postfix-master.cf'"
else
notify 'inf' "No extra postfix settings loaded because optional '/tmp/docker-mailserver/postfix-master.cf' not provided."
fi
}
function _setup_postfix_sasl_password() {