Re: [exim] accepting mail from nonexistent domain

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Peter Bowyer
Dátum:  
Címzett: exim users
Tárgy: Re: [exim] accepting mail from nonexistent domain
2008/12/18 Marcin Krol <mrkafk@???>:
> 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: peter@???
Follow me on Twitter: twitter.com/peeebeee