I can't seem to get this one to work and it is boggling my brain... What I'm trying to so is as the subject says, trying to pipe and email to a php script that is designed to take the email information and process it.
In the email aliases field I have selected the email alias "support" and configured the "Feed to program" setting with "/home/domain.com/public_html/test.php". To test I have created a test.php file that emails me once the script has been executed. So I send an email to email@example.com and get this in the logs:
"temporary failure. Command output: local: fatal: execvp /home/domain.com/public_html/test.php: Permission denied"
I've tried all manor of permissions variations, but nothing...
When I do a "php -q /home/domain.com/public_html/test.php" , the test script I get the script output and an email in my inbox, so I know the script is working.
Somehow I think php needs to be piped to and the pipe data passed onto the script. Everywhere I look there is no mention of this.
Any help would be much appreciated.