# junkfilter # a junk email filter system for procmail # Copyright 1997-2002 Gregory Sutter # # $Id: procmailrc.sample,v 2.6 2002/04/21 03:22:16 gsutter Exp $ # # Please read the file "README" and the page # http://junkfilter.zer0.org/ before using junkfilter. # This is a simple sample .procmailrc that calls junkfilter. # It will work as-is, but you may want to change $PMDIR and $JFDIR. SHELL=/bin/sh PATH="$HOME/bin:/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin:/usr/sbin" MAILDIR=$HOME/mail PMDIR=$HOME/.procmail JFDIR=$HOME/.procmail/junkfilter DEFAULT="inbox" LOGFILE=$PMDIR/log LOGABSTRACT=all VERBOSE=no # Procmail mailing list :0 : * ^Resent-From:.*procmail@Informatik.RWTH-Aachen.DE | formail -i "X-Fkey: procmail" >> procmail # Call junkfilter INCLUDERC=$JFDIR/junkfilter # Take action if junkfilter caught a junkmail. :0 * JFEXP ?? . { # This is for the whitelist. The message is tagged with an # X-Spammer: header, but is not filtered away. :0 f * JFSTATUS ?? 1 | formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP" # Non-whitelist messages are tagged and sent to a junk mailbox. :0 E : | formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP" \ >> junkmail } # Catches everything else. :0 : inbox # EOF procmailrc.sample