Computer Tips - Why does Spam Assassin say autolearn=failed on all my mail?

Date: 2008mar31 Q. Why does Spam Assassin say autolearn=failed on all my mail? A. It doesn't have permission to access its database. Find which user Spam Assassin is running as and do this as root:
cd ~spamchk chmod 777 . mkdir .spamassassin chmod 777 .spamassassin chown spamchk.spamchk .spamassassin
Assuming you are running:
spamc -u spamchk
Perhaps in /usr/local/bin/spamchk Alternately you can turn off auto learning in the Spam Assassin config file but its good to have it learn. More Info: http://www.davekb.com/search.php?target=spamassassin http://wiki.apache.org/spamassassin/AutolearningNotWorking