Re: [exim] How reject HELLO with my IP

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Frank Elsner
Datum:  
To: exim-users
Betreff: Re: [exim] How reject HELLO with my IP
On Thu, 09 Mar 2006 06:38:16 +0200 bclark wrote:

[ ... ]

>    drop  message = "REJECTED - Bad HELO - IP address not allowed [$sender_helo_name]"
>          condition = ${if isip {$sender_helo_name}}


An IP is definitly allowd, but it must be the IP of the sendung host.

My ACL reads:

check_helo:

  deny message = Illegal argument in HELO/EHLO ($sender_helo_name)
       log_message = Strange IP addr given
       condition = ${if and {\
                       { isip {$sender_helo_name}}\
                       { !eq  {$sender_helo_name}{$sender_host_address}}\
                       { !eq  {$sender_helo_name}{[$sender_host_address]}}\
                            }\
                        {yes}{no}}


  deny hosts = message = Illegal HELO/EHLO (You really can't be $primary_hostname)
       log_message = Illegal HELO/EHLO (primary_hostname)
       condition = ${if eq {${lc:$sender_helo_name}}{${lc:$primary_hostname}}\
                           {yes}{no}}


accept



--Frank Elsner