On Tue, May 29, 2007 at 04:03:51PM -0700, Eric Dan wrote:
> I use "sa-learn --spam --no-sync" to make spamassassin learn what i
> consider spam, but i still keep getting the same spam.
> I collect my mail with getmail via pop3. In my getmailrc i have this
> 
> [destination]
> type = MDA_external
> path = /usr/bin/procmail
> 
> what do I need to put in my procmailrc to have the learned spam go into
> my SPAM mailbox, not my inbox?

Believe it or not, it's in the spamassassin faq.  :)  (Don't you hate that?
BTDTGTTS--been there, done that, got the t-shirt.)

This is assuming that your question is just about getting procmail to
work with SpamAssassin.  In that case, the rules are something like


:0fw: spamassassin.lock
| spamassassin

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

:0
* ^X-Spam-Status: Yes
spam

That's a high spam level, around 7.  (You could just use the second rule
too.)

Now, if that's your question, I've answered it and buy me a Diet
Mountain Dew.  However, the subject indicates that you're getting email
and it doesn't seem as if sa-learn is working.  One way to test this is
with spamc -R.  Pipe the message to spamc -R and see how it's rated.  

Others, as well as myself have found that sometimes the various
spamassassin data files get corrupted and you have to start all over
again--that is, remove your bayes_seen and bayes_toks and start from
scratch.  It's happened to me twice in 4-5 years. 

Another thing is these spam emails that seem designed to just throw off
spam filters--a series of random words, and so even though you feed it
to sa-learn, it never seems to get recognized as spam.  

(This email could turn into a whole article, but hopefully, I've given
you something to start with.  Also hopefully, your main question is how
to get procmail feed things to spamassassin. You should also be able to
just use spamc--that is, something like

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

Quick explanation

:0 fw                                                                           
This is a filter and procmail should wait for the program to finish
before
proceeding.

* < 60000
Only filter mails smaller than this size. Spam mails aren't this big
usually.

Now, if your question has nothing to do with procmail feeding to
spamassassin then most of this email just waited part of your life.  :)


-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Xander: The band, yeah. They're great. They march. 
Willow: Like an army. Except with music, instead of bullets, and 
usually no one dies. 


_______________________________________________
arch mailing list
[email protected]
http://archlinux.org/mailman/listinfo/arch

Reply via email to