1# junkfilter 2# a junk email filter system for procmail 3# Copyright 1997-2002 Gregory Sutter <gsutter@zer0.org> 4# 5# $Id: junkfilter.opt,v 2.8 2002/04/21 03:20:06 gsutter Exp $ 6# 7# Please read the file "README" and the page 8# http://junkfilter.zer0.org/ before using junkfilter. 9 10# Opt section, for options specified in junkfilter.config 11 12JFSEC=Opt 13 14# Is the recipient's email address in the To: or Cc: field? 15:0 16* $ $JF_OPT_NOTRECIP^0 17{ 18 :0 19 * $ ! ^(To|Cc):.*$JFMAILADDRESS 20 { JFMATCH="$JFSEC: Recipient address not in To: or Cc: header" INCLUDERC=$JFDIR/junkfilter.match } 21} 22 23# To: or Cc: header with more than 60 recipients. 24:0 25* $ $JF_OPT_60RECIP^0 26{ 27 :0 28 * ^TO_.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.* 29 { JFMATCH="$JFSEC: Sent to more than 60 people" INCLUDERC=$JFDIR/junkfilter.match } 30} 31 32# X-UIDL header 33:0 34* $ $JF_OPT_XUIDL^0 35{ 36 :0 37 * ^X-UIDL: 38 { JFMATCH="$JFSEC: X-UIDL header present" INCLUDERC=$JFDIR/junkfilter.match } 39} 40 41# msn.com is a spammer haven and I'm sick of it. 42:0 43* $ $JF_OPT_MSN^0 44{ 45 :0 46 * ^Received:.*\.msn\.com\> 47 { JFMATCH="$JFSEC: Received from msn.com" INCLUDERC=$JFDIR/junkfilter.match } 48} 49 50# this is only used if you've elected to send back junk which passes 51# the filter. it is the only recipe in junkfilter which touches the mail. 52:0 53* $ $JF_OPT_SENDBACK^0 54{ 55 :0 f 56 | $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" 57} 58 59JFSEC 60 61# EOF junkfilter.opt 62