[Exim] Some more broken ACL's

Top Page
Delete this message
Reply to this message
Author: Avleen Vig
Date:  
To: exim-users
Subject: [Exim] Some more broken ACL's
I have a secondary MX relay mail to my server.
I want to check the Received: header for the IP of the server sending
mail to my secondary and do DNSBL lookups against that.

Example header:
Received: from dhcp024-208-141-170.insight.rr.com ([24.208.141.170])
        by secondary.mail.server with smtp (Exim 4.30)
        id 1BFa9f-0000Dp-00; Mon, 19 Apr 2004 07:53:52 -0700



My ACL is:
  deny  hosts      = secondary.mail.server
        message    = BLOCKED: $dnslist_domain=$dnslist_value
        set acl_m4 = ${if match {$h_received:}\
                                {\N\[(\d+)\.(\d+)\.(\d+)\.(\d+)\].* \
                                by secondary\.mail\.server\N}\
                                {$4.$3.$2.$1}fail}
        dnslists   = sbl-xbl.spamhaus.org:list.dsbl.org:dynablock.njabl.org/$acl_m4



This check is in the content-check, but never seems to get looked at -
I've watched my DNS logs and the lookups just aren't done. Other checks
in that section like an SPF check DO take place though.

Any ideas?

--
Avleen Vig
Systems Administrator
Doing virtual domain hosting with Exim?
  Check out Virtual Exim: http://silverwraith.com/vexim
    (Click the banner, support development..)