Failing to connect smtp server

Ahamed Husain

Member
Sep 22, 2017
7
0
1
Coimbatore
cPanel Access Level
Root Administrator
Successfully configured SMTP server per steps given below

- Entered SMTP Name: 'smtp.example.com' under cpanel > exim configuration > mail > smarthost name
- Added required values in Exim configuration > mail > Advanced Editor > Section: POSTMAILCOUNT | Section: Auth | Section: Transportstart as instructed by: - Removed -| Please turn on SMTP Authentication

Through the above steps, attempted to send mail vide url: - Removed - But it failed throwing up the error that :"connection to the smtp server failed".

Seek your intervention as to enable sending mail flawlessly right into the inbox
 
Last edited by a moderator:

Ahamed Husain

Member
Sep 22, 2017
7
0
1
Coimbatore
cPanel Access Level
Root Administrator
Here is an update. Local SMTP relay is working fine. PHPMailer is sending mails successfully but the remote client (like gmail) is not receiving. In WHM, The Mail Queue Manager shows frozen as status. And mail delivery report show as a 'remote host address is the local host'. Screenshot tagged herewith for ready reference. Help sorting out, revert.
 

Attachments

cPanelMichael

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

Can you let us know the output to /var/log/exim_mainlog when reproducing this issue? EX:

Code:
exigrep [email protected] /var/log/exim_mainlog
Also, is the domain you are sending email from listed in the /etc/localdomains file or the /etc/remotedomains file?

Thank you.
 

Ahamed Husain

Member
Sep 22, 2017
7
0
1
Coimbatore
cPanel Access Level
Root Administrator
Here below is the exim you asked for.
Code:
[[email protected] ~]# tail -f /var/log/exim_mainlog | grep [email protected]
2018-11-21 21:17:53 1gPUjJ-0000vz-51 <= [email protected] H=localhost (host.domain.tld) [127.0.0.1]:57480 P=esmtpa A=dovecot_login:[email protected] S=625 [email protected] T="SoftLayer Tes t" for [email protected]
2018-11-21 21:17:53 1gPUjJ-0000vz-51 SMTP connection outbound 1542815273 1gPUjJ- 0000vz-51 ecitizen.in [email protected]
2018-11-21 21:17:53 1gPUjJ-0000vz-51 == [email protected] R=remoteserver_r oute defer (-1): remote host address is the local host
The [email protected] is user to which our server ([email protected]) is sending mail to.

Additionally we have attached the screenshot of command.
To be upfront, we are not actually proficient in root terminal commands. So regret for any inadequate information.

Yes our domain is listed in /etc/localdomains file.
 

Attachments

Last edited by a moderator:

cPanelMichael

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