spamassassin doesn't seem to be using bayes

jdow jdow at earthlink.net
Fri Oct 21 17:57:44 UTC 2005


From: "D. D. Brierton" <darren at dzr-web.com>

> On Fri, 2005-10-21 at 16:06 +0100, Andy Green wrote:
>> D. D. Brierton wrote:
>>
>> > X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP
>> > autolearn=failed version=3.0.4
>>
>> Anything in /var/log/maillog?
>
> Aha! Yes, there is:
>
> Oct 21 16:46:35 excession spamd[2247]: connection from excession.dzr 
> [127.0.0.1] at port 40689
> Oct 21 16:46:35 excession spamd[2247]: info: setuid to darren succeeded
> Oct 21 16:46:35 excession spamd[2247]: Creating default_prefs 
> [/home/darren/.spamassassin/user_prefs]
> Oct 21 16:46:35 excession spamd[2247]: Cannot write to 
> /home/darren/.spamassassin/user_prefs: Permission denied
> Oct 21 16:46:35 excession spamd[2247]: Couldn't create readable 
> default_prefs for [/home/darren/.spamassassin/user_prefs]
> Oct 21 16:46:36 excession spamd[2247]: processing message 
> <9b9801c5d652$11c16042$ce842dc8 at frwpik1> for darren:500.
> Oct 21 16:46:36 excession spamd[2247]: identified spam (5.6/5.0) for 
> darren:500
> in 0.2 seconds, 1670 bytes.
> Oct 21 16:46:36 excession spamd[2247]: result: Y  5 - 
> DATE_IN_FUTURE_96_XX,FORGED_RCVD_HELO,INVALID_DATE,MSGID_DOLLARS,NO_OBLIGATION,NO_REAL_NAME,RCVD_BY_IP 
> scantime=0.2,size=1670,mid=<9b9801c5d652$11c16042$ce842dc8 at frwpik1>,autolearn=no
>
> Obviously there is something wrong with the permissions on
> ~/.spamassassin.
>
> $ ls -ldZ .spamassassin/
> drwx------  darren   darren   user_u:object_r:user_home_t 
> .spamassassin/
>
> $ ls -lZ .spamassassin/
> -rw-------  darren   darren   user_u:object_r:user_home_t 
> auto-whitelist
> -rw-------  darren   darren   user_u:object_r:user_home_t      bayes_seen
> -rw-------  darren   darren   user_u:object_r:user_home_t      bayes_toks
> -rw-rw-r--  darren   darren   user_u:object_r:user_home_t 
> old_bayes_seen
> -rw-rw-r--  darren   darren   user_u:object_r:user_home_t 
> old_bayes_toks
> -rw-r--r--  darren   darren   user_u:object_r:user_home_t      user_prefs
>
> Given that maillog says that setuid to darren succeeded then I can't see
> what's wrong with any of those permissions, unless it is an selinux
> issue. Hmmmmm. Any suggestions?

---8<---
-rw-rw-r--  1 jdow jdow   45056 Jun 30 06:57 auto-whitelist
-rw-------  1 jdow jdow    8544 Oct 21 10:51 bayes_journal
-rw-rw-r--  1 jdow jdow  643072 Oct 21 00:00 bayes_seen
-rw-------  1 jdow jdow 5312512 Oct 21 10:49 bayes_toks
-rw-------  1 jdow jdow   29726 Sep 21 22:28 user_prefs
---8<---
Now, I do not use selinux here. So there may be an access control issue
with that user-hostility higher seciurity facility in place. (It might also
be "amusing" to see what the size of the bayes files is. I note no bayes
journal file so the directory privileges may not be sufficient that they
can be properly created. (Or you have the journal turned off.)

{^_^}

{^_^}





More information about the users mailing list