[exim] exim_surbl

Top Page
Delete this message
Reply to this message
Author: John Schmerold
Date:  
To: exim-users
Subject: [exim] exim_surbl
I've been running exim_surbl (from
http://www.teuton.org/~ejm/exim_surbl ) for approximately 12 hours.
Memory utilization is way down, message delivery time is way up, life
seems good.

So far it works really well, point of this message is 1) to let
everyone know about this and 2) find out if there are issues that I
should be aware of relative to use of this tool. Installation was
simple, I did following:
cd /usr/src ; wget http://www.teuton.org/~ejm/exim_surbl/exim_surbl-2.0.tar.gz
tar zxf exim_surbl-2.0.tar.gz
cp -p exim_surbl-2.0/exim_surbl.pl /etc/exim
cp -p exim_surbl-2.0/surbl_whitelist.txt /etc/exim
cp -p exim_surbl-2.0/ccTLD.txt /etc/exim

Then edited /etc/exim/exim_surbl.pl to reflect the fact that our exim
configuration files are in /etc/exim

Then put following in exim.conf main section:
perl_startup = do '/etc/exim/exim_surbl.pl'

Then put following in exim.conf acl_smtp_mime section:
   deny condition = ${if <{$message_size}{100000}{yes}{no}}
        set acl_m0 = ${perl{surblspamcheck}}
        condition = ${if eq{$acl_m0}{false}{no}{yes}}
        message = $acl_m0


Finally put following in acl_smtp_data section and restarted exim:
   deny condition = ${if <{$message_size}{100000}{yes}{no}}
        condition = ${if eq{$acl_m0}{}{yes}{no}}
        set acl_m1 = ${perl{surblspamcheck}}
        condition = ${if eq{$acl_m1}{false}{no}{yes}}
        message = $acl_m1


Within seconds - every second actually, tail -f /var/log/exim/main.log
happily reported:
2007-12-04 11:40:45 1IzblE-000860-Q9
H=host158-101-dynamic.27-79-r.retail.telecomitalia.it [79.27.101.158]
F=<Archuna492@???> rejected during MIME
ACL checks: Blacklisted URL in message. (oran____.com) in [jp] [ob]
[ws] [sc]. See http://www.surbl.org/lists.html.

John