Re: [Exim] 4XX messages from ACL

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Giuliano Gavazzi
CC: exim-users
Sujet: Re: [Exim] 4XX messages from ACL
On Tue, 3 Dec 2002, Giuliano Gavazzi wrote:

> my only problem with this is that I do not want to check something
> twice and I want to be able to either defer or reject from the same
> rule.
> In particular the
>
> sender_domains = hotmail.com : yahoo.com : ...
>
> would have to be repeated.


domainlist check_domains = hotmail.com : yahoo.com : ...

...

xxxx:
  deny  sender_domains = +check_domains
        ...


  defer sender_domains = +check_domains
        ...



From the manual:

Named lists may have a performance advantage. When Exim is routing an address
or checking an incoming message, it caches the result of tests on named lists.
So, if you have a setting such as

    domains = +local_domains


on several of your routers, the actual test is done only for the first one.

I should probably add "or ACL statements" to make it absolutely clear.

Oops! On checking the code, I see that that the caching is applied to
recipient domains in an ACL, but not to sender domains. That's an
oversight, I think. I'll look into fixing that case.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.