Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Email instantly fails with error all hosts for domain have been failing

Discussion in 'E-mail Discussions' started by D5894, Aug 15, 2017.

  1. D5894

    D5894 Registered

    Joined:
    Aug 15, 2017
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Vancouver
    cPanel Access Level:
    Root Administrator
    When using the "forgot password option" for our site, the emails fail instantly.
    Looking at the Mail Delivery Reports we get "all hosts for 'domain.name' have been failing for a long time (and retry time not reached)" instantly. The email is attempting to send to our own exchange server.

    Any help is appreciated.
     

    Attached Files:

    • 001.png
      001.png
      File size:
      18.9 KB
      Views:
      2
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you verify the connection from your cPanel server to the remote exchange server is succeeding? You can test using the "telnet" utility. EX:

    Code:
    telnet remote-exchange-server 25
    Also, are you able to send emails to other remote mail servers?

    Thank you.
     
  3. D5894

    D5894 Registered

    Joined:
    Aug 15, 2017
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Vancouver
    cPanel Access Level:
    Root Administrator
    When I run telnet I get "command not found"
    I ran the WHM "Mail Troubleshooter" and it tests okay for both our domain and others
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you search for an affected message in /var/log/exim_mainlog and let us know the output? EX:

    Code:
    exigrep user@remote-exchange-server /var/log/exim_mainlog
    Thank you.
     
  5. D5894

    D5894 Registered

    Joined:
    Aug 15, 2017
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Vancouver
    cPanel Access Level:
    Root Administrator
    Code:
    2017-08-15 07:28:53 1dhcpx-000GUw-FH <= cpanelusername@FQDN-of-server U=username P=local S=1045 id=7f4312b624a0f17d3c78ebabbf730ac4@websiteurl T="[Website Name] Password Reset" for exchageemail@domain.com
    2017-08-15 07:28:53 1dhcpx-000GUw-FH SMTP connection outbound 1502807333 1dhcpx-000GUw-FH Website-URL exchageemail@domain.com
    2017-08-15 07:28:53 1dhcpx-000GUw-FH ** exchageemail@domain.com R=lookuphost T=remote_smtp: all hosts for 'domainname.com' have been failing for a long time (and retry time not reached)
    2017-08-15 07:28:53 1dhcpx-000GUw-FH Completed
    Edited for real names
     
    #5 D5894, Aug 15, 2017
    Last edited by a moderator: Aug 15, 2017
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    This suggests your server is unable to make connections to the server that hosts "domainname.com". Do you have any firewall rules on either server that could be blocking the connection over port 25?

    Thank you.
     
  7. D5894

    D5894 Registered

    Joined:
    Aug 15, 2017
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Vancouver
    cPanel Access Level:
    Root Administrator
    Hi - I ran the "Resolver Configuration" and am now able to connect and was able to send the emails.
    Thank you very much for the help!
     
    cPanelMichael likes this.
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to solve the issue. Thank you for updating us with the outcome.
     
Loading...

Share This Page