Per-User spam learning
Martin Hepworth
maxsec at gmail.com
Mon Mar 23 13:19:14 GMT 2009
2009/3/23 Kévin COUSIN <linux at tuxalafenetre.net>:
> Hello List,
>
> I have some troubles to train SpamAssassin :
>
> I created a crontab on my users :
> sa-learn --spam --dir --progress ~/Maildir/.Junk/{cur,new} >/dev/null
> 2>/dev/null.
>
> This command run succesfully and a .spamassassin directory is created in my
> user's homes, but it don't seem any effect on SpamAssassin tagging and scoring.
>
> How can I tell to spamassassin where the bayes db is? Must I add a
> configuration in my MailScanner.conf? Where can I check if SpamAssassin load my
> rules?
>
> Regards
>
> ----
> COUSIN Kevin
> Linux Administrator
>
> Global Service Provider
> 75017 PARIS
> FRANCE
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
Hi
you need to set the bayes_dir in /etc/mail/spamassassin/mailscanner.cf
make sure the bayes_dir is write-able and read-able by the user
mailscanner runs as.
This is a site-wide setting not a per user.
bayes will only take effect once you have 'learnt' 200 spam and 200
non-spam(ham) into the bayes database.
--
Martin Hepworth
Oxford, UK
More information about the MailScanner
mailing list