PHP scripts can´t send email to non available domains

Operating System & Version
Linux x86_64 x86_64 x86_64 GNU/Linux
cPanel & WHM Version
WHM vv94.0.4

fmosse

Well-Known Member
Jan 6, 2002
48
1
308
Hi,

In the last week something has changed / been updated in my WHM.

When a script that has PHPMAILER with SMTP authentification tries to send an email where the host doesnt exist, the script DOESNT ALLOW TO SEND THE EMAIL. (Before this, the script allowed to send the email and then the sender received a "bounced email")

Here is an example log
I replaced my IP to "99.99.99.99". That no my real IP. And where it says "mydomain.com" I also replaced the real domain)

SMTP -> FROM SERVER: 220-99-99-99-99.cprapid.com ESMTP Exim 4.94 #2 Mon, 26 Apr 2021 20:03:53 -0300 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -> FROM SERVER: 250-99-99-99-99.cprapid.com Hello www.mydomain.com [99.99.99.99] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-X_PIPE_CONNECT 250-AUTH PLAIN LOGIN 250 HELP SMTP -> FROM SERVER: 250 OK SMTP -> FROM SERVER: 550-The mail server could not deliver mail to [email protected]. The 550-account or domain may not exist, they may be blacklisted, or missing the 550 proper dns entries. SMTP -> ERROR: RCPT not accepted from server: 550-

Which could be the problem?

Thanks,
Francisco
 
Last edited:

fmosse

Well-Known Member
Jan 6, 2002
48
1
308
Hey there! Is it possible the email address returning this error was local to the cPanel server?
I have finally received a reply from Cpanel Support:

"After updating to v94, I understand that emails from PHPMailer are not being sent if the email does not exist.

This is currently the intended behavior since v94. Along with this update, Exim was upgraded to version 4.94. With this new Exim version, your issue is one of the changes made to Exim as stated in the v94 release notes:


Exim updates for bad recipients

The server will not send a message to any recipients if one of the addresses is unreachable. Previously, the server would send a message to valid recipients, even if one of the addresses was bad.
- https://docs.cpanel.net/release-notes/94-release-notes/#exim-updates-for-bad-recipients.

This might be reversible. However, I have yet to find a guide or forum post of a user doing this successfully.

"