Post by oursupersoftware » Fri May 02, 2025 2:40 pm

ADD Creative wrote:
Thu May 01, 2025 6:57 pm
oursupersoftware wrote:
Thu May 01, 2025 4:32 am
ADD Creative wrote:
Wed Apr 16, 2025 5:57 pm
As a test you could replace the SERVER_NAME with an IP address.

In ssystem/library/mail/smtp.php chang.

Code: Select all

fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . "\r\n");
To.

Code: Select all

fputs($handle, 'EHLO [' . $_SERVER['SERVER_ADDR'] . "]\r\n");
So I tried your response and
$_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.
If 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.
Unfortunately both of them give the same error.

New member

Posts

Joined
Sat Aug 20, 2022 4:49 pm

Post by khnaz35 » Fri May 02, 2025 4:08 pm

oursupersoftware wrote:
Fri May 02, 2025 2:40 pm
Unfortunately both of them give the same error.
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 ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by ADD Creative » Fri May 02, 2025 5:30 pm

oursupersoftware wrote:
Fri May 02, 2025 2:40 pm
Unfortunately both of them give the same error.
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.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: Semrush [Bot] and 6 guests