[Pkg-exim4-users] ACL runs twice
Dermot Paikkos
dermot at sciencephoto.com
Tue May 2 12:40:26 UTC 2006
Hi,
exim4-daemon-light | exim4-daemon-heavy
I have a split config and have added
WHITELIST_LOCAL_DENY_LOCAL_ACL_FILE =/etc/exim4/local-acl
to my local configuration file in /etc/exim4/conf.d/main.
The local-acl has the following acl in
accept
senders = ${if exists{/usr/local/mail/local_sender_whitelist}\
{/usr/local/mail/local_sender_whitelist}\
{}}
What I have noticed is that exim4 appears to be running this test
twice on each incoming mail. This seems unnecessary. Is it by design?
The output from exim4 -d+acl -bh is below.
What's more I want addresses in this white list to be accepted
without further tests. I am not sure how to do this. Should I put
another accept after the one above to end further testing once it has
returned a match?
Also is it recommended to use the WHITELIST_LOCAL_DENY_LOCAL_ACL_FILE
marco? It seems to suggest it is. And if so should I remove all the
files in conf.d/acl/ and create a single acl file customised to my
needs (SA-EXIM ...etc)?
Thanx.
Dp.
user at somedomain.com in ""? no (end of list)
accept: condition test failed
processing "accept"
check senders = ${if
exists{/usr/local/mail/local_sender_whitelist}{/usr/local/mail/local_s
ender_whitelist}{}}
address match: subject=user at somedomain.com
pattern=user at somedomain.com
somedomain.com in "somedomain.com"? yes (matched "somedomain.com")
user at somedomain.com in "/usr/local/mail/local_sender_whitelist"? yes
(matched "user at somedomain.com" in
/usr/local/mail/local_sender_whitelist)
accept: condition test succeeded ## Matched here
deny: condition test failed
processing "deny"
check !acl = acl_whitelist_local_deny
using ACL "acl_whitelist_local_deny"
processing "accept"
check hosts = ${if
exists{/etc/exim4/local_host_whitelist}{/etc/exim4/local_host_whitelis
t}{}}
host in ""? no (end of list)
accept: condition test failed
processing "accept"
check senders = ${if
exists{/etc/exim4/local_sender_whitelist}{/etc/exim4/local_sender_whit
elist}{}}
user at somedomain.com in ""? no (end of list)
accept: condition test failed
processing "accept"
check senders = ${if
exists{/usr/local/mail/local_sender_whitelist}{/usr/local/mail/local_s
ender_whitelist}{}}
address match: subject=user at somedomain.com
pattern=user at somedomain.com
accept: condition test succeeded ## Matched again here
More information about the Pkg-exim4-users
mailing list