Koozali.org: home of the SME Server

qmail queue ownership

Nick

qmail queue ownership
« on: November 13, 2003, 04:42:14 PM »
Hi all,

I'm having a problem with qmail whereby any new messages received by the server are being placed in the queue, but are placed there under the wrong ownership. They are currently being placed in /var/qmail/queue/mess/*/* under the ownership of root, but this is incorrect and leads to an error in the /var/log/qmail/current file as such :

@400000003fb38d5c1c9c554c delivery 275: deferral: Sorry,_message_has_wrong_owner._(#4.3.5)/

If I change the ownership of all the files in /var/qmail/queue/mess/*/* to be qmailq, the message queue empties and the messages are delivered. Unfortunately, any new email data received is created with owner root. I am currently running a cron job every few minutes to change the ownerships and the email is being delivered, but this isn't a suitable solution.

How do I get qmail to create the files in /var/qmail/queue/mess/ with owner qmailq as opposed to root?

Thanks in advance.
Nick.

Nathan Fowler

Re: qmail queue ownership
« Reply #1 on: November 13, 2003, 10:36:47 PM »
Check out this little python application, I had issues with my queue and this was able to quickly identify and fix it.

http://www.qcc.ca/~charlesc/software/queue_repair/

(I had moved my /var directory to another drive and updated fstab, but it doing so I broke a pipe used by qmail)