Page 2 of 2

Re: User's home directory /var/spool/mqueue is not writable

Posted: 01 Sep 2010, 03:50
by nootkan
Well that didn't work so I am not sure what to do now.
You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to : 31 Time(s)
User's home directory /var/spool/mqueue is not writable : 31 Time(s)

Re: User's home directory /var/spool/mqueue is not writable

Posted: 12 Sep 2010, 22:09
by nootkan
Well I'm not sure why no one will help me with this (hopefully I have not inadvertantly angered anyone) but I'll try one more time for support. I have tried logging into root using putty and ran the chmod 750 /var/spool/mqueue and then the chown mailnull /var/spool/mqueue commands and still get the following errors:
**Unmatched Entries**
Deleted 1 messages from processing-database : 90 Time(s)
Reading configuration file /usr/mailscanner/etc/conf.d/README : 29 Time(s)
Connected to Processing Attempts Database : 29 Time(s)
Reading configuration file /usr/mailscanner/etc/MailScanner.conf : 29 Time(s)
Found 0 messages in the Processing Attempts Database : 29 Time(s)
You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to : 17 Time(s)
User's home directory /var/spool/mqueue is not writable : 17 Time(s)
Deleted 2 messages from processing-database : 3 Time(s)
As previously stated the config settings seem to be the same as Sarah expects them to be according to her post.
Is there something I'm missing or doing incorrectly?

Re: User's home directory /var/spool/mqueue is not writable

Posted: 12 Sep 2010, 23:22
by Sarah
I'm afraid I don't really have any other suggestions. If you changed the directory ownership and permissions correctly and checked it afterwards, it should have worked. Unless there is something else (a cron job or cPanel script) that is changing them back for some reason. Have you checked the ownership and permissions again to see if they are right?

It should look like this:

Code: Select all

root@server [~]# ls -lad /var/spool/mqueue/
drwxr-x---  4 mailnull mail 4096 Jan 15  2008 /var/spool/mqueue/
And in the MailScanner.conf file, make sure there is NOTHING on the line after "SpamAssassin User State Dir = ".

Regards,
Sarah

Re: User's home directory /var/spool/mqueue is not writable

Posted: 13 Sep 2010, 03:30
by nootkan
:D Sarah, first let me say thanks for replying to my post. Much appreciated. Here is my ownership and permission settings after just checking:
[root@myserver.com ~]$ ls -lad /var/spool/mqueue/
drwxr-x--- 4 mailnull mail 4.0K Mar 30 21:50 /var/spool/mqueue/
Also the SpamAssassin User State Dir = setting can be viewed here:
http://www.bassonhook.com/images/temp/m ... config.jpg

As I've seen no real issues or problems arise yet, these error messages are they a concern? Do I need to have a users home directory for mailscanner to write to? What does it actually write there?

Update: Okay I guess the cron email was sent before I made the changes as everything seems to be normal today. Thanks for all your help! :)

Re: User's home directory /var/spool/mqueue is not writable

Posted: 14 Sep 2010, 11:22
by Sarah
Glad everything is sorted now.