[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Spamassassin and procmail

Antony Gelberg wrote:
Hi all,

I currently use fetchmail and procmail to get and sort my mail.  I'd
like to use spamassassin as well, however when I add
:0fw: spamassassin.lock
| /usr/bin/spamassassin
to my .procmailrc, it works ok, but then the mail gets delivered to
/var/mail/<username>, rather than following the rest of my procmail

Any ideas on how to alter this behaviour?


# Or, use spamd and spamd, which is a lot nicer to your machine
# under heavy load:
#|/usr/bin/spamc -s 500000 -d <host> -p 783
| /usr/bin/spamassassin -P

* ^X-Spam-Status: Yes

...might work better. The pipe to spamassassin just tags the mail, the second rule is what actually delivers the message. Depending on the version of spamassassin, the -P flag is not needed any more (my 2.55 install's man page says that pipe to stdout is default behavior).

You could also sort based on the level of "spamminess":

#Sort into spam folders based on "spamminess". Folder names
# have leading number so that Netscape sorts them correctly.
* ^X-Spam-Status: Yes
   * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

   * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*

   * ^X-Spam-Level: \*\*\*\*\*\*


#Drop potential FN here:
* ^X-Spam-Level: \*\*\*\*



Rich Puhek
ETN Systems Inc.
2125 1st Ave East
Hibbing MN 55746

tel:   218.262.1130
email: rpuhek@etnsystems.com

Reply to: