On Fri, 25 Apr 2003, Malte Geierhos wrote:
> domainlist whitelist_domains = ${lookup mysql {select acpt_domain from
> whitelist where rcpt_address="${local_part}@${domain}"}fail}
What is the result of that lookup? It looks as it it will be a single
domain. Is that right? Or is it a list of domains that are allowed for
that user? That would also be OK.
> acl_section:
> accept sender_domains= +whitelist_domains
The only place you can put this is in an ACL for RCPT, because that is
the only place where $local_part and $domain is set. If it does not
work, you should use the -bh and -d command line options to run tests
with debugging turned on, so that you can see what is happening.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.