On 2003.06.06 21:06, MooktaKiNG wrote:
I've installed the latest version of SpamAssassin.

I've collected up soe spam and have some ham. I've made a cron job
of teaching it using this command:

sa-learn --spam --dir .maildir/.Spam/cur/

I used this command, using spam and ham for each folders of my mail.
I use procmail and some other filter for the spams at the moment. I
have set it so that it recognises the domain/email adress and moves
it to Spam folder instead of the Trash.

But i would i know Spamassassin is working?
how would i make it move spam to Spam folder instead of Trash?
Where is the data held when i teach it?
How would i reset (so that it learns from fresh set of spam/ham)?

Look up procmail. It can filter mail based on rules you describe.

Here are my first two rules (after all the config stuff at the top of the .procmailrc file):

:0fw
| spamassassin -P

:0
* ^X-Spam-Status: Yes
$MAILDIR/.Spam/

That way procmail calls SA during sorting, and mail that is tagged as spam is moved elsewhere.

There is a very good how-to for setting up mail with postfix & procmail (without SA, but that is trivial) in the gentoo.org docs section. I think it is under the "desktop configuration guide" (yeah i dunno why it's in that one).

-Chris I

April 1

This is the day upon which we are reminged of what we are on the other three
hundred and sixty-four.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to