Re: [Exim] ACL help pls

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Avleen Vig
Datum:  
To: John Jetmore
CC: exim-users
Betreff: Re: [Exim] ACL help pls
On Mon, Mar 15, 2004 at 05:09:12PM -0600, John Jetmore wrote:
> >   deny  hosts           = <relay>
> >         message         = Bad person passing through relay
> >         condition       = ${if match {$h_received:}{helo=[\d+\.\d+\.\d+\.\d+]}{yes}{no} }

>
> If the pattern you're trying to match is helo=1.2.3.4, then wouldn't the
> regexp be helo=\d+\.\d+\.\d+\.\d+ (no square brackets). If the square
> brackets are in the pattern to be matched, the would need to be escaped.
> Also, doesn't the whole regexp need to be wrapped in \N to prevent the
> backslashes being removed in expansion? Just throwing out
> possibilities...


Correct on both counts. Thanks!

--
Avleen Vig
Systems Administrator
Doing virtual domain hosting with Exim?
  Check out Virtual Exim: http://silverwraith.com/vexim
    (Click the banner, support development..)