You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Mark Killingback <ma...@pacificgroup.co.uk> on 2007/07/30 17:27:23 UTC

Spamassassin permission problems

I've been trying to solve this problem for several days now I'm getting 
fed up :(  Mail is getting through and being checked by spamassassin but 
the bayes autolearn and auto-whitelist don't appear to be working and it 
appears to be something to do with permissions.

 From my maillog I get the following:

spamd[8611]: spamd: connection from pacifictech [127.0.0.1] at port 44288
spamd[8611]: spamd: setuid to testuser succeeded
spamd[8611]: spamd: processing message 
<00...@10-w2gnnue7j8wh> for testuser:500
dccproc[12369]: open(/var/dcc/map): Permission denied
spamd[8611]: locker: safe_lock: cannot create tmp lockfile 
/home/testuser/.spamassassin/auto-whitelist.lock.pacifictech.8611 for 
/home/testuser/.spamassassin/auto-whitelist.lock: Permission denied
spamd[8611]: auto-whitelist: open of auto-whitelist file failed: locker: 
safe_lock: cannot create tmp lockfile 
/home/testuser/.spamassassin/auto-whitelist.lock.pacifictech.8611 for 
/home/testuser/.spamassassin/auto-whitelist.lock: Permission denied
spamd[8611]: bayes: locker: safe_lock: cannot create tmp lockfile 
/home/testuser/.spamassassin/bayes.lock.pacifictech.8611 for 
/home/testuser/.spamassassin/bayes.lock: Permission denied
spamd[8611]: spamd: identified spam (18.7/5.0) for testuser:500 in 0.7 
seconds, 4154 bytes.
spamd[8611]: spamd: result: Y 18 - 
DNS_FROM_RFC_ABUSE,HTML_MESSAGE,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_NJABL_DUL,URIBL_AB_SURBL,URIBL_JP_SURBL,URIBL_PH_SURBL,URIBL_SC_SURBL,URIBL_WS_SURBL 
scantime=0.7,size=4154,user=testuser,uid=500,required_score=5.0,rhost=pacifictech,raddr=127.0.0.1,rport=44288,mid=<00...@10-w2gnnue7j8wh>,autolearn=failed 


Obviously there is a problem with DCC as well :(

The .spamassassin directory has permissions:

drwx------  2 testuser testgroup 4096 Jul 26 11:50 .spamassassin

I used sa-learn to learn a load of spam and it created all the files 
inside of the directory.  They have the following permissions:

-rw-rw-rw- 1 testuser testgroup   12288 Jul 30 11:50 auto-whitelist
-rw-rw-rw- 1 testuser testgroup  167936 Jul 30 11:49 bayes_seen
-rw-rw-rw- 1 testuser testgroup 2637824 Jul 30 11:49 bayes_toks
-rw-rw-rw- 1 testuser testgroup    1487 Jul 30 11:49 user_prefs

Any ideas on what I can try?


Thanks

Mark

Re: Spamassassin permission problems

Posted by Kris Deugau <kd...@vianet.ca>.
Mark Killingback wrote:
> I've been trying to solve this problem for several days now I'm getting 
> fed up :(  Mail is getting through and being checked by spamassassin but 
> the bayes autolearn and auto-whitelist don't appear to be working and it 
> appears to be something to do with permissions.

[snip log extract]

> drwx------  2 testuser testgroup 4096 Jul 26 11:50 .spamassassin

What user is spamc running as?  It must run as root if you want to use 
per-user settings with system users;  otherwise it should run as 
testuser:testgroup based on your permissions.

For DCC, check that the path to the socket (I *think* that's the DCC 
socket you're getting errors about...) is either owned by the 
appropriate user, or world (or at least group) -readable.

-kgd