Dear Allori Lorenzo,

Dear Opencomputing experts,

how can i take the updated and learned bayesians database rules from a server to another?

can you tell me which are the files and how to manage doing it.. (I mean: is it a simple copying of the files or you need to do somethng else?)

Even though there is an export/import option for the sa-learn command, it is much more easier to just copy the bayes files to the new server using the following steps:


1)Stop OpenProtect "openprotect stop"

2)Install the same SpamAssassin and DB_File version as on the old machine.

3)Rebuild bayes on the old server "sa-learn -p /etc/MailScanner/spam.assassin.prefs.conf --rebuild"

4)Copy the bayes db(all files under ~/.spamassassin or whatever directory you have used as the SpamAssassin home) to "/var/spool/MailScanner/sa" on the new machine , and set the path to the bayes files in /etc/MailScanner/spam.assassin.prefs.conf like:

"bayes_path        /var/spool/MailScanner/sa/bayes"

Here, "/var/spool/MailScanner/sa/bayes" is the path for Bayesian probabilities databases. Several databases will be created, with this as the base, with "_toks", "_seen" etc. appended to this filename; so the default setting results in files called "~/.spamassassin/bayes_seen", "~/.spamassassin/bayes_toks" etc.

5)Start OpenProtect "openprotect start" and send yourself a sample spam mail and look for the bayes score in the "X-MailScanner-OpenProtect-SpamScore" header.

Hope that works for you too.

cheers,
Karthikeyan, S.
--
S.Karthikeyan | Ph: +91 (0) 44 52166646 Fax: +91 (0) 44 52079957
Opencomputing Technologies | http://opencompt.com
Server Side E-Mail Protection.


------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Opencomputing-openprotect mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opencomputing-openprotect

Reply via email to