procmail
[Top] [All Lists]

Re: Favorite Recipes

1998-04-30 12:38:59
On Thu, 30 Apr 1998, Timothy J Luoma wrote (excerpts):

There are a few mail programs out there which will send legit messages with  
an invalid Message-ID.

Up to you, but I'd filter that one to a mailbox rather than /dev/null.

    I get a lot of spam in which the Message-Id is "completed" in a
distinctive way by one of the mail servers at my ISP.  If it has this
"completion" and is not addressed to me, it is almost certainly spam.

# Locally generated Message-Id:, not to me
:0
* $ ! ^TO$MY_ADDRX
* ^Message-ID: *<(_dot_)*(_at_)pony-[1-9]+\(_dot_)mail\(_dot_)digex\(_dot_)net>
{ WHICHRC=17
  INCLUDERC=$PMDIR/bitbucket.rc }

$MY_ADDRX is a regexp catching legal permutations of my email address.
bitbucket.rc makes a special log entry and then delivers to /dev/null.
There is the remote possibility that somebody with a braindead mailer
might Bcc: me and trigger that recipe, but that is a chance I am
willing to take.  I would probably notice such messages in the log, and
it hasn't happened yet.

Paul                             <pobart(_at_)access(_dot_)digex(_dot_)net>
..........................................................
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP public key
Home Page:  http://www.access.digex.net/~pobart

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