Commit 89b02ebe by charliefd Committed by GitHub

fix docker ip range

postfix config should consider all docker networks local. In fact, if no custom config is supplied the network is correctly set with a larger network mask to account for additional docker networks  but in the setup_conf_and_secret function the network uses /16 mask
parent 1e390414
...@@ -9,7 +9,7 @@ function setup_conf_and_secret { ...@@ -9,7 +9,7 @@ function setup_conf_and_secret {
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd' postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd'
postconf -e 'smtp_sasl_security_options = noanonymous' postconf -e 'smtp_sasl_security_options = noanonymous'
postconf -e 'smtp_tls_security_level = encrypt' postconf -e 'smtp_tls_security_level = encrypt'
postconf -e 'mynetworks = 127.0.0.0/8 172.17.0.0/16 10.42.0.0/16' postconf -e 'mynetworks = 127.0.0.0/8 172.16.0.0/12 10.42.0.0/16'
echo "$MTP_RELAY $MTP_USER:$MTP_PASS" > /etc/postfix/relay_passwd echo "$MTP_RELAY $MTP_USER:$MTP_PASS" > /etc/postfix/relay_passwd
postmap /etc/postfix/relay_passwd postmap /etc/postfix/relay_passwd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment