Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2002 20:24:43 -0400 (EDT)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        Warren Block <wblock@wonkity.com>
Cc:        Eduardo Viruena Silva <mrspock@esfm.ipn.mx>, FreeBSD Questions <FreeBSD-Questions@FreeBSD.Org>
Subject:   Re: spam [procmail recipe]
Message-ID:  <20020411201205.S76809-100000@earl-grey.cloud9.net>
In-Reply-To: <Pine.BSF.4.21.0204111750090.1831-100000@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Apr 2002, Warren Block wrote:
> On Thu, 11 Apr 2002, Eduardo Viruena Silva wrote:
> > I have notice that all the spam I receive is always sent to someone else but me. Is there a way of filter all the mail that is not destined to me?
> Install procmail and add this recipe to your .procmailrc file.  It will redirect mail not addressed to you to a spam folder.  (This does not catch a lot of spam for me any more; most spams that make it past my sendmail access.db are addressed to me.)  I didn't create this, just snarfed it off Usenet quite a while back:

For many many days I have been planning to do this, but in manually
selecting spams in PINE emailer (pressing ":" a LOT) I had the same lament
that many spams *are* addressed "To:" me or one of my many email addresses.

The problem with this procmail recipe is that some of your friends may use
a BCC from time to time and these messages will get delivered to your bulk
mail or "Spam-folder" by mistake.  This is not one-size fits all!

> # Mail not addressed to me.
> :0
> * $!^((Resent-|Apparently-)?(To|Cc|Bcc)):.*${LOGNAME}
> $MAILDIR/Spam-folder

Hey Warren, and list, do you know the usage for the line above beginning
with "* $!..." so that I can list multiple matches, using some kind of "OR"
statement (maybe "email1@otherdomain.com|email2@domain.com|email_etc@abc.com")?

By the way, instead of the "$MAILDIR/Spam-folder" line you could put
something like /dev/null or "|formail -b postmaster@...." if you want to
get real technically-combative and cocksure (word choice?)

Check out "adcomplain" (it's in the ports).

> -Warren Block * Rapid City, South Dakota USA

--
Peter Leftwich
President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020411201205.S76809-100000>