Merging 2 Bayes Databases

Daniel Maher daniel.maher at
Tue Jun 27 13:56:19 IST 2006


Merging Bayes databases is not considered good form, and is difficult (or impossible) for a very good reason, which is stated here:

In summary, you'll end up duplicating large amounts of tokens, thus throwing the integrity of the database into question.

 °v°  Daniel Maher
/(_)\ Administrateur Système Unix
 ^ ^  Unix System Administrator
Sentio aliquos togatos contra me conspirare.

-----Original Message-----
From: mailscanner-bounces at [mailto:mailscanner-bounces at] On Behalf Of Paul Houselander
Sent: June 27, 2006 7:50 AM
To: MailScanner Mailing List
Subject: Merging 2 Bayes Databases


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

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?



MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 

More information about the MailScanner mailing list