Author: Joshua N. Vautour Date: To: exim-users Subject: [exim] Spam Scan Outgoing Messages - Router problems
I'm trying to reject all email sent through the server that have more
then 10 recipients and are determined to be spam. All outgoing messages
with more then 10 recipients do get scanned but even if they have
X-Spam-Flag: YES they still get through does the message not go through
the routers on it's way back from spamassassin? Below are my routers
let me know if anyone wants more info.
outgoing_spam:
driver = accept
domains = ! +local_domains
condition = "${if and {{>{$recipients_count}{10}}{!eq
{$received_protocol}{spam-scanned}}}{yes}{no}}"
transport = spamcheck
no_more
outgoing_spam_rejection:
driver = redirect
allow_fail
domains = ! +local_domains
condition = "${if eq {$h_X-Spam-Flag:}{YES}{yes}{no}}"
no_more
data = :fail: <<Message detected as Spam>> It has been determined that
this message is spam.