Unfortunately both of them give the same error.ADD Creative wrote: ↑Thu May 01, 2025 6:57 pmIf EHLO [' . $_SERVER['SERVER_ADDR'] allows you to send email without errors and EHLO ' . getenv('SERVER_NAME') doesn't, then the issue is with your mail server, incorrectly rejecting your domain as part the EHLO command.oursupersoftware wrote: ↑Thu May 01, 2025 4:32 amSo I tried your response andADD Creative wrote: ↑Wed Apr 16, 2025 5:57 pmAs a test you could replace the SERVER_NAME with an IP address.
In ssystem/library/mail/smtp.php chang.To.Code: Select all
fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . "\r\n");
Code: Select all
fputs($handle, 'EHLO [' . $_SERVER['SERVER_ADDR'] . "]\r\n");
$_SERVER['SERVER_ADDR'] is mydomain.com 's IP address and
getenv('SERVER_NAME') is mydomain.com
This all seems correct.
On my VPS terminal, when I run the command hostname, I get vm569wfqi.mydomain.com, I'm not sure if that's the problem.
Maybe it's time to have a senior developer take a look at it—with paid support if needed.
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
If it gives the same error with your domain in the error message then I'm guessing you mail server is doing a reverse DNS lookup and still not allowing that IP address and domain combination.
Who is online
Users browsing this forum: Semrush [Bot] and 6 guests