Skip to content

Commit 7b8f2fe

Browse files
authored
Merge pull request #8 from nkay08/master
Use docker subnet 172.17.0.0/16 in mynetworks
2 parents 4b6d1a1 + c093bdf commit 7b8f2fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
@@ -40,7 +40,7 @@ fi
4040
if [ ! -z "$MTP_RELAY" -a ! -z "$MTP_PORT" -a ! -z "$MTP_USER" -a ! -z "$MTP_PASS" ]; then
4141
setup_conf_and_secret
4242
else
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'
4444
fi
4545

4646
if [ $(grep -c "^#header_checks" /etc/postfix/main.cf) -eq 1 ]; then

0 commit comments

Comments
 (0)