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

D5894

Registered
Aug 15, 2017
4
1
3
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.
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
The email is attempting to send to our own exchange server.
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.
 

D5894

Registered
Aug 15, 2017
4
1
3
Vancouver
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.
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

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

Code:
exigrep [email protected] /var/log/exim_mainlog
Thank you.
 

D5894

Registered
Aug 15, 2017
4
1
3
Vancouver
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 [email protected] /var/log/exim_mainlog
Thank you.
Code:
2017-08-15 07:28:53 1dhcpx-000GUw-FH <= [email protected] U=username P=local S=1045 [email protected] T="[Website Name] Password Reset" for [email protected]
2017-08-15 07:28:53 1dhcpx-000GUw-FH SMTP connection outbound 1502807333 1dhcpx-000GUw-FH Website-URL [email protected]
2017-08-15 07:28:53 1dhcpx-000GUw-FH ** [email protected] 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
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
all hosts for 'domainname.com' have been failing for a long time (and retry time not reached)
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.
 

D5894

Registered
Aug 15, 2017
4
1
3
Vancouver
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.
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!
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

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