make sure you have this in local.cf: bayes_path /var/lib/amavis/.spamassassin/bayes/bayes
and that path /var/lib/amavis/.spamassassin/bayes/ exists h2h On 09/27/2013 09:54 AM, Peter Smith wrote:
Hi all, We've just migrated from an old server running SA 3.2.5 and amavisd-new-2.6.1 to a new machine with SA 3.3.2 and amavisd-new-2.7.1 (both Debian). I copied over the bayes-related files, but Amavis isn't loading them: bayes: no dbs present, cannot tie DB R/O: = /var/lib/amavis/.spamassassin/bayes_toks I've seen this problem in the past, and have always been able to solve it ... this time I'm stumped. I have bayes_toks in the following places: /var/lib/amavis/.spamassassin/bayes_toks /var/lib/amavis/= /var/lib/amavis/.spamassassin/bayes_toks /var/lib/amavis/tmp/= /var/lib/amavis/.spamassassin/bayes_toks This matches our old setup. bayes_seen is also present in those directories. Files and directories are owned by the amavis user (I've checked, amavis-new is definitely running as this user), and permissions are 744. I've also used 'sa-learn --dump magic -db-path=...' to confirm that the files aren't corrupt. In the spamasssin config files I have: bayes_path = /var/lib/amavis/.spamassassin/bayes All seems ok, yes? I Thanks, Peter Smith