File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function setup_conf_and_secret {
99 postconf -e ' smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd'
1010 postconf -e ' smtp_sasl_security_options = noanonymous'
1111 postconf -e ' smtp_tls_security_level = encrypt'
12- postconf -e ' mynetworks = 127.0.0.0/8 172.16.0.0/12 10.0.0.0/8'
12+ postconf -e ' mynetworks = 127.0.0.0/8 172.16.0.0/12 172.17.0.0/16 10.0.0.0/8'
1313
1414 echo " $MTP_RELAY $MTP_USER :$MTP_PASS " > /etc/postfix/relay_passwd
1515 postmap /etc/postfix/relay_passwd
4040if [ ! -z " $MTP_RELAY " -a ! -z " $MTP_PORT " -a ! -z " $MTP_USER " -a ! -z " $MTP_PASS " ]; then
4141 setup_conf_and_secret
4242else
43- postconf -e ' mynetworks = 127.0.0.1/32 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8'
43+ postconf -e ' mynetworks = 127.0.0.1/32 192.168.0.0/16 172.16.0.0/12 172.17.0.0/16 10.0.0.0/8'
4444fi
4545
4646if [ $( grep -c " ^#header_checks" /etc/postfix/main.cf) -eq 1 ]; then
You can’t perform that action at this time.
0 commit comments