php - PHPMailer mails getting rejected by exim after upgrade to WHM/cPanel 11.30 -


after updating whm/cpanel 11.30.0, phpmailer mails being rejected exim. code:

$mail = new phpmailer();  $mail->issmtp(); $mail->smtpauth = true; $mail->password = '****'; $mail->host = "mail.***.com"; $mail->username = '***@***.com'; $mail->from = "***@***.com"; $mail->fromname = '***@***.com';             $mail->addaddress($recipient);   $mail->subject = $subject; $mail->body = $body; $result = $mail->send(); 

phpmailer returning no errors in exim reject log says

h=(localhost.localdomain) [a.n.i.p] f=<...@....com> rejected rcpt <...@....com>: (localhost.localdomain) [a.n.i.p] not permitted relay through server. perhaps have not logged pop/imap server in last 30 minutes or not have smtp authentication turned on in email client.

can help?

this common, convoluted error message exim, short of server isn't set accept email recipient domain.

it possible update has cleared out ip's defined in relayhosts. make sure host sending added /etc/exim_smtp_whitelist, , being used in cpanel configuration.

whm > exim configuration editor > advanced editor

accept hosts = /etc/exim_smtp_whitelist


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -