I'm having some troubles getting SpamAssassin's bayesian spam filtering.  I had 
SpamAssassin running just dandy on my previous server (Red Hat 8.0) and the 
bayesian filtering worked just dandy.  I just moved all the users' home 
directories over to a new server (FreeBSD 5.1) and started having trouble.  
Everything else in SpamAssassin seems to work fine, but whenever it tries to do 
anything with the users' bayes databases from the old server, it produces this 
error:

Cannot open bayes databases /home/will/.spamassassin/bayes_* R/O: tie failed: 
Inappropriate file type or format
Cannot open bayes databases /home/will/.spamassassin/bayes_* R/W: tie failed: 
Inappropriate file type or format
Cannot open bayes databases /home/will/.spamassassin/bayes_* R/W: tie failed: 
Inappropriate file type or format

Now, if I remove the pre-existing bayes files, it of course goes ahead and 
creates new ones.  Something of interest, though, is that the new files are of 
a different database type.  "file" says this about the old bayes_toks file:

Berkeley DB (Hash, version 7, native byte-order)

.. and this about the fresh ones it creates:

Berkeley DB 1.85 (Hash, version 2, native byte-order)

This leads me to believe that, for whatever reason, SpamAssassin (and probably 
all of Perl) is having trouble dealing with db2 or newer type databases.  I 
installed db3 and db4.1 from the FreeBSD ports but to no avail, and because of 
my limited knowledge of Perl I'm not very clear on how it interacts with 
Berkeley databases.  I'm not sure whether to direct this problem here or at the 
Perl or FreeBSD list, but I'm trying here first because my trouble manifests 
itself in SpamAssassin.  Any help you can provide would be greatly appreciated!

W

Reply via email to