Hello All,

I'm using the following script for reporting Razor and teaching BAYESIAN with 
ham and spam messages.

I have the following questions:
-------------------------------
1) If I have the following in local.cf:
use_bayes        1
bayes_auto_learn 1

Starting from what score message automatically learned by Bayesian?

2) I do quarantine to spam mails and manually review all spam, then I put all 
False Positives (ham) to ham folder and all spam to spam folder and run the 
following script to populate Bayesian and report to Razor.

Should I remove headers added like those - 
X-Quarantine-ID: X-Spam-Flag: X-Spam-Score: X-Spam-Level: X-Spam-Status: 

Or any others, so learning (sa-learn) would be more accurate?
Any other recommendations?




The script:
-----------
#!/bin/bash

########Revoking Ham##############
cd /var/spool/imap/user/spamcop/ham/
for i in *.;
do
echo Revoking $i
cat $i | /usr/bin/razor-revoke -home=/var/spool/amavis/.razor/
done
echo Revoke Completed!

########Reporting Spam##############
cd /var/spool/imap/user/spamcop/spam/
for i in *.;
do
echo Reporting $i
cat $i | /usr/bin/razor-report -home=/var/spool/amavis/.razor/
done
echo Reporting Completed!

#########Bayesian DB population with known ham and spam#########
#####Ham#########
chmod 755 /var/spool/imap/user/spamcop/ham
cd /var/spool/imap/user/spamcop/ham/
chmod 644 *.
su vscan -c "(sa-learn --showdots --ham *)"
echo ham learning completed!
#####Spam########
chmod 755 /var/spool/imap/user/spamcop/spam
cd /var/spool/imap/user/spamcop/spam/
chmod 644 *.
su vscan -c "(sa-learn --showdots --spam *)"
echo spam learning completed!



Best Regards,
Leon Kolchinsky

Reply via email to