On Tue, Feb 17, 2004 at 12:00:19PM +0000, Conor Wynne wrote:
> [spammy at weeboy spammy]$ sa-learn --spam --mbox /var/spool/mail/spammy
> Learned from 559 message(s) (561 message(s) examined).
>> But should I have not run that as root or does it make a difference?
>From my experiance this will put the data it collects in
$HOME/.spamassassin/{some-db-files}
Look into the --dbpath option of sa-learn. Otherwise only 'spammy'
will use bayes. Maybe put it in your homedir or some global location???
Thinking for a second a good method is for /var/spool/mail/spammy
to be 644. Then add a cron job for everyone to do a sa-learn --spam
on it regularly. This will allow personal ham/spam while using the spam
trap. Truncate that file regularly. Still holds on a one-user system.
> Am I going about this the right way and how do i know spamassassin is
> working correctly?
Try that header line I gave. Make sure you display the X-Spam-Status header.
If that is there then spamassassin is being run (Technically the
X-Spam-Checker-Version is the only header gaurenteed to exist).
I'd suggest the subject rewrite with report safe 0 until you know its
working.
Please note I set up spamassassin a few days ago because I was a bit bored.
Personally I use procmail to seperate out my spam into a seperate
mailbox. I then have some mutt macros to pass messages to sa-learn if the
bayes is wrong.
Brian
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!