Hi - I'm new to the list, because I've just run into my first (known)
problem with SpamAssassin:

I'm running SpamAssassin 2.60 on a Solaris 7 system integrated with
Courier 0.42.2.

Everything's been more or less peachy, but starting about a week ago,
all of a sudden I've been getting the following problem:

Failed to run BAYES_NN SpamAssassin test, skipping:
        (No write permission to ndbm file at /usr/perl5/site_perl/5.005/Mail/SpamAssas
sin/BayesStore.pm line 933.
)

Where "NN" is 10, 50, 90, 56, 99, 20, 60, 01, 40, 80, 44, etc. ...

I don't recall making any changes at all around the time of these
error messages starting.

As far as I know, the only relevant files I can find are in "/.spamassassin"
or "/var/maildirs/virtual/<my domain>/spamassassin/<user name>/.spamassassin":

Here's the contents/permissions on these directories:

courierserver:1:77 [/.spamassassin] # ls -ld
drwx------    2 courier  courier      1024 Oct 29 13:37 ./

courierserver:1:78 [/.spamassassin] # ls -l
total 173326
-rw-------    1 courier  courier      4096 Oct 29 11:40 auto-whitelist.dir
-rw-------    1 courier  courier    882688 Oct 29 13:37 auto-whitelist.pag
-rw-------    1 courier  courier 170252366 Oct 29 13:37 bayes_journal
-rw-------    1 courier  courier      4096 Oct 29 12:33 bayes_seen.dir
-rw-------    1 courier  courier   2086912 Oct 29 13:36 bayes_seen.pag
-rw-------    1 courier  courier      4096 Oct 29 11:54 bayes_toks.dir
-rw-------    1 courier  courier   8316928 Oct 29 13:36 bayes_toks.pag
-rw-r--r--    1 courier  courier      1218 Jul  2 17:46 user_prefs

courierserver:1:79 [/.spamassassin] # ls -l /var/maildirs/virtual/jpl.nasa.gov/
spamassassin/earle/.spamassassin
total 92
-rw-------    1 courier  courier      4096 Aug  9 03:34 auto-whitelist.dir
-rw-------    1 courier  courier     13312 Aug 11 14:11 auto-whitelist.pag
-rw-------    1 courier  courier        16 Aug 11 12:35 bayes_msgcount
-rw-------    1 courier  courier      4096 Aug 11 11:44 bayes_seen.dir
-rw-------    1 courier  courier      2048 Aug 11 12:35 bayes_seen.pag
-rw-------    1 courier  courier      4096 Aug 11 12:35 bayes_toks.dir
-rw-------    1 courier  courier     65536 Aug 11 12:35 bayes_toks.pag

(Not sure why the per-user file timestamps are so old.  That's for
 another time.)

I've run "truss" on the running "spamd" and I'm not seeing anything in
the truss output that points to where it's looking for the ndbm file
that it doesn't like.  The only lines that are relevant to Bayes-named
files are:

18263:  open("//.spamassassin/bayes_journal", O_WRONLY|O_APPEND|O_CREAT, 0666) 
= 14
18263:  stat("//.spamassassin/bayes_toks", 0xFF346EC0)  Err#2 ENOENT
18263:  stat("//.spamassassin/bayes_toks.db", 0xFF346EC0) Err#2 ENOENT
18263:  stat("//.spamassassin/bayes_toks.dir", 0xFF346EC0) = 0
18263:  open("//.spamassassin/bayes.lock.courierserver.my.do.main.18263", 
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 13
18263:  link("//.spamassassin/bayes.lock.courierserver.my.do.main.18263", 
"//.spamassassin/bayes.lock") = 0
18263:  unlink("//.spamassassin/bayes.lock.miplnew.jpl.nasa.gov.18263") = 0
18263:  open64("//.spamassassin/bayes_toks.pag", O_RDWR|O_CREAT, 0600) = 13
18263:  open64("//.spamassassin/bayes_toks.dir", O_RDWR|O_CREAT, 0600) = 14
18263:  open64("//.spamassassin/bayes_seen.pag", O_RDWR|O_CREAT, 0600) = 7
18263:  open64("//.spamassassin/bayes_seen.dir", O_RDWR|O_CREAT, 0600) = 10
18263:  unlink("//.spamassassin/bayes.lock")            = 0

I assumed that given that it found "bayes_toks.dir", that it would be
fine.  There are no open64() or stat() calls anywhere around the place
where this error message is emitted in the truss output.

The line in question is in

sub set_running_expire_tok {
  my ($self) = @_;
  $self->{db_toks}->{$RUNNING_EXPIRE_MAGIC_TOKEN} = time();
}

I scanned through "BayesStore.pm", but I can't figure out how to find
out what file it's complaining about.

Any ideas?

Thanks in advance,

        - Greg




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to