MailWatch Spam Learn / Bayes DB

Glenn Steen glenn.steen at gmail.com
Mon May 12 08:47:05 IST 2008


2008/5/12 Mohammed Alli <malli at mcrirents.com>:
>
>  ________________________________
>
>  From: mailscanner-bounces at lists.mailscanner.info on behalf of Brett Carruthers
>  Sent: Sun 5/11/2008 8:25 PM
>  To: mailscanner at lists.mailscanner.info
>  Subject: MailWatch Spam Learn / Bayes DB
>
>
>
>
>
>  Hi,
>
>  I have a few week old install of MailScanner / MailWatch / Scalix on CentOS 5.1 and my bayes DB is going OK but is still giving me 0% chances on some spam mail.
>
>  So I want to train it a bit more so the bayes works even better.
>
>  What do I have to do to get MailWatch to be able to manually spam/ham learn on its 'Message Operations' report?
>
>  Currently, if I try and learn spam it gives me an error about the message not being in the quarantine eg.
>
>  Message m4BK4Wg4005306 not found in quarantine
>
>  Some settings from MailScanner.conf
>
>  --
>
>  Quarantine dir = /var/spool/MailScanner/quarantine
>
>  Quarantine Infections = yes
>
>  Quarantine Whole Messages As Queue Files = yes
>
>  Quarantine Whole Message = yes
>
>  Spam Actions = store-spam
>
>  High Scoring Spam Actions = delete (don't need to worry about these as its already learnt these are Spam!)
>
>  Non Spam Actions = deliver store header "X-Spam-Status: No"
>
>  If anyone could lean me in the right direction I would appreciate it very much!
>
>  Thanks,
>
>  Brett
>
>
>
>
>
>  Hi Brett,
>
>
>
>  Try the following to fix your message operation error:
>
>  9.23 Fix for the Reporting Function in Message Operations
>
>  Change the following in /var/www/mailscanner/do_message_ops.php file:
>
>  $id = $Regs[1];
>
>  to
>
>  $id = str_replace("_", ".",$Regs[1]);
>
>  Good Luck
>
>  Mohammed
>
That IS a good fix, provided you use Postfix, which Brett doesn't seem to do.
Much more likely that there simply is nothing in the quarantine to
learn from. There is a simple one-line fix to message_ops.php that
"enhance the SQL to actually check that the message is quarantined
(fix by Dhawal Doshy, go search the MailWatch list archives...)... If
one want to be able to do this at all, one need to include "store" in
the Non Spam Actions ...
Brett, if you look at the details page for the message, do you have
the "learn/release" block at the bottom? I'm pretty certain you don't.

Oh and BTW, this should've gone to the MailWatch list rather than the
MailScanner one... Slightly OT here:-).

Cheers
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list