Re: [Exim] Match Domain in Data ACL

Top Pagina
Delete this message
Reply to this message
Auteur: Peter Bowyer
Datum:  
Aan: exim-users
Onderwerp: Re: [Exim] Match Domain in Data ACL
Paulo Andre said:
> I have a config to check for an attachment, and then email it to another
> address:
>
> warn    message       = X-Redirect-To: deniedbox@???
>           demime        = txt

>
> Now I would like for a certain domain to be exempted from this, what is
> the
> best way to do this. I have tried to use domains, but that aint allowed to
> be
> used in DATA ACL.


No, because the message may have more than one recipient.

A possible solution to this is to set a $acl_m variable in your RCPT ACL
if it spots a recipent which matches your condition for redirection, and
then act on it in the DATA ACL if you spot the attachment.

Peter