Cannot send email from Exim

kawing05

Verified User
Joined
Nov 9, 2005
Messages
22
Hi ,

I'm newbie of directadmin, I found I can receive email from other servers, but I cant send out email to any email host. pls find below mainlog for your reference. tks

2014-05-10 15:17:42 cwd=/var/spool/exim 2 args: /usr/sbin/exim -q
2014-05-10 15:18:46 1Wiovt-0003mT-0J alt1.gmail-smtp-in.l.google.com [173.194.67.27] Connection timed out
2014-05-10 15:18:46 1Wiovt-0003mT-0J == [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out
2014-05-10 15:19:50 1Wioo1-0003hZ-Sr gmail-smtp-in.l.google.com [173.194.68.26] Connection timed out
2014-05-10 15:19:50 1Wioo1-0003hZ-Sr == [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out
2014-05-10 15:19:50 1WiouK-0003l7-B5 alt3.gmail-smtp-in.l.google.com [2a00:1450:4010:c04::1a] Network is unreachable
2014-05-10 15:20:40 1Wj94q-00011l-9L <= [email protected] H=localhost (www.fhlhosting.com) [127.0.0.1] P=esmtpa A=login:[email protected] S=13666 [email protected] T="sdfsdfdfsdfsdf" from <[email protected]> for [email protected]
2014-05-10 15:20:40 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1Wj94q-00011l-9L
2014-05-10 15:20:53 1WiouK-0003l7-B5 alt4.gmail-smtp-in.l.google.com [74.125.25.26] Connection timed out
2014-05-10 15:20:53 1WiouK-0003l7-B5 == [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out
 
My guess is that port 25 outgoing is blocked, either at your own server or network, or at that of your ISP. Many ISPs block port 25 for home users; if you're on a business line or inside a data center this doesn't apply of course.

You can test from your server with telnet if you can make a connection e.g.

# telnet alt1.gmail-smtp-in.l.google.com 25
Trying 74.125.25.26...
Connected to alt1.gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP iu4si3960824pbc.430 - gsmtp

Or try Microsoft if it's gmail that you cannot reach;

telnet mx1.hotmail.com 25
Trying 65.54.188.110...
Connected to mx1.hotmail.com.
Escape character is '^]'.
220 BAY0-MC3-F59.Bay0.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.microsoft.com/en-us/anti-spam.mspx. Sat, 10 May 2014 10:20:59 -0700

Another thing you can do is a simple ping to be sure it's just the port 25 and not an network issue

ping alt1.gmail-smtp-in.l.google.com
 
I have seen this happen with CSF Firewall , it doesnt matter if you open port 25 in CSF in still blocks because when you use pre defined profiles from CSF and use the highprotection profile it only allows some programs only to use port 25
Please disable for test CSF and look if it helps
 
Hello all,

I am sorry to open an old thread but my problem is exact same.
The OP never told his solution.

I have disabled the firewall using command csf -x

I tired the commands "Arieh" advised but still I get this error (only ping works).

Code:
[COLOR="#B22222"]root@host2:/usr/local/directadmin/data/tickets# telnet alt1.gmail-smtp-in.l.google.com 25
[/COLOR]Trying 74.125.25.27...
Trying 2607:f8b0:400e:c03::1b...
telnet: Unable to connect to remote host: Network is unreachable
root@host2:/usr/local/directadmin/data/tickets#


[COLOR="#B22222"]root@host2:/usr/local/directadmin/data/tickets# telnet mx1.hotmail.com 25
[/COLOR]Trying 65.54.188.94...
Trying 65.55.37.104...
Trying 65.55.92.152...
Trying 65.55.92.168...
Trying 65.55.92.136...
Trying 65.54.188.72...
^C

[COLOR="#B22222"]root@host2:/usr/local/directadmin/data/tickets# ping alt1.gmail-smtp-in.l.google.com
[/COLOR]PING alt1.gmail-smtp-in.l.google.com (74.125.25.26) 56(84) bytes of data.
64 bytes from pa-in-f26.1e100.net (74.125.25.26): icmp_req=1 ttl=51 time=160 ms
64 bytes from pa-in-f26.1e100.net (74.125.25.26): icmp_req=2 ttl=51 time=160 ms
64 bytes from pa-in-f26.1e100.net (74.125.25.26): icmp_req=3 ttl=51 time=160 ms
64 bytes from pa-in-f26.1e100.net (74.125.25.26): icmp_req=4 ttl=51 time=160 ms
64 bytes from pa-in-f26.1e100.net (74.125.25.26): icmp_req=5 ttl=51 time=160 ms
64 bytes from pa-in-f26.1e100.net (74.125.25.26): icmp_req=6 ttl=51 time=160 ms
64 bytes from pa-in-f26.1e100.net (74.125.25.26): icmp_req=7 ttl=51 time=160 ms
^C
--- alt1.gmail-smtp-in.l.google.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6005ms
rtt min/avg/max/mdev = 160.427/160.489/160.540/0.036 ms

What can be the problem...? If firewall is disabled what else can block port 110 or 25 ?

Please advise.
 
Perhaps your provider/DC is blocking port 25 because of spam reasons? You could check with them to make sure it is actually something on your server and not your network.

# telnet alt1.gmail-smtp-in.l.google.com 25
Trying 74.125.68.26...
Connected to alt1.gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP a8si2371512pfj.35 - gsmtp

This is how it normal works.
 
Perhaps your provider/DC is blocking port 25 because of spam reasons? You could check with them to make sure it is actually something on your server and not your network.

This is how it normal works.

Thanks you were right. The hosting company had it blocked.
 
Back
Top