Re: [exim] check_helo_slow?

Top Page
Delete this message
Reply to this message
Author: David Woodhouse
Date:  
To: Marc Perkel
CC: David, exim-users, j2
Subject: Re: [exim] check_helo_slow?
On Sun, 2005-01-09 at 21:51 -0800, Marc Perkel wrote:
>
> deny    message = REJECTED - Bad HELO - IP address not allowed 
> ($sender_helo_name)
>     condition = ${if isip {$sender_helo_name}{true}{false}}


That would only match raw IP addresses, which would have been rejected
for being syntactically invalid anyway. To reject IP literals (in
'[...]' or '[IPv6:...]' you'd want something like...

 deny message = IPv4 literal in HELO not permitted
 condition = ${if match {$sender_helo_name}{^\[(.*)\]\$} \
        {${if isip{$1} {1}{0}} {0}}
 deny message = IPv6 literal in HELO not permitted
 condition = ${if match {$sender_helo_name}{^\[IPv6:(.*)\]\$} \
        {${if isip6{$1} {1}{0}} {0}}


(Note that this is completely untested and it's Monday morning)

--
dwmw2