You've already forked docker-mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-09 23:07:35 +02:00
Support for modifying Postfix' master.cf (#595)
* Support for modifying Postfix' master.cf, using the syntax, in postfix-master.cf
This commit is contained in:
0
config/postfix-master.cf
Normal file
0
config/postfix-master.cf
Normal file
@@ -904,6 +904,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() {
|
||||
|
1
test/config/postfix-master.cf
Normal file
1
test/config/postfix-master.cf
Normal file
@@ -0,0 +1 @@
|
||||
submission/inet/smtpd_sasl_security_options=noanonymous
|
@@ -391,6 +391,11 @@ load 'test_helper/bats-assert/load'
|
||||
assert_success
|
||||
}
|
||||
|
||||
@test "checking postfix: master.cf overrides" {
|
||||
run docker exec mail grep -q 'submission/inet/smtpd_sasl_security_options=noanonymous' /tmp/docker-mailserver/postfix-master.cf
|
||||
assert_success
|
||||
}
|
||||
|
||||
#
|
||||
# dovecot
|
||||
#
|
||||
|
Reference in New Issue
Block a user