cPanel SMTP server with phpmailer

andysck2

Member
Mar 13, 2017
5
0
1
Hong Kong
cPanel Access Level
Website Owner
please help.

I send email from phpmailer that can connect to gmail but can not connect to Cpanel smtp just now.

the log is below:

2017-03-29 12:28:36 CLIENT -> SERVER: EHLO 192.168.11.1
2017-03-29 12:28:45 SMTP ERROR: EHLO command failed: 220-mydomain.com ESMTP Exim 4.88 #1 Wed, 29 Mar 2017 20:28:45 +0800 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
2017-03-29 12:28:45 CLIENT -> SERVER: HELO 192.168.11.1
2017-03-29 12:28:45 CLIENT -> SERVER: AUTH LOGIN
2017-03-29 12:28:45 SMTP ERROR: AUTH command failed: 250 mydomain.com Hello 192.168.11.1 [106.155.20.38]
2017-03-29 12:28:45 CLIENT -> SERVER: QUIT
2017-03-29 12:28:45 SMTP ERROR: QUIT command failed: 503 AUTH command used when not advertised SMTP connect() failed.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

Your access level is listed as "Website Owner". Do you have root access to this system? If not, please report this issue to your web hosting provider so they can take a closer look.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

Do you notice any output to /var/log/exim_mainlog or /var/log/exim_rejectlog when the SMTP connection attempt fails?

Thank you.
 

andysck2

Member
Mar 13, 2017
5
0
1
Hong Kong
cPanel Access Level
Website Owner
Hello,

Do you notice any output to /var/log/exim_mainlog or /var/log/exim_rejectlog when the SMTP connection attempt fails?

Thank you.
Hello,

exim_mainlog:

2017-03-30 07:47:39 SMTP connection from [myip]:46568 (TCP/IP connection count = 1)
2017-03-30 07:47:55 SMTP connection from (192.168.11.1) [myip]:46568 closed by QUIT
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
I'm not seeing much from the log output that would help to diagnose the issue. Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

andysck2

Member
Mar 13, 2017
5
0
1
Hong Kong
cPanel Access Level
Website Owner
I'm not seeing much from the log output that would help to diagnose the issue. Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
Hi Michael,

After long time checking, figure it out that smtp connection is slow and the phpmailer timeout.

Disabled "Introduce a delay into the SMTP transaction for unknown hosts and messages detected as spam.", can not fixed.

is that a DNS problem? Any Idea.

regards,
andy
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

Typically, a DNS issue would not result in the slowness. We're happy to take a closer look at the affected system to see what's happening if you'd like to open a support ticket.

Thanks!