Spamassassin problems after migrating server

Hello all,

I had virtualmin set up on a vps running Ubuntu and was running into memory problems so reinstalled as CentOS. Before this I took a backup and hoped to restore it. It has worked very well apart from the spam settings.

When I try to report an email as spam I get this error message.

Reporting this message to Razor and other SpamAssassin spam-blocking databases …

bayes: cannot open bayes databases /home//homes/pete/.spamassassin/bayes_* R/O: tie failed:
bayes: cannot open bayes databases /home/
/homes/pete/.spamassassin/bayes_* R/W: tie failed: No such file or directory
bayes: cannot open bayes databases /home/*****/homes/pete/.spamassassin/bayes_* R/W: tie failed: No such file or directory
ERROR: the Bayes learn function returned an error, please re-run with -D for more information
Learned tokens from 0 message(s) (1 message(s) examined)

… failed! See the error message above for the reason why.

I’ve had a poke around google but cannot find a way to fix it that is specific to virtualmin.

Any help greatly appreciated.

Many thanks,
Pete