After reading about IP based HELO blocking at junnkemailfilter.com and getting 3 spams today, looked at the headers:
to block a helo with an IP literal makes sense nowadays - no legitimate server will use an IP based hostname - maybe in the happy trusting 1980's, but not now where nearly 99% of email traffic is spam.. Exim is new to me - so resorted to google to help here to get it implemented... Armed with some code - lets block some spammers!
########################################################################################
# DO NOT ALTER THIS BLOCK (yes - we will alter)
########################################################################################
acl_mail:
# ignore authenticated hosts
accept authenticated = *
.. some rules..
drop
condition = ${if and {{match {$sender_helo_name}{\N^\[(.+)\]$\N}}{isip4 {$1}}}{true}{false}}
message = Access denied - IP based HELO not allowed. (See RFC2821 4.1.3)
Of course you have a backup copy in case this one got borked... restart exim and then enjoy the results with |
|||
