Postfix timing out when sending mail

March 7, 2015 4.6k views
Messaging Networking Ubuntu

Hi, I'm not managing to get postfix working, it always timeouts when I try to send an email to outside my box,

LOG:

Mar  7 02:58:50 myhost postfix/smtp[14400]: connect to gmail-smtp-in.l.google.com[173.194.207.26]:25: Connection timed out
Mar  7 02:58:50 myhost postfix/smtp[14402]: connect to gmail-smtp-in.l.google.com[173.194.207.26]:25: Connection timed out
Mar  7 02:59:20 myhost postfix/smtp[14400]: connect to alt1.gmail-smtp-in.l.google.com[64.233.186.26]:25: Connection timed out
Mar  7 02:59:20 myhost postfix/smtp[14402]: connect to alt1.gmail-smtp-in.l.google.com[64.233.186.26]:25: Connection timed out
Mar  7 02:59:50 myhost postfix/smtp[14400]: connect to alt2.gmail-smtp-in.l.google.com[74.125.24.26]:25: Connection timed out
Mar  7 02:59:50 myhost postfix/smtp[14402]: connect to alt2.gmail-smtp-in.l.google.com[74.125.24.26]:25: Connection timed out
Mar  7 03:00:20 myhost postfix/smtp[14400]: connect to alt3.gmail-smtp-in.l.google.com[64.233.166.26]:25: Connection timed out
Mar  7 03:00:20 myhost postfix/smtp[14402]: connect to alt3.gmail-smtp-in.l.google.com[64.233.166.26]:25: Connection timed out
Mar  7 03:00:50 myhost postfix/smtp[14400]: connect to alt4.gmail-smtp-in.l.google.com[173.194.65.26]:25: Connection timed out

main.cf:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = myhost.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = myhost.com, localhost.com, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = localhost
inet_protocols = ipv4

Any help?

1 Answer

The email ports seem to be blocked by default. Try a telnet to confirm. You must open a ticket requesting the unblock.

Have another answer? Share your knowledge.