Re: [Exim] Feature request regarding invalid EHLO/HELO

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Stian Grytoyr
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] Feature request regarding invalid EHLO/HELO
Philip Hazel <ph10@???> writes:

| (2) Put something in an ACL


Ah, I should have guessed that Exim could do this already.
Here's what I ended up with (wrapped for readability):

   warn   log_message = bad HELO/EHLO: "$sender_helo_name"
             condition = ${if match{$sender_helo_name}{
               \N^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])+
               (\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9]))*
               (\.[a-zA-Z0-9]([a-zA-Z0-9]*[a-zA-Z0-9])?)+$\N
             }{no}{yes}}


It seems to work ok. And yes, alerting postmasters may be a
big waste of time, and I might not bother after a while, but
at least now they are in my log file if I feel like it :)

Thanks.

--
Regards,
Stian Grytoyr