[EMAIL PROTECTED] wrote:
>
>
> While referring the previous discussions regarding permissions on
> Bayes DB files, I would like to know what should be the permissions
> because the log files indicate
>
> autolearn=failed/no

Well "no" merely indicates that the message did not score high or low
enough to qualify for learning and thus learning was not attempted.

"Failed" means that learning was attempted but could not complete. If it
comes up occasionally, that's normal because SA will sometimes fail due
to lock contention. Only one process can be writing learning data to the
database at a time, and if two spamd's try learning at the same time,
one will fail rather than backlog the mail queue waiting.

However, if it's always coming back no or failed, that likely points to
a permission problem.

9 times out of 10 this happens when spamd is running as root, and spamc
is called site-wide as root. Spamd will never scan mail as root, so it
falls back to "nobody" as a safety measure of last resort. "nobody"
should not be able to write it's homedir, so when this happens learning
will fail. The solution is to use -u to cause spamd to scan as another
user with a homedir (most create a "spamd" user), not root.

1 time out of 10 this happens when someone specifies a bayes_path
without bayes_file_mode 0777.



So:
1) do you have a -u parameter to spamd or spamc?
2) if not, how do you call spamc?
3) do you have a bayes_path and/or bayes_file_mode statement in your
config files (ie: local.cf)?

Reply via email to