From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Patrik Sent: Wednesday, June 07, 2017 4:23 AM To: postfix-users@postfix.org Subject: Multiple interfaces
Ciao! How are you? Problem: I need 2 interfaces, because the fast ISP blocks 25 port, the slower is open. I can telnet with the required interface: telnet -b 192.168.81.20 alt2.gmail-smtp-in.l.google.com <http://alt2.gmail-smtp-in.l.google.com> 25 The wrong is not working root@server:/etc/postfix# telnet -b 192.168.78.20 alt2.gmail-smtp-in.l.google.com <http://alt2.gmail-smtp-in.l.google.com> 25 Trying 74.125.68.27... telnet: Unable to connect to remote host: Connection refused root@server:/etc/postfix# Correct interface w Works: Trying 74.125.68.27... Connected to alt2.gmail-smtp-in.l.google.com <http://alt2.gmail-smtp-in.l.google.com> . Escape character is '^]'. 220 mx.google.com <http://mx.google.com> ESMTP q14si1562820plk.485 - gsmtp I got the right settings: smtp inet n - y - - smtpd -o content_filter=spamassassin -o smtp_bind_address=192.168.81.1 submission inet n - y - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o smtp_bind_address=192.168.81.1 smtps inet n - y - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o smtp_bind_address=192.168.81.1 Still, I get this error: Jun 07 13:19:01 server postfix/smtp[10823]: connect to gmail-smtp-in.l.google.com <http://gmail-smtp-in.l.google.com> [74.125.133.27]:25: Connection refused Jun 07 13:19:01 server postfix/smtp[10824]: connect to gmail-smtp-in.l.google.com <http://gmail-smtp-in.l.google.com> [74.125.133.27]:25: Connection refused Jun 07 13:19:01 server postfix/smtp[10824]: connect to gmail-smtp-in.l.google.com <http://gmail-smtp-in.l.google.com> [2a00:1450:400c:c07::1a]:25: Network is unreachable Jun 07 13:19:01 server postfix/smtp[10824]: connect to alt1.gmail-smtp-in.l.google.com <http://alt1.gmail-smtp-in.l.google.com> [2a00:1450:4010:c0f::1b]:25: Network is unreachable Jun 07 13:19:02 server postfix/smtp[10824]: connect to alt1.gmail-smtp-in.l.google.com <http://alt1.gmail-smtp-in.l.google.com> [108.177.14.27]:25: Connection refused Jun 07 13:19:03 server postfix/smtp[10824]: connect to alt2.gmail-smtp-in.l.google.com <http://alt2.gmail-smtp-in.l.google.com> [74.125.68.27]:25: Connection refused Jun 07 13:19:03 server postfix/smtp[10824]: AF506340194: to=<alab...@gmail.com <mailto:alab...@gmail.com> >, relay=none, delay=591, delays=586/0.01/5.4/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com <http://alt2.gmail-smtp-in.l.google.com> [74.125.68.27]:25: Connection refused) Jun 07 13:19:04 server postfix/smtp[10823]: connect to alt1.gmail-smtp-in.l.google.com <http://alt1.gmail-smtp-in.l.google.com> [108.177.14.27]:25: Connection refused Jun 07 13:19:04 server postfix/smtp[10823]: connect to alt1.gmail-smtp-in.l.google.com <http://alt1.gmail-smtp-in.l.google.com> [2a00:1450:4010:c0f::1b]:25: Network is unreachable Jun 07 13:19:05 server postfix/smtp[10823]: connect to alt2.gmail-smtp-in.l.google.com <http://alt2.gmail-smtp-in.l.google.com> [74.125.68.27]:25: Connection refused Jun 07 13:19:05 server postfix/smtp[10823]: C625334017A: to=<alab...@gmail.com <mailto:alab...@gmail.com> >, relay=none, delay=12983, delays=12976/0.01/7.4/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com <http://alt2.gmail-smtp-in.l.google.com> [74.125.68.27]:25: Connection refused) The settings are correct, why I get connection refused? If you know, thanks so much! Ciao! Patrik WWW <https://patrikx3.tk> | GitHub <https://github.com/patrikx3/> | NPM <https://www.npmjs.com/~patrikx3> | Corifeus <https://corifeus.tk> | +36 20 342 8046 Have not tried it myself. But try using port 587 and TLS. All of my research suggests this is the resolution and that Gmail has blocked port 25, and requires TLS. Arthur Johnston