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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Stian Grytoyr
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: 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