# junkfilter # a junk e-mail filter system for procmail # Copyright 1997-98, Gregory Sutter # # $Id: junkfilter.two,v 2.3 1998/10/15 17:53:26 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 } # number@, @number.com or number@number.com address : spam. # almost. additions made to the exception list only as necessary. :0 * !^From:.*@((1776|2600|mcimail)\.com|brookes\.ac\.uk|bigred\.unl\.edu|.*\.disu\.edu\.ph|dcc.unicamp.br)\> * !^From:.*\<[0-7][0-7][0-7][0-7][0-7][0-7]?\.[0-7][0-7][0-7][0-7]?@compuserve\.com * ()\/^From:.*([^-_(.%+a-z0-9][0-9.]+@|@[0-9.]+\.$JFTLD\>) { JFMATCH="$JFSEC: Numbers at numbers: $MATCH" 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 } JFSEC # EOF junkfilter.two