You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Patrick Shoaf <ps...@midmon.com> on 2004/02/12 16:50:15 UTC

Using SpamAssassin with Procmail

I am very new to both SpamAssassin & Procmail.  I have inserted the 
following into my .procmailrc file.  Spamassassin is processing the message 
and flagging a very high percentage of spam as spam.  How do I now tell 
procmail/spamassassin to deliver the message to /dev/null (trash) rather 
than my inbox.

.procmailrc file contents

:0hbf
| /usr/local/f-prot/tools/scan-mail.pl

:0hbf
| /usr/bin/spamassassin

:0
* ^Subject:.*Viagra
* Viagra
* debt relief
/dev/null

Thanks for all the help...


Patrick J. Shoaf, Systems Engineer
<ma...@midmon.com>pshoaf@midmon.com

Midmon Internet Services, LLC
100 Third Street
Charleroi, PA 15022
http://www.midmon.com
Phone: 724-483-2400 ext. 105
  or    888-638-6963
Fax:   724-489-4386



Re: Using SpamAssassin with Procmail

Posted by Raquel Rice <ra...@thericehouse.net>.
On Thu, 12 Feb 2004 10:50:15 -0500
Patrick Shoaf <ps...@midmon.com> wrote:

> I am very new to both SpamAssassin & Procmail.  I have inserted
> the following into my .procmailrc file.  Spamassassin is
> processing the message and flagging a very high percentage of spam
> as spam.  How do I now tell procmail/spamassassin to deliver the
> message to /dev/null (trash) rather than my inbox.
>
<snip> 
> 
> Thanks for all the help...
> 
> 
> Patrick J. Shoaf

Patrick,

On our mail server I run spamassassin from procmail:

     DROPPRIVS=yes

     :0fw
     * < 256000
     | /usr/bin/spamc

Then on my desktop, I "sort" using procmail:

     # SPAM TRAP
     :0:
     * ^X-Spam-Level: \*\*\*\*\*
     ${SPAMFOLDER}

Prior to the above rules I have rules to catch spam which have 5-9,
10-14, 15-19, 20-24, and 30+ "*" (so I can more easily check the
scores.  With no false positives in the higher scored directories,
I'm ready to start dumping them to /dev/null on my desktop machine.

I see no reason the above rules couldn't be placed into one
procmail.rc for an individual machine ... if that's the way you're
setup.

-- 
Raquel
============================================================
Agape is disinterested love.  Agape does not begin by discriminating
between worthy and unworthy people, or any qualities people possess.
 It begins by loving others for their sakes.  It springs from the
need of the other person.
  --Martin Luther King, Jr.