Thank you. This was very helpful to eliminate a possible error. I changed the permissions of my files:
Code:
# ls -l ~vscan/.spamassassin/bayes*
-rw-rw-r-- 1 vscan vscan 62832 Jun 22 14:19 /var/spool/amavis/.spamassassin/bayes_journal
-rwxrwxr-x 1 vscan vscan 335368192 Jun 22 14:14 /var/spool/amavis/.spamassassin/bayes_seen
-rwxrwx--- 1 vscan vscan 5423104 Jun 22 14:14 /var/spool/amavis/.spamassassin/bayes_toks
-rwxrwxr-x 1 vscan vscan 3223552 Jun 28 2007 /var/spool/amavis/.spamassassin/bayes_toks.expire18391
-rwxrwxr-x 1 vscan vscan 2330624 Apr 15 2008 /var/spool/amavis/.spamassassin/bayes_toks.expire24608
-rwxr--r-- 1 vscan vscan 2985984 Mar 11 17:46 /var/spool/amavis/.spamassassin/bayes_toks.expire5867
Afterwards I restarted Amavis with "/etc/init.d/amavisd restart" but the error message on "sa-learn --sync" is still the same
edit: Maybe the problem is that I have no bayes_journal. My standard salearn call is "sa-learn -p ~vscan/.spamassassin/user_prefs --dbpath ~vscan/.spamassassin --showdots --spam --dir /spamdirectory" which I ought to imply is syncing by default (as the --no-sync switch is not set). I think as follows there is no journal created. Maybe I should have mentioned this earlier.
update: I started sa-learn with the no-sync option. The journal was created but sa-learn --sync still refuses to offer proper output.