Raquel wrote: > I'm setting up a new server. However, email sent to the server > keeps getting "autolearn=failed". I don't seem to be able to figure > out is causing that. > >
Generally speaking, that means SpamAssassin can't write to the bayes database. The most common cause of this is a spamd setup where everything is running as root. When this happens, spamd automatically setuid's itself to 'nobody' to avoid the security risk of scanning mail while running as root. 'nobody' does not, and should not, have access to write its home directory, so any bayes (or AWL) actions fail. A quick and simple way to fix this is create a non-root user and pass it to spamc or spamd using the -u parameter. SA will create the bayes (and AWL if you use it) database in that user's home directory, and you should su to this user when running sa-learn or other bayes utilities.