Phil,

On Thu, 2 Jun 2005, Phil Endecott wrote:

> Dear Exim Experts,
>
> I'm trying to selectively invoke SpamAssassin from Exim based on the
> recipient address, but it doesn't seem to be working - all messages are
> being filtered.  I suspect that the problem is in my Exim ACL stuff
> where I am using an ACL variable.  Can anyone spot what I am doing wrong?

For once, yes.

[...]
> acl_check_rcpt:
>    # Run for each recipient
>
>    warn set acl_m0 = 1
>         recipients = +filter_recipients
>         message = Spammy address, using filter


Swap the order - ACLs are evaluated in order, only as far as necessary,
so you want

   warn recipients = +filter_recipients
        set acl_m0 = 1
        message = Spammy address, using filter

That way, if the recipient doesn't match, the variable doesn't get set.

HTH,
 Richard


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

Reply via email to