[exim] Deny crappy HELO (fwd)

Top Page
Delete this message
Reply to this message
Author: Mar Matthias Darin
Date:  
To: exim-users
Subject: [exim] Deny crappy HELO (fwd)
Wakko Warner writes:

> I'm not actually using the regexp above on my servers, yet. Since I am the
> sole user of the domain I have no problems blocking that. I want to be more
> strict on HELO checks, but I do not want to be as strict as verify=helo


This is the approach I use:

drop    condition     = ${if match{$sender_helo_name} 
{\N^[^.].*\.[^.]+$\N}{no}{yes}}
       message       = HELO Violation 


drop    condition     = ${lookup 
{${lc:$sender_helo_name}}lsearch{/usr/exim/MyIP}{yes}{no}}
       condition     = ${lookup 
{${lc:$sender_host_address}}lsearch{/usr/exim/MyIP}{no}{yes}}
       message       = HELO Violation 


drop    condition     = ${lookup 
{${lc:$sender_address_domain}}lsearch{/usr/exim/MyIP}{yes}{no}}
       condition     = ${lookup 
{${lc:$sender_host_address}}lsearch{/usr/exim/MyIP}{no}{yes}}
       message       = HELO Violation 


drop    condition     = ${if isip {$sender_helo_name}{true}{false}}
       message       = HELO Violation 



the MyIP file is a list of your IP addresses and domain names.

Hope that helps.


##> http://tanaya.net/vmw/
In Memory of Specialist Four David Edward Williams

Let us not forget Specialist Four David Edward Williams, casualty of
the Vietnam War. As a member of the Army Selective Service, SP4
Williams served our country until April 16th, 1967 in Quang, South
Vietnam. He was 24 years old and was not married. David died from an
undetermined explosion. His body was recovered. David was born on
January 10th, 1943 in Arlington, Massachusetts.

SP4 Williams is on panel 18E, line 037 of the Vietnam Memorial Wall in
Washington D.C. He served our country for one year.