You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2019/05/25 14:23:39 UTC

svn commit: r1859980 - /spamassassin/trunk/rulesrc/sandbox/gbechis/20_ratware.cf

Author: gbechis
Date: Sat May 25 14:23:39 2019
New Revision: 1859980

URL: http://svn.apache.org/viewvc?rev=1859980&view=rev
Log:
rule to catch forged mailing list headers

Modified:
    spamassassin/trunk/rulesrc/sandbox/gbechis/20_ratware.cf

Modified: spamassassin/trunk/rulesrc/sandbox/gbechis/20_ratware.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/gbechis/20_ratware.cf?rev=1859980&r1=1859979&r2=1859980&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/gbechis/20_ratware.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/gbechis/20_ratware.cf Sat May 25 14:23:39 2019
@@ -6,3 +6,9 @@ header  __FORGED_MUA_POSTFIX1	X-Mailer =
 meta	FORGED_MUA_POSTFIX	( __FORGED_MUA_POSTFIX0 || __FORGED_MUA_POSTFIX1 )
 describe	FORGED_MUA_POSTFIX	Forged Postfix mua headers
 score	FORGED_MUA_POSTFIX	1.0 # limit
+
+header  __FORGED_ML_HEADER	Mailing-List =~ /^$/
+header  __FORGED_UNSUB_HEADER	List-Unsubscribe =~ /^$/
+meta	FORGED_MAILING_LIST	( __FORGED_ML_HEADER && __FORGED_UNSUB_HEADER && !MAILING_LIST_MULTI )
+describe FORGED_MAILING_LIST	improper use of mailing list headers
+score   FORGED_MAILING_LIST	0.75 # limit