Send email trouble (timeout)

stronciy

Member
Mar 12, 2014
5
0
51
cPanel Access Level
Root Administrator
Dear All,

I have CENTOS 6.5 x86_64 - WHM 11.42.0 (build 21) - Exim, Dovecot

When send email get timeout like this:
---
Connecting to gmail-smtp-in.l.google.com [74.125.196.26]:25 ... failed: Connection timed out (timeout=5m)
LOG: MAIN
gmail-smtp-in.l.google.com [74.125.196.26] Connection timed out
Connecting to alt2.gmail-smtp-in.l.google.com [173.194.66.27]:25 ... failed: Connection timed out (timeout=5m)
LOG: MAIN
alt2.gmail-smtp-in.l.google.com [173.194.66.27] Connection timed out
Connecting to alt3.gmail-smtp-in.l.google.com [173.194.65.27]:25 ... failed: Connection timed out (timeout=5m)
...



Telnet command result:
---
srv1 [~]# telnet gmail-smtp-in.l.google.com 25
Trying 74.125.196.26...
telnet: connect to address 74.125.196.26: Connection timed out
Trying 2607:f8b0:4002:c07::1b...
telnet: connect to address 2607:f8b0:4002:c07::1b: Network is unreachable

When stop iptables the and make telnet give the same results

I can receive email without any problem.

Hot to fix this issue ?
Thanks for your help.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

Is this only happening when attempting to send out email to Google? If so, it means Google has blocked connections from your server's IP address. If it's happening for other servers then you should contact your data center to see if they have blocked outgoing connections over port 25.

Thank you.