That seemed to fix it. I guess the default is to create a prefs path.
Thanks!

/etc/sysconfig/spamasassin
# Options to spamd
SPAMDOPTIONS="-d -m5 -c -H -u spam"  <--Removed -c 


Wilson
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, May 22, 2006 8:42 AM
To: users@spamassassin.apache.org
Subject: Re: Bayes not learning (autolearn=failed)

On Mon, May 22, 2006 at 08:17:57AM -1000, Chan, Wilson wrote:
> Still getting autolearn=failed but its no longer complaining about
> running spamd as root but its trying to create & read files from root
> still even though I have the local.cf defined for the location of the
> bayes files. Any ideas? Thanks!
> 
> May 22 08:13:57 localhost spamd[25519]: Creating default_prefs
> [/root/.spamassassin/user_prefs]
> May 22 08:13:57 localhost spamd[25519]: Cannot write to
> /root/.spamassassin/user_prefs: Permission denied
> May 22 08:13:57 localhost spamd[25519]: Couldn't create readable
> default_prefs for [/root/.spamassassin/user
> _prefs]
> 
> 
> I took everyone's advice and made theses changes below:
> /etc/sysconfig/spamassin
>  *added "-u spam" to get rid of the previous error
> 
> /etc/mail/spamassassin/local.cf
>  *added "bayes_path /home/spam/.spamassassin/bayes"
>  *added "bayes_file_mode 0777"

It's possible that spamd is running with the -c (--create-prefs )
option. Do "ps ax | grep spamd" and see if either -c or --create-prefs
is
one of the parameters. If it is, you need to edit, my guess,
/etc/default/spamassassin and get rid of that option.

Reply via email to