Re: [exim] Logging ACL denies

Top Page
Delete this message
Reply to this message
Author: David Cantrell
Date:  
To: exim-users
Subject: Re: [exim] Logging ACL denies
On Wed, Aug 05, 2009 at 01:20:17PM +0200, Peter Velan wrote:
> am 05.08.2009 13:14 schrieb David Cantrell:
> > In my ACLs I have this:
> >   deny
> >     message = sender IP $sender_host_address is blacklisted (in $host_data)
> >     !acl = acl_whitelist_local_deny
> >     hosts = ${if exists{CONFDIR/local_host_blacklist}\
> >                  {CONFDIR/local_host_blacklist}\
> >                  {}}
> > It works, except that the (in $host_data) bit is interpolating nothing
> > for the variable.
> $sender_host_name [1] or $sender_helo_name [2] comes in mind.


Ah, no. What I want is to show that, eg, 10.7.8.9 is being denied
because it's in 10.0.0.0/8, which is listed in .../local_host_blacklist.
Sorry if I wasn't clear!

In that case I'd like the message logged to be:
... sender IP 10.7.8.9 is blacklisted (in 10.0.0.0/8)

where now it's:
... sender IP 10.7.8.9 is blacklisted (in )

--
David Cantrell | top google result for "internet beard fetish club"

Anyone willing to give up a little fun for tolerance deserves neither