Per-User spam learning

Kévin COUSIN linux at tuxalafenetre.net
Mon Mar 23 14:08:59 GMT 2009


Le lundi 23 mars 2009 14:19:14, Martin Hepworth a écrit :
> 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

Hi,

Ok, I set my bayes_path : bayes_path /etc/MailScanner/bayes/, with owner and 
group postfix. if I want to use a crontab, I need to set it in the postfix user? 
Or there is an sa-learn option to use another bayes DB?

-- 
Regards

----
COUSIN Kevin
Linux Administrator

Global Service Provider
75017 PARIS
FRANCE


More information about the MailScanner mailing list