piped emails with suPHP not working. Is there a fix

unixguru

Verified User
Joined
Mar 6, 2010
Messages
68
Location
Four Marks, Alton, Hampshire
I have a hosting panel with helpdesk built in.
My piped emails worked correctly.

I have however recently recompiled with suPHP installed (php-cgi).

Now my piped emails have stopped working.

Does anyone know how to fix or work-round this problem?

Many thanks in advance for any suggestions.
 
Hmm

I've investigated this a bit more.

I'm not sure it ever worked properly.

If the email is generated from a different server the piped email works.

If the email is generated on the same server as the piped email, then it doesn't work.

Very strange.
 
How is the email being generated? I'm guessing through php?

suPhp runs as the User, so ensure that /usr/sbin/exim is chmod to 4755 so it can get to root.

Also, (may be related).. "apache" is in the trusted users list in the /etc/exim.conf, but your DA User account wont be. Just test to see if adding his username to that list (then restart exim) has any effect. Remove it once done testing (if you want).

Check /var/log/exim/mainlog, rejectlog and paniclog for clues.

Also check your apache log for suphp calls, in case they're not being made at all:
/var/log/suphp.log
/var/log/httpd/error_log
/var/log/httpd/domains/domain.com.*

John
 
Many thanks John

exim was 4755 and owned by root.

However, root was not in the trusted user list. (Very strange)

Now it all works.

Thanks John for making me look at the trusted users list.
 
Back
Top