Solved Postfix times out on non-local domains

Environment:
  • Postfix
  • Dovecot
  • SSL 993
  • TLS 587
  • CA Certs

What works:
  • Receiving e-mails from anywhere.
  • Sending e-mails to the server from a mail client (Thunderbird/Outlook) on a computer outside of the local network.
  • Sending to e-mail to internal accounts.

What is not working:
  • Sending e-mail to external servers (like Gmail).

/var/log/maillog:
(Note: Hostname / Address masked for security)
Code:
Mar 23 11:35:20 mailserver1 postfix/pickup[9363]: 0CE042B79431: uid=0 from=<root>
Mar 23 11:35:20 mailserver1 postfix/cleanup[9753]: 0CE042B79431: message-id=<[EMAIL]20150323153520.0CE042B79431@mail.mailserver[/EMAIL]1.net>
Mar 23 11:35:20 mailserver1 postfix/qmgr[9364]: 0CE042B79431: from=<[EMAIL]root@mailserver1.net[/EMAIL]>, size=332, nrcpt=1 (queue active)
Mar 23 11:35:50 mailserver1 postfix/smtp[9755]: connect to gmail-smtp-in.l.google.com[74.125.196.26]:25: Operation timed out
Mar 23 11:35:58 mailserver1 postfix/postsuper[9756]: Deleted: 1 message
Mar 23 11:36:20 mailserver1 postfix/smtp[9755]: connect to alt1.gmail-smtp-in.l.google.com[74.125.141.26]:25: Operation timed out
Mar 23 11:36:50 mailserver1 postfix/smtp[9755]: connect to alt2.gmail-smtp-in.l.google.com[64.233.186.27]:25: Operation timed out
Mar 23 11:37:20 mailserver1 postfix/smtp[9755]: connect to alt3.gmail-smtp-in.l.google.com[74.125.24.26]:25: Operation timed out
Mar 23 11:37:50 mailserver1 postfix/smtp[9755]: connect to alt4.gmail-smtp-in.l.google.com[173.194.66.27]:25: Operation timed out
Mar 23 11:37:52 mailserver1 postfix/smtp[9755]: 0CE042B79431: to=<[EMAIL]jaddress@gmail.com[/EMAIL]>, relay=none, delay=150, delays=0.03/0/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.66.27]:25: Operation timed out)
 
Last edited by a moderator:
Your ISP block outgoing port 25? A lot of ISPs do this to prevent spam bots. Try running telnet gmail-smtp-in.l.google.com 25 and see if it connects. If it doesn't then you have connectivity issues.
 
Back
Top