From owner-freebsd-questions Thu Apr 11 17:24:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id A86F437B400 for ; Thu, 11 Apr 2002 17:24:43 -0700 (PDT) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 43BC228DBA; Thu, 11 Apr 2002 20:24:43 -0400 (EDT) Date: Thu, 11 Apr 2002 20:24:43 -0400 (EDT) From: Peter Leftwich X-X-Sender: To: Warren Block Cc: Eduardo Viruena Silva , FreeBSD Questions Subject: Re: spam [procmail recipe] In-Reply-To: Message-ID: <20020411201205.S76809-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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