RE: [exim] check_helo_slow?

Top Pagina
Delete this message
Reply to this message
Auteur: Rick Cooper
Datum:  
Aan: David, David Woodhouse
CC: exim-users
Onderwerp: RE: [exim] check_helo_slow?


> -----Original Message-----
> From: David [mailto:david@ols.es]
> Sent: Monday, January 10, 2005 10:57 AM
> To: David Woodhouse
> Cc: Rick Cooper; exim-users@???
> Subject: Re: [exim] check_helo_slow?
>
>
> Hi !!
>
> > IIRC the '$1' in isip{} won't contain the IP address extracted by the
> > match if you do it that way; it'll always end up empty. I put the
> > isip{$1} inside the result of the ${if} on purpose.
>
> in fact it could be more simple, as if the helo is enclosed in []
> then it must be an ip literal, so it must match the ip address:
>
> # Check ip literals
>
>    accept  condition     = ${if match {$sender_helo_name}\
>               {\N^\[(.*)\]$\N}{yes}{no}}
>            condition     = ${if eq{$sender_helo_name}\
>               {[$sender_host_address]}{yes}{no}}

>
>    deny    condition     = ${if match {$sender_helo_name}\
>               {\N^\[(.*)\]$\N}{yes}{no}}
>            message       = Forged HELO: you are not $sender_helo_name
>            log_message   = Forged HELO: ip does not match

>
> --



actually all you have to do is match an address of [something] because exim
will return a syntax violation if there is something other than an ip
address within the brackets. I just took his expression and made it work
properly. The isip portion is redundant but functional.

Rick


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.