Re: [Exim] wildcard blacklisting by HELO?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Victor Forsyuk
Dátum:  
Címzett: Scott Truman
CC: exim-users
Tárgy: Re: [Exim] wildcard blacklisting by HELO?
On Fri, Mar 19, 2004 at 04:51:30PM +1300, Scott Truman wrote:
> Thanks for this...your regex expressions work well; how do I use wild
> card regex's?


Read docs about wildlsearch.

> i.e I get many HELO's in the form:
>
> c-24-9-152-139.client.comcast.net
> adsl-69-212-19-224.dsl.milwwi.ameritech.net
>
> Using * or ? As wilcards does not seem to work for me:-
>
> I have lines such as:
> \.client\.comcast\.net
> \.dsl\.*\.ameritech\.net
>
>
> Obviously I am doing something wrong...?


"The string may begin with a circumflex to indicate a regular expression".
(docs, section 9.2, "Single-key lookup types")

> Help appreciated.
>
> cheers
> Scott
>
> -----Original Message-----
> From: Victor Forsyuk [mailto:victor@gu.net]
> Sent: Wednesday, 18 February 2004 7:16 a.m.
> To: Scott Truman
> Cc: exim-users@???
> Subject: Re: [Exim] wildcard blacklisting by HELO?
>
>
> On Wed, Feb 18, 2004 at 12:37:53AM +1300, Scott Truman wrote:
> > Can anybody help here, please?
>
> My config snippet:
>
> # define macro to refer in ACL REJECTHELO=/etc/exim/acls/helorejectrcpt
>
> And, in appropriate place at RCPT ACL:
>
>   deny condition = ${lookup
> {$sender_helo_name}nwildlsearch{REJECTHELO}{yes}{no}}
>        hosts   = ! +relay_from_hosts
>        message = Mail is blocked: ${lookup
> {$sender_helo_name}nwildlsearch{REJECTHELO}{$value}}

>
>
> My REJECTHELO file contains entries like:
>
> ^\d+-\d+-\d+
> ^ip[0-9a-f]{8}\.speed\.planet\.nl ^h\d+n\d+fls\d+o\d+\.telia\.com
> ^dialup-
> ^user\d{1,3}\.net\d{2,3}
>
> and so on (with corresponding message in each line, naturally).