Re: Cannot write to journal and others

2004-09-07 Thread Raquel Rice
On Tue, 7 Sep 2004 13:38:20 -0500
"John Fleming" <[EMAIL PROTECTED]> wrote:

> > Check the permissions on the directory /var/.spamassassin  I
> > believe it should be readable/writeable by all mail processes
> > ... by all
> 
> It used to be 0666 - I changed it to 0777 with no effect.  Looking
> at the_journal, _toks, and _seen files, they are all 777.  For
> some reason, the journal is owned/group john and the others are
> root.  However, at 777, I don't see why that should matter. 
> Thanks any other insights.  - John

I changed the reply to go to the list, which is where I think this
should stay.

Ownership of /var/.spamassassin should remail root:root but it
should be world readable/writeable.  You don't say whether your
system is multi-user or single-user.  Either way, when mail is
received, ownership of those files is changed to that of the mail
received.  Mine are:

-rwxrwxrwx2 root root   908561 Sep  7 11:47
auto-whitelist.dir
-rwxrwxrwx2 root root   908561 Sep  7 11:47
auto-whitelist.pag
-rw-rw-rw-1 raquel   raquel  41727 Sep  7 11:47
bayes_journal
-rwxrwxrwx1 root root  1335296 Sep  7 11:47 bayes_seen
-rw-rw-rw-1 raquel   raquel5513216 Sep  7 11:47 bayes_toks


-- 
Raquel

The person born with a talent they are meant to use will find their
greatest happiness in using it.
  --Johann Wolfgang Von Goethe



Re: Cannot write to journal and others

2004-09-07 Thread Raquel Rice
On Sun, 5 Sep 2004 13:41:15 -0500
"John Fleming" <[EMAIL PROTECTED]> wrote:

> Sep  5 13:23:56 Luke spamd[29971]: cannot write to
> /var/.spamassassin/bayes_journal, Bayes db update ignored

Check the permissions on the directory /var/.spamassassin  I believe
it should be readable/writeable by all mail processes ... by all
users.

-- 
Raquel

The person born with a talent they are meant to use will find their
greatest happiness in using it.
  --Johann Wolfgang Von Goethe



Cannot write to journal and others

2004-09-05 Thread John Fleming
I have three questions regarding mail log excerpt at end of post.

1.  Can't write to bayes_journal, Bayes db update ignored - My Bayes stuff
is in /var/.spamassassin as shown below.  Here's the pertinent portion of
local.cf:

use_bayes 1
bayes_path /var/.spamassassin/bayes
bayes_file_mode 0777
bayes_auto_learn_threshold_nonspam 0.10
bayes_auto_learn_threshold_spam 7.00
bayes_auto_learn 1

Why can't it write to the journal with the mode 0777 set?  I've used the
same configuration on Fedora Core 1 and 2 - current distro is Debian testing
(Sarge).  In /var/.spamassassin, I have _toks and _seen files, but no
journal.  Should I touch a journal file??  (Grasping here...)  Any help
appreciated.

2.  The second question might relate to the first.  I'm not
auto-learning -anything-.  I get a lot of ham and spam with extreme scores -
something should be learned.  Will fixing the first problem solve this one?

3.  Can someone explain the qmgr entries below?  I don't remember seeing
thoe before.

Thanks again - John (log snippet below):

Sep  5 13:23:50 Luke postfix/smtpd[29947]: connect from
osiris.email.starband.net[148.78.247.140]
Sep  5 13:23:50 Luke postfix/smtpd[29947]: B706C33E67F:
client=osiris.email.starband.net[148.78.247.140]
Sep  5 13:23:56 Luke postfix/cleanup[29950]: B706C33E67F:
message-id=<[EMAIL PROTECTED]>
Sep  5 13:23:56 Luke postfix/qmgr[17562]: B706C33E67F:
from=<[EMAIL PROTECTED]>, size=4475, nrcpt=1 (queue active)
Sep  5 13:23:56 Luke spamd[14504]: connection from localhost.localdomain
[127.0.0.1] at port 57221
Sep  5 13:23:56 Luke spamd[29971]: info: setuid to john succeeded
Sep  5 13:23:56 Luke spamd[29971]: processing message
<[EMAIL PROTECTED]> for john:1000.
Sep  5 13:23:56 Luke spamd[29971]: cannot write to
/var/.spamassassin/bayes_journal, Bayes db update ignored
Sep  5 13:23:56 Luke spamd[29971]: identified spam (13.2/5.0) for john:1000
in 0.2 seconds, 4698 bytes.
Sep  5 13:23:56 Luke postfix/local[29951]: B706C33E67F:
to=<[EMAIL PROTECTED]>, relay=local, delay=6, status=sent (delivered to
command: /usr/bin/procmail)
Sep  5 13:23:56 Luke postfix/qmgr[17562]: B706C33E67F: removed