2008/12/18 Marcin Krol <[email protected]>:
> Hello everyone,
>
> I have this ACL:
>
> begin acl
>
> acl_svwl:
>         accept sender_domains = +nosv_domains_whitelist
>         accept recipients = lsearch;/etc/exim4/nosv_recipients
>         require verify = sender/callout=120s,defer_ok
>         accept
>
> ...
>
>   require verify        = sender
>   acl = acl_svwl
>
> Now this problem is a bit complicated: when the incoming sender has a
> non-existent local part [1], the mail is accepted if a recipient is
> listed in /etc/exim4/nosv_recipients file.
>
> But, if domain is non-existent [2] as well, it is rejected, because in
> that case require says that condition test failed immediately.
>
> The question is: how do I make Exim accept the mail in this ACL when
> sender domain doesn't exist?

Move the 'accept sender_domains = +nosv_domains_whitelist' line into
the main ACL.

accept sender_domains = +nosv_domains_whitelist
acl = acl_svwl
require verify= sender

Bear in mind you may get into trouble using sender verify callouts
against arbitrary domains which are outside your administrative
jurisdiction.

Peter
-- 
Peter Bowyer
Email: [email protected]
Follow me on Twitter: twitter.com/peeebeee

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to