netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 ens160
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.22.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-8e4773bb431c
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ens160
docker-compose logs --tail=100 postfix-mailcow
Attaching to mailcowdockerized_postfix-mailcow_1
postfix-mailcow_1 | 2017-09-15 04:07:21,620 CRIT Supervisor running as root (no user in config file)
postfix-mailcow_1 | 2017-09-15 04:07:21,629 INFO RPC interface 'supervisor' initialized
postfix-mailcow_1 | 2017-09-15 04:07:21,629 CRIT Server 'unix_http_server' running without any HTTP authentication checking
postfix-mailcow_1 | 2017-09-15 04:07:21,629 INFO supervisord started with pid 1
postfix-mailcow_1 | 2017-09-15 04:07:22,630 INFO spawned: 'postfix' with pid 7
postfix-mailcow_1 | 2017-09-15 04:07:22,639 INFO spawned: 'syslog-ng' with pid 8
postfix-mailcow_1 | Sep 15 04:07:22 mail syslog-ng[8]: syslog-ng starting up; version='3.8.1'
postfix-mailcow_1 | Sep 15 04:07:23 mail postfix[251]: Postfix is running with backwards-compatible default settings
postfix-mailcow_1 | Sep 15 04:07:23 mail postfix[251]: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix-mailcow_1 | Sep 15 04:07:23 mail postfix[251]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix-mailcow_1 | Sep 15 04:07:23 mail postfix/postfix-script[337]: starting the Postfix mail system
postfix-mailcow_1 | Sep 15 04:07:23 mail postfix/master[339]: daemon started -- version 3.1.4, configuration /opt/postfix/conf
postfix-mailcow_1 | 2017-09-15 04:07:24,481 INFO success: postfix entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
postfix-mailcow_1 | 2017-09-15 04:07:24,481 INFO success: syslog-ng entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
postfix-mailcow_1 | Sep 15 04:10:11 mail postfix/postscreen[345]: cache proxy:btree:/var/lib/postfix/postscreen_cache full cleanup: retained=0 dropped=0 entries
.....
postfix-mailcow_1 | Sep 15 04:22:24 mail postfix/qmgr[342]: E960B7219FE: from=admin@sibint.com, size=1117, nrcpt=1 (queue active)
postfix-mailcow_1 | Sep 15 04:22:54 mail postfix/smtp[370]: connect to 30047900.in1.mandrillapp.com[52.35.209.90]:25: Connection timed out
postfix-mailcow_1 | Sep 15 04:23:24 mail postfix/smtp[370]: connect to 30047900.in1.mandrillapp.com[52.36.64.127]:25: Connection timed out
postfix-mailcow_1 | Sep 15 04:23:54 mail postfix/smtp[370]: connect to 30047900.in1.mandrillapp.com[52.35.107.200]:25: Connection timed out
postfix-mailcow_1 | Sep 15 04:24:24 mail postfix/smtp[370]: connect to 30047900.in2.mandrillapp.com[52.35.209.90]:25: Connection timed out
postfix-mailcow_1 | Sep 15 04:24:54 mail postfix/smtp[370]: connect to 30047900.in2.mandrillapp.com[52.36.64.127]:25: Connection timed out
postfix-mailcow_1 | Sep 15 04:24:54 mail postfix/smtp[370]: E960B7219FE: to=zu49V8GiZXlNtD@dkimvalidator.com, relay=none, delay=76749, delays=76598/0.05/151/0, dsn=4.4.1, status=deferred (connect to 30047900.in2.mandrillapp.com[52.36.64.127]:25: Connection timed out)
`
What wrong? Thanks
docker-compose ps Name Command State Ports
mailcowdockerized_acme-mailcow_1 /srv/docker-entrypoint.sh Exit 1 mailcowdockerized_clamd-mailcow_1 /bootstrap.sh Up 3310/tcp mailcowdockerized_dovecot-mailcow_1 /docker-entrypoint.sh /bin ... Up 10001/tcp, 0.0.0.0:110->110/tcp, 127.0.0.1:19991->12345/tcp, 0.0.0.0:143->143/tcp, 24/tcp, 0.0.0.0:4190->4190/tcp, 0.0.0.0:993->993/tcp, 0.0.0.0:995->995/tcp mailcowdockerized_fail2ban-mailcow_1 python2 -u /logwatch.py Up mailcowdockerized_ipv6nat_1 /docker-ipv6nat --retry Up mailcowdockerized_memcached-mailcow_1 docker-entrypoint.sh memcached Up 11211/tcp mailcowdockerized_mysql-mailcow_1 docker-entrypoint.sh mysql ... Up 3306/tcp mailcowdockerized_nginx-mailcow_1 /bin/sh -c envsubst < /etc ... Up 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp mailcowdockerized_php-fpm-mailcow_1 /docker-entrypoint.sh php- ... Up 9000/tcp mailcowdockerized_postfix-mailcow_1 /bin/sh -c exec /usr/bin/s ... Up 0.0.0.0:25->25/tcp, 0.0.0.0:465->465/tcp, 0.0.0.0:587->587/tcp, 588/tcp mailcowdockerized_redis-mailcow_1 docker-entrypoint.sh redis ... Up 6379/tcp mailcowdockerized_rspamd-mailcow_1 /docker-entrypoint.sh /bin ... Up mailcowdockerized_sogo-mailcow_1 /bin/sh -c exec /usr/bin/s ... Up mailcowdockerized_unbound-mailcow_1 /docker-entrypoint.sh /usr ... Up 53/tcp, 53/udp
iptables -t nat -S POSTROUTING -P POSTROUTING ACCEPT -A POSTROUTING -s 172.22.1.0/24 ! -o br-8e4773bb431c -j MASQUERADE -A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE -A POSTROUTING -s 172.22.1.3/32 -d 172.22.1.3/32 -p tcp -m tcp --dport 12345 -j MASQUERADE -A POSTROUTING -s 172.22.1.3/32 -d 172.22.1.3/32 -p tcp -m tcp --dport 4190 -j MASQUERADE -A POSTROUTING -s 172.22.1.3/32 -d 172.22.1.3/32 -p tcp -m tcp --dport 995 -j MASQUERADE -A POSTROUTING -s 172.22.1.3/32 -d 172.22.1.3/32 -p tcp -m tcp --dport 993 -j MASQUERADE -A POSTROUTING -s 172.22.1.3/32 -d 172.22.1.3/32 -p tcp -m tcp --dport 143 -j MASQUERADE -A POSTROUTING -s 172.22.1.3/32 -d 172.22.1.3/32 -p tcp -m tcp --dport 110 -j MASQUERADE -A POSTROUTING -s 172.22.1.4/32 -d 172.22.1.4/32 -p tcp -m tcp --dport 587 -j MASQUERADE -A POSTROUTING -s 172.22.1.4/32 -d 172.22.1.4/32 -p tcp -m tcp --dport 465 -j MASQUERADE -A POSTROUTING -s 172.22.1.4/32 -d 172.22.1.4/32 -p tcp -m tcp --dport 25 -j MASQUERADE -A POSTROUTING -s 172.22.1.251/32 -d 172.22.1.251/32 -p tcp -m tcp --dport 443 -j MASQUERADE -A POSTROUTING -s 172.22.1.251/32 -d 172.22.1.251/32 -p tcp -m tcp --dport 80 -j MASQUERADE
netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 ens160 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 172.22.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-8e4773bb431c 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ens160
docker-compose logs --tail=100 postfix-mailcow Attaching to mailcowdockerized_postfix-mailcow_1 postfix-mailcow_1 | 2017-09-15 04:07:21,620 CRIT Supervisor running as root (no user in config file) postfix-mailcow_1 | 2017-09-15 04:07:21,629 INFO RPC interface 'supervisor' initialized postfix-mailcow_1 | 2017-09-15 04:07:21,629 CRIT Server 'unix_http_server' running without any HTTP authentication checking postfix-mailcow_1 | 2017-09-15 04:07:21,629 INFO supervisord started with pid 1 postfix-mailcow_1 | 2017-09-15 04:07:22,630 INFO spawned: 'postfix' with pid 7 postfix-mailcow_1 | 2017-09-15 04:07:22,639 INFO spawned: 'syslog-ng' with pid 8 postfix-mailcow_1 | Sep 15 04:07:22 mail syslog-ng[8]: syslog-ng starting up; version='3.8.1' postfix-mailcow_1 | Sep 15 04:07:23 mail postfix[251]: Postfix is running with backwards-compatible default settings postfix-mailcow_1 | Sep 15 04:07:23 mail postfix[251]: See http://www.postfix.org/COMPATIBILITY_README.html for details postfix-mailcow_1 | Sep 15 04:07:23 mail postfix[251]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload" postfix-mailcow_1 | Sep 15 04:07:23 mail postfix/postfix-script[337]: starting the Postfix mail system postfix-mailcow_1 | Sep 15 04:07:23 mail postfix/master[339]: daemon started -- version 3.1.4, configuration /opt/postfix/conf postfix-mailcow_1 | 2017-09-15 04:07:24,481 INFO success: postfix entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) postfix-mailcow_1 | 2017-09-15 04:07:24,481 INFO success: syslog-ng entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) postfix-mailcow_1 | Sep 15 04:10:11 mail postfix/postscreen[345]: cache proxy:btree:/var/lib/postfix/postscreen_cache full cleanup: retained=0 dropped=0 entries ..... postfix-mailcow_1 | Sep 15 04:22:24 mail postfix/qmgr[342]: E960B7219FE: from=admin@sibint.com, size=1117, nrcpt=1 (queue active) postfix-mailcow_1 | Sep 15 04:22:54 mail postfix/smtp[370]: connect to 30047900.in1.mandrillapp.com[52.35.209.90]:25: Connection timed out postfix-mailcow_1 | Sep 15 04:23:24 mail postfix/smtp[370]: connect to 30047900.in1.mandrillapp.com[52.36.64.127]:25: Connection timed out postfix-mailcow_1 | Sep 15 04:23:54 mail postfix/smtp[370]: connect to 30047900.in1.mandrillapp.com[52.35.107.200]:25: Connection timed out postfix-mailcow_1 | Sep 15 04:24:24 mail postfix/smtp[370]: connect to 30047900.in2.mandrillapp.com[52.35.209.90]:25: Connection timed out postfix-mailcow_1 | Sep 15 04:24:54 mail postfix/smtp[370]: connect to 30047900.in2.mandrillapp.com[52.36.64.127]:25: Connection timed out postfix-mailcow_1 | Sep 15 04:24:54 mail postfix/smtp[370]: E960B7219FE: to=zu49V8GiZXlNtD@dkimvalidator.com, relay=none, delay=76749, delays=76598/0.05/151/0, dsn=4.4.1, status=deferred (connect to 30047900.in2.mandrillapp.com[52.36.64.127]:25: Connection timed out) ` What wrong? Thanks