Re: [exim] Reject connects from hostnames containing special…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Alan J. Flavell
Ημερομηνία:  
Προς: Exim users list
Αντικείμενο: Re: [exim] Reject connects from hostnames containing special words
On Thu, 16 Sep 2004, Nigel Metheringham wrote:

> deny condition = ${if match {$sender_host_name}{adsl} {1}{0}}
>
> The regexp has been simplified to a minimum.


In fact it'll trigger on chance occurrences of the string "adsl" in
the middle of a "word". It might be advisable to make the match a bit
more specific? The regex element "\b" can be useful for this kind of
thing.

> I guess you might want to case independent this.


I always have to look that up!

{(?i)\badsl\b} , is it, then?

cheers