AXIGEN Mail Server Forum Fast Reliable Secure

Go Back   AXIGEN Mail Server Forum > Support(Discussion Lists) > SPAM & Virus protection
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2008, 08:33 PM
fobe fobe is offline
Senior Member
 
Join Date: Aug 2007
Posts: 103
Question [V6.1] auto-whitelist.lock: Permission denied error

Hi all,

I just looked at my maillog and see multiple instances as follows:

Jun 11 12:45:27 localhost spamd[5022]: spamd: clean message (0.8/5.0) for (unknown):220 in 6.0 seconds, 1880 bytes.
Jun 11 12:45:27 localhost spamd[5022]: spamd: result: . 0 - ALL_TRUSTED,FH_FROMEML_NOTLD,MISSING_MID,TO_MALFOR MED scantime=6.0,size=1880,user=(unknown),uid=220,requ ired_score=5.0,rhost=my.server.com,raddr=127.0.0.1 ,rport=51968,mid=(unknown),autolearn=no
Jun 11 12:45:27 localhost spamd[5020]: prefork: child states: II
Jun 11 14:05:18 localhost spamd[5022]: spamd: connection from my.server.com [127.0.0.1] at port 42753
Jun 11 14:05:20 localhost spamd[5022]: spamd: checking message (unknown) for (unknown):220
Jun 11 14:05:45 localhost spamd[5022]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /var/opt/axigen/spamassassin/auto-whitelist.lock.my.server.com.5022 for /var/opt/axigen/spamassassin/auto-whitelist.lock: Permission denied

Why is "permission denied"? Is this because "auto-learn" is off? Or because root is the "owner" ?
The rigths in /var/opt/axigen/spamassassin/ are:
-rw------- 1 root root 4096 Jun 10 08:20 auto-whitelist.dir
-rw------- 1 root root 25600 Jun 10 08:20 auto-whitelist.pag
-rw-r--r-- 1 root root 5 Jun 10 08:30 spamd.pid

And the /var/opt/axigen/spamassassin/ itself :
drwx------ 2 root root 4096 Jun 10 08:30 spamassassin

Thanks in advance...
Reply With Quote
  #2  
Old 06-11-2008, 09:58 PM
dani's Avatar
dani dani is offline
AXIGEN Support Team
 
Join Date: Mar 2008
Posts: 563
Default

Hello,

Please issue the following command, because this issue is related to permissions set on the files from /var/opt/axigen/spamassassin:

Code:
chown -R axigen:axigen /var/opt/axigen/spamassassin
Those files are created by Spamassassin with root as owner by default. This is because of whitelisting directly in Spamassassin.

Please give us a feedback regarding this issue.
__________________
Daniel CRISAN
Technical Consultant, AXIGEN
Reply With Quote
  #3  
Old 06-12-2008, 06:12 AM
fobe fobe is offline
Senior Member
 
Join Date: Aug 2007
Posts: 103
Default

Yep , that did the trick. I tought it would be a "rights"-problem...
Reply With Quote
  #4  
Old 06-12-2008, 04:51 PM
fobe fobe is offline
Senior Member
 
Join Date: Aug 2007
Posts: 103
Default

hmmm, I thought it was solved now i see the following:

Jun 12 12:45:31 localhost spamd[5020]: prefork: child states: II
Jun 12 13:53:42 localhost spamd[5022]: spamd: connection from my.server.com [127.0.0.1] at port 41928
Jun 12 13:53:42 localhost spamd[5022]: spamd: checking message (unknown) for (unknown):220
Jun 12 13:53:42 localhost spamd[19991]: spamd: connection from my.server.com [127.0.0.1] at port 42761
Jun 12 13:53:42 localhost spamd[19991]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody at /usr/bin/spamd line 1161, <GEN12> line 3.
Jun 12 13:53:42 localhost spamd[19991]: spamd: checking message (unknown) for (unknown):99
Jun 12 13:53:42 localhost spamd[19991]: mkdir //.spamassassin: Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 1536
Jun 12 13:53:42 localhost spamd[19991]: mkdir //.spamassassin: Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 1536
Jun 12 13:53:42 localhost spamd[19991]: locker: safe_lock: cannot create tmp lockfile //.spamassassin/auto-whitelist.lock.overdrive.xsnetworx.com.19991 for //.spamassassin/auto-whitelist.lock: No such file or directory
Jun 12 13:53:42 localhost spamd[19991]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile //.spamassassin/auto-whitelist.lock.my.server.com.19991 for //.spamassassin/auto-whitelist.lock: No such file or directory

I think I have to make this directory manually or should axigen has more rights on certain directories....?
Reply With Quote
  #5  
Old 06-12-2008, 05:04 PM
fobe fobe is offline
Senior Member
 
Join Date: Aug 2007
Posts: 103
Exclamation extra note

I'm using now "SpamAssassinBundled" and "SpamAssassin" is disabled.
Could this be an issue?
Reply With Quote
  #6  
Old 06-13-2008, 07:03 AM
daniel daniel is offline
AXIGEN Support Team
 
Join Date: Aug 2007
Posts: 465
Default

The error message is not critical, it does not interfere with message processing in any way.

To solve this issue create the /var/opt/axigen/spamassassin directory and adjust the permissions to the user used by the SpamAssassin process. Please note that the SpamAssassin process uses the default "nobody" system user for low privilege operations.

The /etc/init.d/axigenfilters init script can be edited in order to configure the SpamAssassin service to run as the "axigen" system user.

Stop the "axigenfilters" service.
Adjust the following line like in the example below:

DAEMON_OPTIONS_spamd="-d -u axigen"

Change the permissions of the /var/opt/axigen/spamassassin directory to be owned by the "axigen" system user.

Start the "axigenfilters" service.

We are waiting for feedback regarding our recommendations.
__________________
Daniel TOMA
Technical Consultant, AXIGEN
Reply With Quote
  #7  
Old 06-13-2008, 09:50 AM
fobe fobe is offline
Senior Member
 
Join Date: Aug 2007
Posts: 103
Default

I've edited the line and started the service. A soon I got information if it's working correctly I let you know....
Reply With Quote
  #8  
Old 06-14-2008, 10:13 AM
fobe fobe is offline
Senior Member
 
Join Date: Aug 2007
Posts: 103
Default

the errors are away! thanks a lot
Reply With Quote
  #9  
Old 06-21-2008, 11:08 AM
fobe fobe is offline
Senior Member
 
Join Date: Aug 2007
Posts: 103
Exclamation

Hi, something seems to be wrong.... the spamd.pid is changed to root again in /var/opt/axigen/spamassassin/ after I added some charts... in axigenfilter-file got the right parameters (DAEMON_OPTIONS_spamd="-d -u axigen")...
So I changed the ownership in /var/opt/axigen/spamassassin/ back to axigen:axigen and when I restart axigenfilter the spamd.pid the root:root is back the owner of this file.

Do I need more owner assigenments or additional settings in a config-file?
Reply With Quote
  #10  
Old 06-21-2008, 12:14 PM
adi's Avatar
adi adi is offline
AXIGEN Support Team
 
Join Date: Aug 2006
Posts: 384
Default

Hello,

Please post the output of the following command in order to further analyze the situation:
Code:
ps aux | grep -i spam
Best regards,
__________________
Adrian STANCU
Technical Consultant, AXIGEN
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.