NethServer Version: 7.4
I’m currently trying to get the bayesian filter included in nethserver’s mail server to work. Here are some notes and questions :
First of all, it should be written somewhere in the doc that spam assassin’s Bayes database requires to learn at least 200 spams AND 200 hams before beginning to filter.
To know the status of the bayes database, log yourself as amavis
(su -- amavis)then do
spamassassin -D --lintand look for bayes related entries :
Dec 9 14:07:37.639  dbg: bayes: found bayes db version 3 Dec 9 14:07:37.640  dbg: bayes: DB journal sync: last sync: 0 Dec 9 14:07:37.640  dbg: bayes: not available for scanning, only 4 ham(s) in bayes DB < 200 Dec 9 14:07:37.640  dbg: bayes: untie-ing
While training for spam is not too difficult
(just copy 200 of your own spams into the spam folder through the IMAP server)(just mark 200 spams using the “mark as spam” function of your mail client, copying a mail into the junk folder is not possible) making the spam filter learn 200 hams looks more difficult, since (following the documentation) the only way to mark a mail as ham is to get it out of the junk folder. I seriously doubt that any end user will accept that 200 hams gets into its spam box without yelling at the sysadmin.
One could try to copy 200 hams (from inbox) to the spam folder and then get it back to the inbox but that’s counter intuitive, and I’m not sure it would work anyway (mail marked learned as spam then as ham)
My proposition : configuring the INBOX folder as ham, plain and simple. That’s how Fastmail does. They even provide an way for the user to decide which folder should be learned as spam or not spam.
Is it possible ?
Thanks for helping and sharing your thought.