From: Theo Van Dinter <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Bayes error
Date: Wed, 19 May 2004 17:17:15 -0400

On Wed, May 19, 2004 at 10:14:06PM +0100, Jon Armitage wrote:
> My bayes_journal is also mode 600, but owned by exim, the user which runs
> spamd. Everything seems to work fine.


Yeah, if you're running as root, and you have a site-wide bayes config
which also lets users do their own config (aka: it switches users from
root to the user,) then you need 0777 so people can write to the journal
and the bayes db.

i have a sitewide config, and i'd changed this file to 777 - but now the file is not there, i added bayes_file_mode 0600 to local.cf - should i have said - bayes_file_mode 0777 (do i need this entry at all) - why would this file go away... i have an idea of what the jornal file does... but not really. apparently it keeps track of new db entries while the file is busy.


tail -f ing my mailllog still shows lines like this:

May 20 13:17:03 spameater spamd[5173]: info: setuid to root succeeded
May 20 13:17:03 spameater spamd[5173]: Still running as root: user not specified with -u, not found, or set to root. Fall back to nobody.
May 20 13:17:03 spameater spamd[5173]: processing message <[EMAIL PROTECTED]> for root:65534.
May 20 13:17:04 spameater spamd[5173]: cannot write to /usr/local/etc/mail/spamassassin/bayes_journal, Bayes db update ignored


should i create the bayes_journal file?

bayes is working however quite well for the spam & ham it's been taught, it's just the autolearning i guess that's failing.


thanks, -m





If you don't allow users to do their own config/you're not running as root, the process won't switch UID, so 0600 as the spamd user is fine.

Same as every other UNIX daemon... :)

--
Randomly Generated Tagline:
How come there's only one Monopolies Commission?
<< attach3 >>

_________________________________________________________________
Best Restaurant Giveaway Ever! Vote for your favorites for a chance to win $1 million! http://local.msn.com/special/giveaway.asp




Reply via email to