Skip to main content

Email Connection Timing Out

Comments

21 comments

  • SysSachin
    Hello, Please try to use Google's nameserver. You have to add below nameservers in the /etc/resolv.conf file nameserver 8.8.8.8 nameserver 8.8.4.4
    0
  • Joef
    Hello, Please try to use Google's nameserver. You have to add below nameservers in the /etc/resolv.conf file nameserver 8.8.8.8 nameserver 8.8.4.4

    I added the Google nameservers, strange because I added them when I first installed the program.
    [root@server etc]# cat /etc/resolv.conf ; generated by /sbin/dhclient-script nameserver 8.8.8.8 nameserver 8.8.4.4
    But I still get timed out:
    LOG: MAIN cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1cT3NK-0005rv-AW delivering 1cT3NK-0005rv-AW Connecting to mx2.hotmail.com [104.44.194.231]:25 from xx.xx.27.198 ... failed: Connection timed out (timeout=5m) LOG: MAIN H=mx2.hotmail.com [104.44.194.231] Connection timed out Connecting to mx2.hotmail.com [104.44.194.232]:25 from xx.xx.27.198 ... failed: Connection timed out (timeout=5m) LOG: MAIN H=mx2.hotmail.com [104.44.194.232] Connection timed out Connecting to mx2.hotmail.com [65.55.37.88]:25 from xx.xx.27.198 ... failed: Connection timed out (timeout=5m) LOG: MAIN H=mx2.hotmail.com [65.55.37.88] Connection timed out Connecting to mx2.hotmail.com [104.44.194.234]:25 from xx.xx.27.198 ... failed: Connection timed out (timeout=5m) LOG: MAIN H=mx2.hotmail.com [104.44.194.234] Connection timed out Connecting to mx2.hotmail.com [65.55.92.136]:25 from xx.xx.27.198 ... failed: Connection timed out (timeout=5m) LOG: MAIN H=mx2.hotmail.com [65.55.92.136] Connection timed out LOG: MAIN == myemail@hotmail.com R=dkim_lookuphost T=dkim_remote_smtp defer (110): Connection timed out
    I tried sending them out from Magento (shopping cart) and through the Webmail interface but still they go into queue. What else can I check? Thanks
    0
  • SysSachin
    Hello, This does look to be a firewall or network issue as something is denying outbound connections on port 25 from your server: Also, Please provide me following command output.
    telnet gmail-smtp-in.l.google.com 25
    0
  • Joef
    Yeah, that's what I thought but I haven't installed any firewalls thou. Here is the telnet results:
    [root@server ~]# telnet gmail-smtp-in.l.google.com 25 Trying 173.194.196.26... telnet: connect to address 173.194.196.26: Connection timed out Trying 2607:f8b0:4001:c1a::1b... telnet: connect to address 2607:f8b0:4001:c1a::1b: Network is unreachable
    Something does seems to be blocking it.
    0
  • cPanelMichael
    Hello, I recommend reaching out to your data center or hosting provider to verify if there's anything filtering port 25 traffic in their network or firewall rules. Providers will often block port 25 as a SPAM prevention technique. Thank you.
    0
  • Joef
    I just done that. Thanks. Weird that the port tester shows it's open.
    0
  • cPanelMichael
    Weird that the port tester shows it's open.

    It's possible the testing application you are using might be testing for incoming traffic over port 25. The issue you are facing relates to outgoing traffic over port 25. Thanks!
    0
  • Joef
    It's working!
    LOG: MAIN cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1cTDju-000272-Mk delivering 1cTDju-000272-Mk Connecting to mx2.hotmail.com [104.44.194.236]:25 from xx.xx.xx.198 ... connected SMTP<< 220 SNT004-MC10F2.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. Mon, 16 Jan 2017 12:22:26 -0800 SMTP>> EHLO example.com SMTP<< 250-SNT004-MC10F2.hotmail.com (3.21.0.266) Hello [xx.xx.xx.198] 250-SIZE 36909875 250-PIPELINING 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-STARTTLS 250-AUTH LOGIN 250-AUTH=LOGIN 250 OK SMTP>> STARTTLS SMTP<< 220 SMTP server ready SMTP>> EHLO example.com SMTP<< 250-SNT004-MC10F2.hotmail.com (3.21.0.266) Hello [xx.xx.xx.198] 250-SIZE 36909875 250-PIPELINING 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-AUTH LOGIN 250-AUTH=LOGIN 250 OK SMTP>> MAIL FROM: SIZE=31853 SMTP>> RCPT TO: SMTP>> DATA SMTP<< 250 orders@example.com....Sender OK SMTP<< 250 myemail@hotmail.com SMTP<< 354 Start mail input; end with . SMTP>> writing message and terminating "." SMTP<< 250 Queued mail for delivery SMTP>> EHLO example.com SMTP>> QUIT LOG: MAIN => myemail@hotmail.com R=dkim_lookuphost T=dkim_remote_smtp H=mx2.hotmail.com [104.44.194.236] X=TLSv1.2:ECDHE-RSA-AES256-SHA384:256 CV=yes C="250 Queued mail for delivery" LOG: MAIN Completed
    Thanks
    0
  • cPanelMichael
    Hello, I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0
  • hmaddy
    Am also facing the same issue on server. port 25 is open.
    0
  • cPRex Jurassic Moderator
    @anoopk350 - did you also check port 25 outbound from the server? One easy test to check that would be to run this command:
    telnet mx1.cpanel.net 25
    Does that command let you connect to the cPanel mail server when you run it from your server?
    0
  • jpontang
    @anoopk350 - did you also check port 25 outbound from the server? One easy test to check that would be to run this command:
    telnet mx1.cpanel.net 25
    Does that command let you connect to the cPanel mail server when you run it from your server?

    [root@servers ~]# telnet mx1.cpanel.net 25 Trying 208.74.121.68... Connected to mx1.cpanel.net. Escape character is '^]'. 220-mx1.cpanel.net ESMTP Exim 4.94.2 #2 Wed, 16 Mar 2022 21:03:54 -0500 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. if it's like this why.??
    0
  • cPRex Jurassic Moderator
    @jpontang - that output looks fine to me. If you're also experiencing email troubles could you please open a new thread as this one is a year old?
    0
  • atlantis21
    I have same problem. But when I trype command telnet mx1.cpanel.net 25 I get this: [root@sn1 ~]# telnet mx1.cpanel.net 25 Trying 208.74.121.68... And nothing happen. I don't get results..?
    0
  • cPRex Jurassic Moderator
    @atlantis21 - just to be sure, what if you try another machine, like one of Google's servers:
    telnet gmail-smtp-in.l.google.com 25
    If that also doesn't respond, that would indicate the port is blocked.
    0
  • atlantis21
    @atlantis21 - just to be sure, what if you try another machine, like one of Google's servers:
    telnet gmail-smtp-in.l.google.com 25
    If that also doesn't respond, that would indicate the port is blocked.

    OK thanks, But it work's now. Not sure what helped, but I think adding port 26 solved my problem
    0
  • cPRex Jurassic Moderator
    Adding port 26 would allow users with mail clients like Outlook and Thunderbird to connect to your server, but it wouldn't change anything with mail handling on the system. It could be there was just a temporary problem on the machine, but I'm glad to hear things are working well now!
    0
  • MohammedSaeed
    i have the same issue when i run this code telnet mx1.cpanel.net 25 it gives this message Trying 208.74.121.68... telnet: connect to address 208.74.121.68: Connection timed out and also i run this code telnet gmail-smtp-in.l.google.com 25 it gives this code Trying 74.125.140.26... telnet: connect to address 74.125.140.26: Connection timed out Trying 2a00:1450:400c:c08::1b... telnet: connect to address 2a00:1450:400c:c08::1b: Network is unreachable
    0
  • cPRex Jurassic Moderator
    @MohammedSaeed - that would most likely indicate that port 25 is blocked on your network, which is common with many hosting providers. You'll want to speak with your host and confirm if that is the case.
    0
  • MohammedSaeed
    i talked with my hosting providers and they said this port is open and also i checked on this website Open Port Check Tool - Test Port Forwarding on Your Router and it looks like port 25 is open
    0
  • cPRex Jurassic Moderator
    That test would test an inbound connection, but not an outbound. Did the provider confirm the port was open in both directions? The comman line test you performed would indicate the port itself is closed.
    0

Please sign in to leave a comment.