procmail
[Top] [All Lists]

Re: My SPAM-filtering .procmailrc

1997-10-04 08:16:22
Gordon Matzigkeit writes on 3 October 1997 at 08:32:56
discovered an effective rule for separating SPAM from the rest of my
e-mail.  Just substitute your username for `gord' in the line below:

# Anything which is not addressed to me is probably SPAM.
:0:
* !^TO.*gord
mail.spam.spool

My "spamcheck" recipes give mail explicitly addressed to me a slight
"not spam" weight.
-----
# bias mail explicitly to me slightly against being spam
SPAMCHECK_TOME_REGEXP=${SPAMCHECK_TOME_REGEXP:-$LOGNAME}
:0
* $^TO\/${SPAMCHECK_TOME_REGEXP}
{
  spamcheck_contribution=${SPAMCHECK_TOME_SCORE:-"-$SPAMCHECK_20"}
  spamcheck_reason="TOME - explicit recipient: $MATCH"
  spamcheck_rcpath=$_
  INCLUDERC=$SPAMCHECK_RCDIR/reason.rc
}
# conversely, mail that isn't to me might be SPAM; this is going to
# depend on how much legitimate BCC: mail you get
:0
* !^FROM_DAEMON
* $!^TO${SPAMCHECK_TOME_REGEXP}
{
  spamcheck_contribution=${SPAMCHECK_NOTTOME_SCORE:-$SPAMCHECK_10}
  spamcheck_reason="NOTTOME - no recipient matched $SPAMCHECK_TOME_REGEXP"
  spamcheck_rcpath=$_
  INCLUDERC=$SPAMCHECK_RCDIR/reason.rc
}
-----

   Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>        
http://www.bristol.com/~DanS
Bristol Technology B.V.                   +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands               {info,jobs}(_at_)bristol(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>