Looks like it’s a temporary glitch
The root of the problem is the version of Berkeley DB that’s been used to store the bayes files. On Sarge it’s 4.3. The problem is that the DreamHost mail servers haven’t been upgraded yet so they’re still using Perl 5.6.1 and DB 3.x.
This would explain why it was previously able to filter my mail but failed when training, because the training was taking place on a Sarge machine. Once I upgraded the files to the 4.3 format (db4.3_upgrade) the filtering failed. All my newly created bayes files are in 4.3 format so they won’t work at filtering. I had a quick stab at trying to downgrade them without any success. Since DH is supposed to upgrade the mail servers any time now it’s hardly work trying to get it to work in the mean time.
So this message:
warn: bayes: cannot open bayes databases /home/.../.spamassassin/bayes_* R/O: tie failed:
means your bayes file have the wrong DB version. Check this page for more details:
http://wiki.apache.org/spamassassin/DbDumpAndLoad
Another annoying thing that stumped me for ages is that procmailrc doesn’t appear to let you set the value of PERL5LIB. I thought that would have fixed my problem with the DB issue but also with a DNS version problem. I also see this in my logs:
warn: dns: Net::DNS version is 0.19, but need 0.34 at /home/.../usr/share/perl/5.8.4/Mail/SpamAssassin/Dns.pm line 589.
This is because DH is using some ancient version of Net::DNS. It’s not a fatal error but a lot of useful tests need it. So without it and bayesian testing I guess I’ll be seeing a lot more spam in the couple of weeks until it all gets resolved.

October 9th, 2005 at 6:00 pm
[14853] warn: dns:
Net::DNS version is 0.19, but need 0.34 at
/home/username/sausr/share/perl/5.8.4/Mail/SpamAssassin/Dns.pm line 589.
Just got the same error while trying to bounce messages using procmail. Any word from DreamHost about an upgrade?
October 10th, 2005 at 5:42 pm
No word from Dreamhost about upgrading Net::DNS. I’ve found SA to be good enough with just Bayes, but it does take a fair amount of training. I’ve submitted a request to DH about upgrading. Hopefully it’ll appear on the suggestions page in the next few days.
November 2nd, 2005 at 6:14 am
Darn, I’m having the same DB error problem.
I have been upgrading to SA 3.1.0 after my old version (3.0.3) stopped filtering with Bayes.
I’m glad to know that’s it’s not me and my installation. I’m mad at Dreamhost that they are not getting this fixed. WTF ?