note 11012 deleted from function.mail by jimw

From: Date: Wed, 31 Oct 2001 23:11:14 +0000
Subject: note 11012 deleted from function.mail by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19889@lists.php.net to get a copy of this message
When trying to use qmail with php 4 (on a redhat 7.0 based system) if you get the error "qmail-inject: fatal: read error" appearing in your Apache logs then you probably need to remove the environment variable "QMAILMFTFILE" from your shell (/etc/profile.d/qmail.sh on RH.7). This error appears to happen because although qmail is not called as root by apache, it's parent UID is root and qmail-inject gets fooled into interpreting $HOME/.lists as /root/.lists - which obviously cannot be accessed if the UID of the process is not root. When you remove this variable from the calling shell, qmail-inject no longer looks for the .lists file, therefore fixing the problem. This one took us ages to work out as it does not seem to be that well documented. , rune@citipages.net - Sysadmin, Citipages Ltd.

« previous php.notes (#19889) next »