Forum Moderators: bakedjake

Message Too Old, No Replies

spamassassin permissions problem

bayes_journal not updated

         

jamie

1:12 pm on Jul 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi,

spamassassin is working fine in normal mode. and recognises and tags (subject line) almost all of my spam. i am using it with mysql table userprefs.

however i still get the following in my mail logs:

Jul 25 08:51:35 cannot write to /etc/mail/spamassassin/bayes_journal, Bayes db update ignored

Jul 25 08:51:35 myserver spamd[23594]: bayes expire_old_tokens: lock: 23594 cannot create tmp lockfile /etc/mail/spamassassin/bayes.lock.myserver.net.23594 for /etc/mail/spamassassin/bayes.lock: Permission denied

at the moment i am using it only with individual users, not global for server.

/etc/mail/spamassassin is owned by root.root

/etc/mail/spamassassin/bayes_seen
and
/etc/mail/spamassassin/bayes_toks
are owned by nobody.nobody (chmod 666)

bayes_journal does not exist?

can anyone point me in the right direction please?

thanks

MattyMoose

4:38 pm on Jul 26, 2004 (gmt 0)

10+ Year Member



You'll need to find out what user spamassassin runs as (spamd?), and change the permissions to allow that user to write to that directory.

If the group is spamd, then change the permissions for the directory and relevant files to: root.spamd

That should do it!

HTH,
-MM

jamie

9:55 am on Jul 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi matty,

spamd is running as root. there is no spamd group. so i think it is running as root.root.

shouldn't it be able to write to anything then?

* confused *

cheers

jamie

10:43 am on Jul 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi matty,

i think it's cleared up now. i restarted the spamd daemon as -u nobody and it is now updating the bayes_journal, bayes_seen and bayes_toks accordingly :-)

thanks for pointing in the right direction