[exim] Block HELO with IPs

Top Page
Delete this message
Reply to this message
Author: Luca Bertoncello
Date:  
To: Exim-Users ML
Subject: [exim] Block HELO with IPs
Hi, list!

I have a very strange problem: I will reject the E-Mail with invalid HELO,
and I wrote this in my Exim-Config:

  drop  condition         = ${if isip{$sender_helo_name}}
        !authenticated    = *
        message           = 553 PRH03 - Invalid HELO/EHLO name (See RFC2821
4.1.3)


  drop  condition         = ${if match{$sender_helo_name}{\N\.\N}{no}{yes}}
        !authenticated    = *
        message           = 553 PRH04 - Invalid HELO/EHLO name (See RFC2821
4.1.1.1)


  drop  condition         = ${if match{$sender_helo_name}{\N\.$\N}}
        !authenticated    = *
        message           = 553 PRH05 - Invalid HELO/EHLO name (See RFC2821
4.1.1.1)


  drop  condition         = ${if match{$sender_helo_name}{\N\.\.\N}}
        !authenticated    = *
        message           = 553 PRH06 - Invalid HELO/EHLO name (See RFC2821
4.1.1.1)


  drop  condition         = ${if and {\
                                     { !eq {$sender_host_address}
{127.0.0.1}}\ { !eq {$sender_host_address} {$interface_address}}\
                                     { match{$sender_helo_name}{$primary_hostname}}\
                                    } {true}{false}}
        !authenticated    = *
        message           = 553 PRH07 - Bad HELO/EHLO - Host impersonating
[$sender_helo_name]


I tough, I will reject the E-Mail with HELO using an IP, but I see always in
my exim_mainlog that it's not so, for example:

2007-09-23 18:30:04 H=([84.79.58.33]) [84.79.58.33]
F=<speccingww73@???> rejected RCPT <lucabert@???>:
Greylisted 180

Well, can someone help me and say what I do wrong?

Thanks a lot!
Luca Bertoncello
(lucabert@???)