Spamassassin Notes

Add a rule to score messages with invalid date offsets

Create the file for the rule: 99_custom.cf

# check for an invalid time offset
header L_SPAM_TOOL_13   Date =~ /\s[+-]\d\d[124-9]\d$/
describe L_SPAM_TOOL_13 Bogus time-zone

Add the score to the spamassassin local.cf

#check for valid timezone
score L_SPAM_TOOL_13    3.1

Spam check for these damn postcard rules

Credit: http://www.impsec.org/~jhardin/antispam/

# Postcard spam rules
# $Id: postcards.cf,v 1.2 2007-07-19 12:23:29-07 jhardin Exp jhardin $
# http://www.impsec.org/~jhardin/antispam/

describe POSTCARD_01 You got a postcard!
header   POSTCARD_01 Subject =~ /You(?:'ve| have) (?:received )?an? (?:new )?(?:greeting |anonymous )?(?:postcard|e?card) from an? (?:admirer|colleague|family member|friend|mate|neighbou?r|partner|(?:class|school).?(?:friend|mate)|worshipper|anonymous|buddy)/i
score    POSTCARD_01 2.50

describe POSTCARD_02 You got a postcard!
header   POSTCARD_02 Subject =~ /you have a new greeting/i

describe POSTCARD_03 From postcard.com
header   POSTCARD_03 From =~ /postcards\.com/i
 
linux/application.notes/spamassassin.txt · Last modified: 09:11 20/07/2007 by rharding