Merging 2 Bayes Databases

Dhawal Doshy dhawal at netmagicsolutions.com
Tue Jun 27 12:57:45 IST 2006


Paul Houselander wrote:
> Hi
> 
> Ive got 2 front end Mailscanner machines and was looking at getting them to
> share a bayes database.
> 
> Ive set up a mysql bayes and tested with both machines and it works fine.
> 
> What I want to do is dump both the existing Bayes DB's into it, is it as
> simple as doing
> 
> sa-learn -p /etc/MailScanner/spam.assassin.prefs.conf --backup > host1.txt
> sa-learn -p /etc/MailScanner/spam.assassin.prefs.conf --backup > host2.txt
> 
> Add the entries to spam.assassin.prefs.conf to use the mysql bayes and then
> run
> 
> sa-learn -p /etc/MailScanner/spam.assassin.prefs.conf --restore host1.txt
> sa-learn -p /etc/MailScanner/spam.assassin.prefs.conf --restore host2.txt
> 
> I dont know if merging 2 bayes databases from 2 different machines would
> cause any problems?

This is not recommended and also not possible.. use the one which you 
think is better trained. A '--restore' indicates 'destroy the old one 
and recreate a new one', so the 2nd restore effectively wipes out the 
old one.. (though i could be wrong)

- dhawal

> Cheers
> 
> Paul


More information about the MailScanner mailing list