News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMTP EHLO/HELO command wrong parameter

Started by digger, March 22, 2017, 04:26:36 PM

Previous topic - Next topic

digger

Why EHLO/HELO command send $modSettings['smtp_host'] instead of the forum hostname (see RFC-5321)? I see a comment about this in the code (SMF 2.0.13) but it's still not fixed.


Subs-Post.php
if ($modSettings['mail_type'] == 1 && $modSettings['smtp_username'] != '' && $modSettings['smtp_password'] != '')
{
// !!! These should send the CURRENT server's name, not the mail server's!

// EHLO could be understood to mean encrypted hello...
if (server_parse('EHLO ' . $modSettings['smtp_host'], $socket, null) == '250')
{
if (!server_parse('AUTH LOGIN', $socket, '334'))
return false;
// Send the username and password, encoded.
if (!server_parse(base64_encode($modSettings['smtp_username']), $socket, '334'))
return false;
// The password is already encoded ;)
if (!server_parse($modSettings['smtp_password'], $socket, '235'))
return false;
}
elseif (!server_parse('HELO ' . $modSettings['smtp_host'], $socket, '250'))
return false;
}

digger



shawnb61

Thanks for the confirmation, moving to the fixed bugs board.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Advertisement: