Submitted by izoox on Sun, 01/17/2010 - 17:03
My maillog is filled with these messages:
unable to create lock file /var/virtualmin-traps/spam/120464942112376.lock: Permission denied
Any ideas?
Status:
Closed (fixed)
My maillog is filled with these messages:
unable to create lock file /var/virtualmin-traps/spam/120464942112376.lock: Permission denied
Any ideas?
Comments
Submitted by JamieCameron on Sun, 01/17/2010 - 20:05 Comment #1
Does that file /var/virtualmin-traps/spam/120464942112376.lock exist, and if so which user and group own it ?
Also, does deleting it fix the problem? It is quite safe to remove ..
Submitted by izoox on Mon, 01/18/2010 - 10:33 Comment #2
There are no .lock files in that directory at all actually. There are many files with just numbers, in fact 120464942112376 which matches the 120464942112376.lock is in there. All owned by root, and the folder is owned by root.
Submitted by JamieCameron on Mon, 01/18/2010 - 14:17 Comment #3
Ok, those files are expected .. they contain the email sent to the spamtrap address, per domain.
What are the permissions on the spamtrap directory? It should be world-writable (mode 777).
Submitted by izoox on Mon, 01/18/2010 - 14:38 Comment #4
/var/virtualmin-traps/ /var/virtualmin-traps/spam/ /var/virtualmin-traps/ham/
are all 755, should they all be 777?
Submitted by JamieCameron on Mon, 01/18/2010 - 15:18 Comment #5
Yes, they should be 0777 .. or 01777
Submitted by izoox on Mon, 01/18/2010 - 15:25 Comment #6
Cool. Thanks.
Submitted by izoox on Thu, 01/21/2010 - 11:16 Comment #7
Apparently messages sent to spamtrap are now being returned with this message:
cannot append message to file /var/virtualmin-traps/spam/120464942112376: file is executable
Submitted by JamieCameron on Thu, 01/21/2010 - 13:26 Comment #8
That's a new one .. does it help if you make those files mode 666 instead of 777 ?
Submitted by izoox on Thu, 01/21/2010 - 17:00 Comment #9
Seems to have fixed it. Thanks.
Submitted by JamieCameron on Thu, 01/21/2010 - 23:27 Comment #10
Cool .. I will make sure Virtualmin sets the permissions as 666 on those files in future.
Submitted by izoox on Fri, 01/22/2010 - 10:50 Comment #11
Well I am still having issues with this. Apparently it is back to :
cannot append message to file /var/virtualmin-traps/spam/120464942112376: cannot open file: Permission denied
Which makes no sense as everything is 1666.
Submitted by JamieCameron on Fri, 01/22/2010 - 13:38 Comment #12
Are all the parent directories readable and listable by all users?
Submitted by izoox on Fri, 01/22/2010 - 15:04 Comment #13
I had changed it to 1766 and ran some more tests and can't see it in the logs and got no bounces. But that happened last time too before it started sending bounces again... We'll see
btw, all the parent directories are 755.
Submitted by izoox on Mon, 01/25/2010 - 12:53 Comment #14