Postfix : "Connection timed out" on all outbound email

Thaer z asked:

Aug 25 12:56:20 mail postfix/pickup[375941]: ACF7F200E248: uid=0 from=<root>
Aug 25 12:56:20 mail postfix/cleanup[376172]: ACF7F200E248: message-id=<[email protected]>
Aug 25 12:56:20 mail postfix/qmgr[375942]: ACF7F200E248: from=<[email protected]>, size=449, nrcpt=1 (queue active)
Aug 25 12:56:20 mail postfix/smtp[377199]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c06::1a]:25: Network is unreachable
Aug 25 12:56:31 mail postfix/smtp[376174]: connect to alt1.gmail-smtp-in.l.google.com[142.251.9.27]:25: Connection timed out
Aug 25 12:56:31 mail postfix/smtp[376174]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4025:c03::1b]:25: Network is unreachable
Aug 25 12:56:31 mail postfix/smtp[376174]: connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:4010:c1c::1a]:25: Network is unreachable
Aug 25 12:56:31 mail postfix/smtp[376174]: E2CD82020B3F: to=<[email protected]>, relay=none, delay=60, delays=0.03/0.03/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:4010:c1c::1a]:25: N>
Aug 25 12:56:50 mail postfix/smtp[377199]: connect to gmail-smtp-in.l.google.com[66.102.1.26]:25: Connection timed out
Aug 25 12:56:50 mail postfix/smtp[377199]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4025:c03::1b]:25: Network is unreachable

I use VPS azure (Centos 8) and, I checked port 25 online but not blocked (Working), And I checked port Using telnet

$ telnet 51.xx.xx.xx 25
output:
220 mail.localdomain ESMTP Postfix

My answer:


Azure blocks outbound SMTP on port 25 for most customers.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.