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.

dnslookup:
 driver = dnslookup
 domains = ! +local_domains
 transport = remote_smtp
 ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
 no_more



Joshua

--
## 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