# junkfilter # a junk email filter system for procmail # Copyright 1997-2002 Gregory Sutter # # $Id: junkfilter.opt,v 2.8 2002/04/21 03:20:06 gsutter Exp $ # # Please read the file "README" and the page # http://junkfilter.zer0.org/ before using junkfilter. # Opt section, for options specified in junkfilter.config JFSEC=Opt # Is the recipient's email address in the To: or Cc: field? :0 * $ $JF_OPT_NOTRECIP^0 { :0 * $ ! ^(To|Cc):.*$JFMAILADDRESS { JFMATCH="$JFSEC: Recipient address not in To: or Cc: header" INCLUDERC=$JFDIR/junkfilter.match } } # To: or Cc: header with more than 60 recipients. :0 * $ $JF_OPT_60RECIP^0 { :0 * ^TO_.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.* { JFMATCH="$JFSEC: Sent to more than 60 people" INCLUDERC=$JFDIR/junkfilter.match } } # X-UIDL header :0 * $ $JF_OPT_XUIDL^0 { :0 * ^X-UIDL: { JFMATCH="$JFSEC: X-UIDL header present" INCLUDERC=$JFDIR/junkfilter.match } } # msn.com is a spammer haven and I'm sick of it. :0 * $ $JF_OPT_MSN^0 { :0 * ^Received:.*\.msn\.com\> { JFMATCH="$JFSEC: Received from msn.com" INCLUDERC=$JFDIR/junkfilter.match } } # this is only used if you've elected to send back junk which passes # the filter. it is the only recipe in junkfilter which touches the mail. :0 * $ $JF_OPT_SENDBACK^0 { :0 f | $JFFORMAIL -i "X-jf: $JFVERSION, 1:$JF_ONE,2:$JF_TWO,3:$JF_THREE,4:$JF_FOUR,ad:$JF_ADDRESSES,bo:$JF_BODYCHK,di:$JF_DIALUPS,do:$JF_DOMAINS,he:$JF_HEADERS,ip:$JF_IP,us:$JF_USER" } JFSEC # EOF junkfilter.opt