On 26 Apr 2019, at 9:46, Phil Stracchino wrote:

On 4/25/19 7:56 PM, Allen Coates wrote:
I have been looking at the configuration parameter
"reject_unknown_helo_hostname", with a view to using it to resist spam.

I know it is reasonably safe to reject an incoming email on an invalid or
non-fqdn HELO hostname, but *UNKNOWN?*

I don't receive a sufficient corpus of email to make a reasoned judgment.

Your comments would be appreciated.


I don't see a fundamental risk in rejecting mail from servers claiming a
HELO hostname that doesn't resolve.

There have been varied interpretations (and wordings) of the *21 RFCs that define what the HELO name should be. For example, for a long while machines handling hotmail.com mail said simply "EHLO hotmail.com" which almost makes sense in a RFC821 world. Preserving the tradition, today many of the machines that handle outbound hotmail.com mail EHLO with names that do not resolve, but look like clear transforms of the names to which their IP PTR records point, as if someone missed the announcement of the new way to construct a mail system outbound node name. These issues tend to self-resolve over time, but there seems to be an endless supply of new(?) machines using wrong forms.

If you really want to randomly reject a small unpredictable fraction of all mail from one of the largest mail providers in the world, that is a choice you are free to make. Or whitelist much of a half-dozen Class A networks to be safe...

If you're already going to reject
HELO from non-fqdn or invalid hostnames, why accept it from ones that
don't resolve at all?

People make typos. People misunderstand naming conventions. People miss memos on the rollout of new naming conventions. The HELO name is historically an entirely insignificant SMTP argument which has been imperfectly specified and which RFCs have said should not be policed.

--
Bill Cole
[email protected] or [email protected]
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Available For Hire: https://linkedin.com/in/billcole

Reply via email to