Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2002 10:55:59 -0800
From:      Steve Wingate <steve@velosystems.net>
To:        "Drew Tomlinson" <drew@mykitchentable.net>
Cc:        questions@freebsd.org
Subject:   Re: OT: SpamBouncer
Message-ID:  <20020110105559.635ab0e3.steve@velosystems.net>
In-Reply-To: <000d01c19a03$ac695c50$c42a6ba5@lc.ca.gov>
References:  <000d01c19a03$ac695c50$c42a6ba5@lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
> Is there a file where I can add email addresses to automatically filter
> them as spam?  Basically, the opposite of the .nobounce file.  For
> example, I get mail from macys.com that passes the filter because it
> sees it as an admin message and gets sent to my inbox.  I would like to
> put this email address in a file to have it filtered as spam.
> 
I use procmail to do this. In my .procmailrc file I have entries like this:

# where to put spam                                                                
SPAM = $MAILDIR/spam

# people we *never* want to get mail from                                        
SPAMMERS = $HOME/.procmail/spammers   

# tell procmail what to do with mail from people who are known to be             
# spammers                                                             
:0:                                                                                
* ? ($FORMAIL -x From: -x Sender: -x Reply-To: -x Return-Path: -x To: | $FGREP -isf $SPAMMERS)                                                                         
$SPAM                                                                                                                                       

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?20020110105559.635ab0e3.steve>