# junkfilter # a junk e-mail filter system for procmail # Copyright 1997-98, Gregory Sutter # # $Id: junkfilter.two,v 2.6 1999/01/07 23:38:57 gsutter Exp $ # # Please read the file "junkfilter.readme" and the page # http://www.pobox.com/~gsutter/junkfilter/ before using # junkfilter. junkfilter is copyright 1997-98 Gregory # Sutter and is licensed under the terms of the GNU # General Public License, version 2. See the file # junkfilter.readme for details. # Section Two, reasonable spam-catching recipies JFSEC=2 # Invalid X-UIDL header, contains non-hexadecimal characters. :0 * ^X-UIDL: * !^X-UIDL:[ ]*[0-9a-f]+[ ]*$ { JFMATCH="$JFSEC: Invalid X-UIDL" INCLUDERC=$JFDIR/junkfilter.match } # New bad-AOL filter. :0 * $ ^From:\/(.*[^-(.%@a-zA-Z0-9])?[^@<>, ]+@aol\.com\> * $ ! ^From:(.*[^-(.%@a-zA-Z0-9])?([^a-z]|.+[^0-9a-z]|............).*@aol\.com\> { JFMATCH="$JFSEC: Forged AOL account: $MATCH" INCLUDERC=$JFDIR/junkfilter.match } # Hotmail mails all have this header # note, I'm assuming you're not reading this mail at hotmail.com :) :0 * $ $JFFROMREC.*hotmail.com * $ ! ^X-Originating-IP:$JFWS\[$JFIPNUM\.$JFIPNUM\.$JFIPNUM\.$JFIPNUM\] { JFMATCH="$JFSEC: Forged hotmail.com address" INCLUDERC=$JFDIR/junkfilter.match } # Checks date. Because -0600 is either CST, MDT, or water, NOTHING should # ever have a time-zone of "-0600 (EST)". :0 * ()\/^(Date|Received):.* -0600 \(EST\) { JFMATCH="$JFSEC: Invalid datestamp: $MATCH" INCLUDERC=$JFDIR/junkfilter.match } JFSEC # EOF junkfilter.two