peyman974 wrote: ↑Tue Jul 23, 2024 3:27 pm
Code: Select all
# EHLO
LINE: 1557 <- 501 5.5.4 Domain address required: EHLO
# HELO
LINE: 1567 <- 501 5.5.4 Domain address required: HELO
This is the same error you were getting earlier. From the error, it sounds like your host's domain isn't getting sent properly (or at all).
We try to determine it this way:
Code: Select all
// Here we try to determine the *real* hostname (reverse DNS entry preferrably)
$local_host = $user->host; // Comes from $request->server('SERVER_NAME')
if (function_exists('php_uname'))
{
$local_host = php_uname('n');
// Able to resolve name to IP
if (($addr = @gethostbyname($local_host)) !== $local_host)
{
// Able to resolve IP back to name
if (($name = @gethostbyaddr($addr)) !== $addr)
{
$local_host = $name;
}
}
}
If we follow through that, it's a forward lookup on your host, followed by a reverse lookup. For byethost14.com, the forward lookup does not provide an address, so reverse lookup fails. This means it uses whatever `php_uname('n')` returns for your host.
Put this on your host and run it and post the results:
Code: Select all
<?php
echo 'Server name: ' . $_SERVER['SERVER_NAME'] . '<br />';
echo 'uname: ' . php_uname('n') . '<br />';
echo 'A record: ' . gethostbyname(php_uname('n'));