> -----Original Message-----
> From: Marc Sherman [mailto:msherman@projectile.ca]
> I'd like to avoid rejecting messages that are sent to
> postmaster at any
> of my local domains. It seems that what I'd like to do is:
>
> deny message = Spam score too high ($spam_score)
> spam = Debian-exim:true/defer_ok
> !recipients = postmaster@+local_domains
> condition = ${if >{$spam_score_int}{200}{1}{0}}
>
> but according to the docs, recipients is only valid in the
> RCPT acl, not
> the DATA acl.
>
> Any suggestions?
Set a variable in the RCPT ACL, then check it in the DATA ACL. Like this:
(in the RCPT ACL)
# Don't spam filter a few special addresses.
# This sets a variable that is used later, in the data ACL.
accept local_parts = postmaster : abuse
domains = +local_domains : +relay_to_domains
set acl_c2 = true
(in the DATA ACL)
# Don't filter if we determined earlier that the mail was for postmaster
accept condition = $acl_c2