adding three new rules to test scoring messages with too many recipients.
[spamassassin_config.git] / common / list_specific
index 45f9fc9..636752c 100644 (file)
@@ -71,6 +71,28 @@ header LDOSUBSCRIBER         X-Subscriber-lists.debian.org =~ /./
 describe LDOSUBSCRIBER         Sender is a lists.debian.org subscriber
 score LDOSUBSCRIBER            -6
 
 describe LDOSUBSCRIBER         Sender is a lists.debian.org subscriber
 score LDOSUBSCRIBER            -6
 
+# whitelist mails to majordomo
+header MAJORDOMOMAIL   Delivered-To =~ /lists-majordomo@/
+describe MAJORDOMOMAIL mail to major domo
+score MAJORDOMOMAIL    -0.1
+
+meta    MAJORDOMOWHITE (MAJORDOMO && (NOSUBJECT || MISSING_SUBJECT))
+describe MAJORDOMOWHITE        Counteract no subject score for majordomo mails
+score   MAJORDOMOWHITE -3
+
+# count recipients and score those with Too Many. -cord
+describe TO_TOO_MANY To: too many recipients
+header   TO_TOO_MANY To =~ /(?:,[^,]{1,80}){5}/
+score    TO_TOO_MANY 0.1
+
+describe TO_WAY_TOO_MANY To: way too many recipients
+header   TO_WAY_TOO_MANY To =~ /(?:,[^,]{1,80}){10}/
+score    TO_WAY_TOO_MANY 0.1
+
+describe CC_TOO_MANY CC: too many recipients
+header   CC_TOO_MANY CC =~ /(?:,[^,]{1,80}){10}/
+score    CC_TOO_MANY 0.1
+
 score CORRUPT_FROM_LINE_IN_HDRS        0
 score FM_DDDD_TIMES_2           0
 score FM_SEX_HOSTDDDD          0
 score CORRUPT_FROM_LINE_IN_HDRS        0
 score FM_DDDD_TIMES_2           0
 score FM_SEX_HOSTDDDD          0