1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
# junkfilter
# a junk email filter system for procmail
# Copyright 1997-2002 Gregory Sutter <gsutter@zer0.org>
#
# $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
|