RE: [Exim] helo verifying

Top Pagina
Delete this message
Reply to this message
Auteur: Kevin Reed
Datum:  
Aan: exim-users
Onderwerp: RE: [Exim] helo verifying
> -----Original Message-----
> Subject: Re: [Exim] helo verifying
>
>
> Hi !!
>
> > I wonder how I could filter specifically for hosts,
> pretending to be
> > me,
>
> try this:
>
>   drop    message       = Forged HELO not welcome, you are not
> $sender_helo_name
>           log_message   = Forged HELO: $sender_helo_name
>           condition     = ${if
> eq{$sender_helo_name}{$interface_address}{yes}{no}}

>
>   drop    message       = Forged HELO not welcome, you are not
> $sender_helo_name
>           log_message   = Forged HELO: $sender_helo_name
>           condition     = ${if
> eq{$sender_helo_name}{$primary_hostname}{yes}{no}}


I used something like that until I found some hosts were playing with the
case of the system name. Any letter that is Uppercase would defeat the
above...

        # If the HELO as my own hostname, drop them
        drop    message = You may not HELO of this system's hostname
                log_message = HELO of system's hostname
                set acl_m8 = ${lc:$sender_helo_name}
                set acl_m7 = ${lc:$primary_hostname}
                condition = ${if eq{$acl_m8}{$acl_m7}{yes}{no}}


I wanted to compare the lc (lowercase) version of both but couldn't figure
out how to code it without an error. The above worked but I'm sure it could
be done without the variables.