You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Rainer Dorsch <rd...@web.de> on 2008/03/26 22:24:49 UTC

Missleading spmad error message

Hello,

I am running spamassassin 3.2.3 on a Debian etch system (volatile package, 
3.2.3-0.volatile1).

Unfortunately bayes filtering works quite unreliably and in  /var/log/mail.log
I get messages like

Mar 26 22:16:59 bokomoko spamd[10337]: spamd: connection from localhost 
[127.0.0.1] at port 60747
Mar 26 22:16:59 bokomoko spamd[10337]: spamd: setuid to Debian-exim succeeded
Mar 26 22:16:59 bokomoko spamd[10337]: bayes: cannot open bayes 
databases /home/rd/.spamassassin/bayes_* R/W: tie failed: Permission denied
Mar 26 22:16:59 bokomoko spamd[10337]: spamd: processing message 
<20...@thorin> aka 
<ha...@bugs.debian.org> for Debian-exim:104
Mar 26 22:16:59 bokomoko spamd[10337]: bayes: cannot open bayes 
databases /home/rd/.spamassassin/bayes_* R/W: tie failed: Permission denied
Mar 26 22:17:05 bokomoko spamd[10337]: spamd: clean message (-0.7/5.2) for 
Debian-exim:104 in 5.5 seconds, 6326 bytes.
Mar 26 22:17:05 bokomoko spamd[10337]: spamd: result: . 0 - AWL 
scantime=5.5,size=6326,user=Debian-exim,uid=104,required_score=5.2,rhost=localhost,raddr=127.0.0.1,rport=60747,mid=<
20080326210639.GA28814@thorin>,rmid=<ha...@bugs.debian.org>,autolearn=disabled 
Mar 26 22:17:05 bokomoko spamd[10333]: prefork: child states: II

I do not understand the entry

Mar 26 22:16:59 bokomoko spamd[10337]: bayes: cannot open bayes 
databases /home/rd/.spamassassin/bayes_* R/W: tie failed: Permission denied

because if I check the file systems permissions, the files are readable by 
anybody:

rd@bokomoko:~/.spamassassin$ ls -l /home/rd/.spamassassin/
total 18020
-rw-r--r-- 1 rd user    12288 Dec 16 10:48 auto-whitelist
-rw-rw-rw- 1 rd user   103896 Mar 26 19:35 bayes_journal
-rw-r--r-- 1 rd user  1642496 Mar 21 21:17 bayes_seen
-rw-r--r-- 1 rd user 20955136 Mar 26 18:19 bayes_toks
-rw-r--r-- 1 rd user        0 Mar 25 19:09 timestamp-last-sa-learn-run
-rw-r--r-- 1 rd user     1353 Dec 14  2006 user_prefs
-rw-r--r-- 1 rd user     1251 Dec 13  2006 user_prefs~
rd@bokomoko:~/.spamassassin$ ls -ld /home/rd/.spamassassin/
drwxrwxr-x 2 rd Debian-exim 4096 Mar 26 21:57 /home/rd/.spamassassin/
rd@bokomoko:~/.spamassassin$ ls -ld /home/rd/
drwxr-xr-x 30 rd user 4096 Mar 21 16:19 /home/rd/
rd@bokomoko:~/.spamassassin$ ls -ld /home/
drwxrwsr-x 14 root staff 4096 Dec 27 22:03 /home/
rd@bokomoko:~/.spamassassin$ ls -ld /
drwxr-xr-x 22 root root 4096 Aug 31  2007 /
rd@bokomoko:~/.spamassassin$

So it seems spamassassin is not complaining about file systems permissions, 
but other permissions.

Any idea which might help me to debug this issue is very welcome...

Many thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch@web.de
jabber: rdorsch@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

Re: Missleading spmad error message

Posted by Rainer Dorsch <rd...@web.de>.
Am Mittwoch, 26. März 2008 schrieb Rainer Dorsch:
> Am Mittwoch, 26. März 2008 schrieb Theo Van Dinter:
> > On Wed, Mar 26, 2008 at 10:24:49PM +0100, Rainer Dorsch wrote:
> > > I do not understand the entry
> > >
> > > Mar 26 22:16:59 bokomoko spamd[10337]: bayes: cannot open bayes
> > > databases /home/rd/.spamassassin/bayes_* R/W: tie failed: Permission
> > > denied
> > >
> > > because if I check the file systems permissions, the files are readable
> > > by anybody:
> > > -rw-r--r-- 1 rd user  1642496 Mar 21 21:17 bayes_seen
> > > -rw-r--r-- 1 rd user 20955136 Mar 26 18:19 bayes_toks
> >
> > The issue is that it's trying to write to the files (hence the "R/W"),
> > and can't. :)
>
> Many thanks. Making /home/rd/.spamassassin/ writable for the Debian-exim
> group indeed solved the problem.

