Autor: Peter Bowyer Data: A: Exim, Users Assumpte: Re: [exim] Help with multiple condition ACL needed
(On-list please....)
On 19/12/06, Exim User <exim3@???> wrote: > Funny.
No, not funny - since the DATA ACL is run once per message, there's no
guarantee of a unique value for the destination domain - there could
be many.
> What are others doing to achieve this?
Many things
- you can implement a RCPT ACL which captures the first destination
domain in a $acl_m variable for use in the DATA ACL, and then defers
recipients after the first one;
- more subtly you can defer subsequent recipients which don't have
the same destination domain as the first
- even more subtly, you can defer subsequent recipients which don't
have the same reject preferences as the first (ie 2 or more domains
might have the same preferences, so you can let them both through)
Many small-to-medium sites can get away with one of these without any
noticiable hit on overall mail throughput.
> Temporarily I installed a system filter. Is there a better way?
Better done in ACLs so you can deny rather than bounce/blackhole.