Hi all,
I am not familiar with the cPanel set up so I am hoping someone can help me get this resolved.
I have a test PHP script which sends an email using Mail::factory and SMTP AUTH on port 465 to an external SMTP server.
If I "php mailertest.php" as root on the server then the email sends fine and there is (as expected) no hit on the mail log.
If, however, I try to run the same script via a webpage or as the cPanel user then I get the following in the maillog:
dovecot_login authenticator failed for <hostname> (localhost) <IP: port> 535 Incorrect authentication data (set_id=<emailaddress>)
SMTP connection from <hostname> (localhost) <IP: port> closed by QUIT
It appears that the server is attempting to use POP before SMTP on the localhost and thus failing to send.
The domain name has been removed from /etc/localdomains and added to /etc/remotedomains already and is correctly configured on the remote SMTP mail server.
Can someone please tell me what needs to be reconfigured?
Thanks!
I am not familiar with the cPanel set up so I am hoping someone can help me get this resolved.
I have a test PHP script which sends an email using Mail::factory and SMTP AUTH on port 465 to an external SMTP server.
If I "php mailertest.php" as root on the server then the email sends fine and there is (as expected) no hit on the mail log.
If, however, I try to run the same script via a webpage or as the cPanel user then I get the following in the maillog:
dovecot_login authenticator failed for <hostname> (localhost) <IP: port> 535 Incorrect authentication data (set_id=<emailaddress>)
SMTP connection from <hostname> (localhost) <IP: port> closed by QUIT
It appears that the server is attempting to use POP before SMTP on the localhost and thus failing to send.
The domain name has been removed from /etc/localdomains and added to /etc/remotedomains already and is correctly configured on the remote SMTP mail server.
Can someone please tell me what needs to be reconfigured?
Thanks!