I declared victory too early. The permission denied came back in an 
intermittent manner:

The 00:12:xx entry got a permission denied, in the 00:14:xx entry the bayes 
filtering worked, it got a BAYES_00:

Mar 27 00:12:12 bokomoko spamd[10338]: spamd: connection from localhost 
[127.0.0.1] at port 49793
Mar 27 00:12:12 bokomoko spamd[10338]: spamd: setuid to Debian-exim succeeded
Mar 27 00:12:12 bokomoko spamd[10338]: bayes: cannot open bayes 
databases /home/rd/.spamassassin/bayes_* R/W: tie failed: Permission denied
Mar 27 00:12:12 bokomoko spamd[10338]: spamd: processing message 
<20...@web.de> for Debian-exim:104
Mar 27 00:12:12 bokomoko spamd[10338]: bayes: cannot open bayes 
databases /home/rd/.spamassassin/bayes_* R/W: tie failed: Permission denied
Mar 27 00:12:17 bokomoko spamd[10338]: spamd: clean message (-2.4/5.2) for 
Debian-exim:104 in 5.4 seconds, 999 bytes.
Mar 27 00:12:17 bokomoko spamd[10338]: spamd: result: . -2 - ALL_TRUSTED,AWL 
scantime=5.4,size=999,user=Debian-exim,uid=104,required_score=5.2,rhost=localhost,raddr=127.0.0.1,rport=49793,mid=<20...@web.de>,autolearn=disabled
Mar 27 00:12:17 bokomoko spamd[10333]: prefork: child states: II
Mar 27 00:14:49 bokomoko spamd[10338]: spamd: connection from localhost 
[127.0.0.1] at port 49799
Mar 27 00:14:49 bokomoko spamd[10338]: spamd: setuid to Debian-exim succeeded
Mar 27 00:14:49 bokomoko spamd[10338]: spamd: processing message 
<00...@20hz> for Debian-exim:104
Mar 27 00:14:55 bokomoko spamd[10338]: spamd: clean message (-1.3/5.2) for 
Debian-exim:104 in 6.1 seconds, 5753 bytes.
Mar 27 00:14:55 bokomoko spamd[10338]: spamd: result: . -1 - 
AWL,BAYES_00,HTML_MESSAGE 
scantime=6.1,size=5753,user=Debian-exim,uid=104,required_score=5.2,rhost=localhost,raddr=127.0.0.1,rport=49799,mid=<00...@20hz>,bayes=0.000015,autolearn=disabled
Mar 27 00:14:55 bokomoko spamd[10333]: prefork: child states: II

Since my file system permissions did not change, I think the permission denied 
does not refer to file system permissions (?)

Any ideas how I can find out what causes the permission denied?

Thanks,
Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch@web.de
jabber: rdorsch@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

Re: Missleading spmad error message

Posted by Rainer Dorsch <rd...@web.de>.
Am Mittwoch, 26. März 2008 schrieb Theo Van Dinter:
> On Wed, Mar 26, 2008 at 10:24:49PM +0100, Rainer Dorsch wrote:
> > I do not understand the entry
> >
> > Mar 26 22:16:59 bokomoko spamd[10337]: bayes: cannot open bayes
> > databases /home/rd/.spamassassin/bayes_* R/W: tie failed: Permission
> > denied
> >
> > because if I check the file systems permissions, the files are readable
> > by anybody:
> > -rw-r--r-- 1 rd user  1642496 Mar 21 21:17 bayes_seen
> > -rw-r--r-- 1 rd user 20955136 Mar 26 18:19 bayes_toks
>
> The issue is that it's trying to write to the files (hence the "R/W"), and
> can't. :)

Many thanks. Making /home/rd/.spamassassin/ writable for the Debian-exim group 
indeed solved the problem.

Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch@web.de
jabber: rdorsch@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

Re: Missleading spmad error message

Posted by Theo Van Dinter <fe...@apache.org>.
On Wed, Mar 26, 2008 at 10:24:49PM +0100, Rainer Dorsch wrote:
> I do not understand the entry
> 
> Mar 26 22:16:59 bokomoko spamd[10337]: bayes: cannot open bayes 
> databases /home/rd/.spamassassin/bayes_* R/W: tie failed: Permission denied
> 
> because if I check the file systems permissions, the files are readable by 
> anybody:
> -rw-r--r-- 1 rd user  1642496 Mar 21 21:17 bayes_seen
> -rw-r--r-- 1 rd user 20955136 Mar 26 18:19 bayes_toks

The issue is that it's trying to write to the files (hence the "R/W"), and can't. :)

-- 
Randomly Selected Tagline:
"She cooked breakfast this morning, and I didn't know dead people cooked
 breakfast," Vonree Nelson said.
         - http://www.thebostonchannel.com/news/1664894/detail.html