You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Chris J <ce...@nightwolf.org.uk> on 2006/05/30 22:01:09 UTC

SA 3.1.2 - warnings in syslog from spamd [permission denied, etc]

Hi all,

Hope you can help. Just upgraded my SpamAssassin to 3.1.2 from 3.0.2 and 
I'm now seeing warnings in syslog that weren't appearing before.

They seem to relate to spamd running as user 'antispam', yet it wants 
access to read/write files in $HOME/.spamassassin:

May 30 20:36:26 linux2 spamd[17009]: spamd: connection from localhost [127.0.0.1] at port 4533 
May 30 20:36:26 linux2 spamd[17009]: spamd: processing message <44...@bubbles.townsville> for cej:51 
May 30 20:36:26 linux2 spamd[17009]: locker: safe_lock: cannot create tmp lockfile /home/cej/.spamassassin/auto-whitelist.lock.linux2.nccnet.co.uk.17009 for /home/cej/.spamassassin/auto-whitelist.lock: Permission denied 
May 30 20:36:26 linux2 spamd[17009]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /home/cej/.spamassassin/auto-whitelist.lock.linux2.nccnet.co.uk.17009 for /home/cej/.spamassassin/auto-whitelist.lock: Permission denied 
May 30 20:36:27 linux2 spamd[17009]: bayes: locker: safe_lock: cannot create tmp lockfile /home/cej/.spamassassin/bayes.lock.linux2.nccnet.co.uk.17009 for /home/cej/.spamassassin/bayes.lock: Permission denied 
May 30 20:36:27 linux2 spamd[17009]: spamd: clean message (0.0/5.0) for cej:51 in 0.8 seconds, 1462 bytes. 
May 30 20:36:27 linux2 spamd[17009]: spamd: result: . 0 - scantime=0.8,size=1462,user=cej,uid=51,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=4533,mid=<44...@bubbles.townsville>,autolearn=failed 


I tried making $HOME/.spamassassin read/write [mode 777, not really what I 
want to do] but got this:

May 30 20:47:14 linux2 spamd[17009]: spamd: connection from localhost [127.0.0.1] at port 4546 
May 30 20:47:14 linux2 spamd[17009]: bayes: cannot open bayes databases /home/cej/.spamassassin/bayes_* R/O: tie failed: Permission denied 
May 30 20:47:14 linux2 spamd[17009]: spamd: processing message <{D...@mail.ru> for cej:51 
May 30 20:47:14 linux2 spamd[17009]: bayes: cannot open bayes databases /home/cej/.spamassassin/bayes_* R/O: tie failed: Permission denied 
May 30 20:47:15 linux2 spamd[17009]: bayes: cannot open bayes databases /home/cej/.spamassassin/bayes_* R/O: tie failed: Permission denied 
May 30 20:47:15 linux2 spamd[17009]: auto-whitelist: cannot open auto_whitelist_path /home/cej/.spamassassin/auto-whitelist: Permission denied 
May 30 20:47:15 linux2 spamd[17009]: auto-whitelist: open of auto-whitelist file failed: auto-whitelist: cannot open auto_whitelist_path /home/cej/.spamassassin/auto-whitelist: Permission denied 
May 30 20:47:15 linux2 spamd[17009]: spamd: identified spam (9.3/5.0) for cej:51 in 1.2 seconds, 4178 bytes. 

A google suggested that it's running with per-user configs, so I added -x 
to spamd and that just moved the problem to the root directory:

May 30 20:33:27 linux2 spamd[16943]: spamd: connection from localhost [127.0.0.1] at port 4527 
May 30 20:33:27 linux2 spamd[16943]: spamd: processing message <44...@bubbles.townsville> for cej:51 
May 30 20:33:27 linux2 spamd[16943]: config: can not determine userstate dir 
May 30 20:33:27 linux2 spamd[16943]: config: can not determine userstate dir 
May 30 20:33:27 linux2 spamd[16943]: locker: safe_lock: cannot create tmp lockfile /auto-whitelist.lock.linux2.nccnet.co.uk.16943 for /auto-whitelist.lock: Permission denied 
May 30 20:33:28 linux2 spamd[16943]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /auto-whitelist.lock.linux2.nccnet.co.uk.16943 for /auto-whitelist.lock: Permission denied 
May 30 20:33:28 linux2 spamd[16943]: spamd: clean message (1.2/5.0) for cej:51 in 0.9 seconds, 1463 bytes. 
May 30 20:33:28 linux2 spamd[16943]: spamd: result: . 1 - BLANK_LINES_70_80 scantime=0.9,size=1463,user=cej,uid=51,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=4527,mid=<44...@bubbles.townsville>,autolearn=no 
May 30 20:33:28 linux2 spamd[16942]: prefork: child states: II 

Now there must be a setting somewhere to set where spamd wants to write its 
files to, but I haven't found it yet. If someone can give me some pointers 
(as I've not seen anything in the FAQ, and couldn't find the right phrase 
for google to give be a solid answer), it'd be appreciated :-)


System Overview:
	SpamAssassin 3.1.2
	Qmail 1.0.3

SpamAssassin running as:
	/usr/bin/spamd -d -r /var/run/spamd.pid -u antispam -p 7783

spamd being access via .procmailrc with the following rule:
	:0 wf
	|/usr/bin/spamc -f -s 300000 -p 7783

Qmail configured to deliver user mail to $HOME/Mailbox

Cheers, 

Chris...

-- 
\ Chris Johnson                 \ NP: Nothing!
 \ cej@nightwolf.org.uk          \  
  \ http://cej.nightwolf.org.uk/  \ 
   \ http://redclaw.org.uk/        ~---------------------------------------