Hi all.
I want to move spamassassin Bayes scores from one mail (server1) server to another (server2) to prevent lots of spam. Server2 works under ZCS. Server1 doesn't.
Firstly I tried to put Bayes files (bayes_journal, bayes_seen, bayes_toks) to /opt/zimbra/data/amavisd/.spamassassin/.
But when I tried to run zmtrainsa, I' ve got the following error:
Code:
bayes: cannot open bayes databases /opt/zimbra/data/amavisd/.spamassassin/bayes_* R/O: tie failed:
bayes: cannot open bayes databases /opt/zimbra/data/amavisd/.spamassassin/bayes_* R/W: tie failed: No such file or directory
bayes: cannot open bayes databases /opt/zimbra/data/amavisd/.spamassassin/bayes_* R/W: tie failed: No such file or directory
As far as I understand, it means that berkeley DB version are different.
Installed package information:
Server1
spamassassin 3.0.x
db42-4.2.52_4
Server2
spamassisin 3.0.x
db4-4.3.29-9
(Zimbra 5.0.11_GA_2695.RHEL5)
Secondly, I tried to update bayes database using
db_upgrade Code:
/opt/zimbra/sleepycat/bin/db_upgrade bayes_seen
db_upgrade: bayes_seen: unexpected file type or format
db_upgrade: DB->open: bayes_seen: Invalid argument
The same command with original files executes with no output (Seems to be Ok).
So this attempt failed to (for the current moment).
The question is:
How to move Bayes scores from one mail (server1) server to another (server2)?
If the problem is with db versiоn, what should I do to upgrade it?
Any suggestions are welcome. Thanks for your attention.