Geoff,
Is it feasable for you to run Apache as your qmail user/group? Or do you
have other stuff on that server too?
Regards,
Charles Werbick
The Wirehouse
-----Original Message-----
From: Geoff Everist [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 25, 2000 02:07
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: How do I enable user nobody to use qmail-inject?
Charles Werbick wrote:
>
> Geoff,
> You permissions do indeed seem correct. Are there any log
messages?
>
> Regards,
> Charles Werbick
> The Wirehouse
Hrm....curiouser and curiouser....
It all appears to be tied up with environment settings. There is
typically only one Qmail environment setting on my system, that is
QMAILMFTFILE, which is set to ~username/.lists. When I was testing
previously, I was using su username, which preserves the current
environment variables. Clearly the new user will not have permissions to
access the file set in QMAILMFTFILE, and therefore is bombing out around
here somewhere:
x = env_get("QMAILMFTFILE");
if (!x) return;
r = control_readfile(&mft,x,0);
if (r == -1) die_read(); /*XXX*/
if (!r) return;
If I use su - nobody, I am no longer getting the error doing it manually
and the message is being send according to the logs (i.e. everything
looks normal).
Which takes me back to my original problem. I having problems sending
mail with IMP. I _thought_ it may have been the user nobody problem, but
clearly it is not.
Basically it appears to send mail, but all I get is the dreaded
qmail-inject: fatal: read error message in my apache error log, and the
mail disappears into the void. Any ideas will be greatly appreciated.
Thanks for your help so far,
Cheers
Geoff Everist