System is CentOS 5.4 using dovecot/postfix on same host used for apache/php.
Here's the error in maillog:
local: fatal: execvp /var/www/html/support/api/pipe.php: Permission denied
postfix/local: 1EDA643803F: to=, relay=local, delay=0.05, delays=0.02/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /var/www/html/support/api/pipe.php: Permission denied )
pipe.php is 644 and chmod to 777 results in same error. Disabling selinux changes nothing (and isn't an option really).
EDIT
Went back and checked if selinux is causing the problem. Setting it to permissive (or disabling selinux) does fix the problem. Since I can't leave selinux in either state, I'll have to find out what policy needs to be altered to allow piping to work.
SOLVED
Ran the following:
audit2allow -M mypolicy < /var/log/audit/audit.log
That generates twp files, mypolicy.te and mypolicy.pp
Check the mypolicy.te file to verify it won't open up any holes. If it's okay, then run the following:
semodule -i mypolicy.pp