Support for modifying Postfix' master.cf, using the syntax, in postfix-master.cf

This commit is contained in:
Mads R Havmand 2017-05-06 20:01:51 +02:00
parent feff849d62
commit a0b1b67ae6
2 changed files with 10 additions and 0 deletions

0
config/postfix-master.cf Normal file
View File

View File

@ -877,6 +877,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() {