Wrong permissions in qmail-1.03-25.el6.art.x86_64

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Wrong permissions in qmail-1.03-25.el6.art.x86_64

Unread post by prupert »

Hi Scott,

When trying out Project Gamera on CentOS 6 I found out that most of the qmail processes were running as 'root' and all file owners in /var/qmail/queue where set to 'root'. This was causing the "qmail-inject: fatal: qq trouble creating files in queue (#4.3.0)" error, both directly via /bin/mail as well as via SMTP.

When comparing the configuration with a CentOS 5 installation I believe the file ownership should be fixed in the rpm package. If you agree that this is a fix, could you perhaps update this in your qmail rpm package? Perhaps other file ownerships/permissions in the rpm package need to be checked as well.

This makes sure the processes run under the correct user:

Code: Select all

alias /etc/qmail/owners/uida
qmaild /etc/qmail/owners/uidd
qmaill /etc/qmail/owners/uidl
qmailp /etc/qmail/owners/uidp
qmailq /etc/qmail/owners/uidq
qmailr /etc/qmail/owners/uidr
qmails /etc/qmail/owners/uids
These are the proper file ownership (recursive) of folders for the queue folder:

Code: Select all

qmailq /var/qmail/queue
qmails /var/qmail/queue/bounce
qmails /var/qmail/queue/info
qmailq /var/qmail/queue/intd
qmails /var/qmail/queue/local
qmailq /var/qmail/queue/lock
qmailq /var/qmail/queue/mess
qmailq /var/qmail/queue/pid
qmails /var/qmail/queue/remote
qmailq /var/qmail/queue/todo
After changing the file ownership and restarting with "restart daemontools" the processes were running under the right users AND mail delivery was working without the #4.3.0 error.

Pim
Lemonbit Internet Dedicated Server Management
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Wrong permissions in qmail-1.03-25.el6.art.x86_64

Unread post by prupert »

I ran into another problem: processes 'qmail-todo' and 'qmail-clean' were stacking up to the point that the server was going out-of-memory.

Is anybody actually using Project Gamera on CentOS 6 in production?
Lemonbit Internet Dedicated Server Management
Post Reply