[Exim] No verify sender callout for whitelisted hosts

Top Page
Delete this message
Reply to this message
Author: Jez Hancock
Date:  
To: Exim Users List
Subject: [Exim] No verify sender callout for whitelisted hosts
Hi all,

I'm trying to stop Exim from performing sender verify callouts on hosts
that appear in a file containing whitelisted domains. For some reason
the ACL refuses to accept the whitelisted hosts even though I can see
them blatantly passed over by Exim in debug output.

My config has the following:
---
# Whitelisted hosts:
WHITELIST_HOSTS_FILE    = /etc/mail/whitelist_hosts
<snip>
begin acl


acl_check_rcpt:
# Accept local SMTP:
accept hosts = :

  # Deny badly formed local_parts:
  deny    local_parts   = ^.*[@%!/|] : ^\\.


  # Accept postmasters in local_domains:
  accept  local_parts   = postmaster
          domains       = +local_domains


# Accept whitelisted hosts:
accept hosts = WHITELIST_HOSTS_FILE
---
and the whitelist file /etc/mail/whitelist_hosts contains:

tinysoftware.com

amongst others, one domain per line.

When I execute 'exim -bhc 64.165.37.226' I see:

220 munk.nu ESMTP Exim 4.22 Wed, 27 Aug 2003 13:03:47 +0100
ehlo tinysoftware.com
<snip>
mail from:nobody@???
250 OK
rcpt to:munk@???
<snip>
>>> processing "accept"
>>> check hosts = /etc/mail/whitelist_hosts

<snip>
>>> gethostbyname2 looked up these IP addresses:
>>> name=tinysoftware.com address=198.64.137.209
>>> host in "/etc/mail/whitelist_hosts"? no (end of list)
>>> accept: condition test failed


Why is the ACL whitelist condition failing here when Exim appears to
see the whitelisted host in the whitelist host file?

--
Jez

http://www.munk.nu/