Skip to main content

Sending email : connection timed out and retry time not reached

Answered

Comments

3 comments

  • Hi,

     

    Usually, a "connection timed out" error indicates either port 25 outbound is blocked (if all mail fails to send out) or it could indicate a specific mail host is blocking your server (if this error only happens when sending to certain hosts). I recommend ensuring that port 25 outbound is opened on your server if all domains are unable to send email with this error. If you're uncertain how to check this, you can run a command such as the following from within your server:

     

    # curl portquiz.net:25
    Port test successful!
    Your IP: 1.1.1.1
    0
  • Good Robot

    Hi William,

     

    thanks for your help.

    I did this and got:

    [root@server2 ~]# curl portquiz.net:465
    Port test successful!
    Your IP: **
    [root@server2 ~]# curl portquiz.net:587
    Port test successful!
    Your IP: **
    [root@server2 ~]# curl portquiz.net:25

     

    Port 25 does not work indeed. But how come? My hosting provider (Hostinger) does not block port 25.

    What can I do ?

    0
  • Hi,

     

    For mail to send out, port 25 outbound would need to be opened in your server's firewall. Service providers will often block port 25 if they detect spam being sent by the server.

     

    cPanel doesn't provide an interface to manage your firewall by default, but some customers prefer to use CSF to manage their firewall since it allows you to easily open ports in WHM. With that said, if your provider has put a block on port 25, opening it in the local firewall may not resolve the issue as your provider may also have external firewalls in place.

     

    If opening port 25 outbound is not an option, you can configure a smart host to send email from an alternate port:

    How To Send Email When Your Server Provider Blocks Port 25

    0

Please sign in to leave a comment.