Hopefully someone can provide some advice on the problem I'm having. I've setup a forwarder to a php script and I just can't seem to get it to work.
So far I have firstname.lastname@example.org | | /home/mydomain/myscripts/processemail.php
Now if I send an email from email@example.com to firstname.lastname@example.org I get the following error message:
This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: pipe to |/home/mydomain/myscripts/processemail.php generated by email@example.com local delivery failed The following text was generated during the delivery attempt: ------ pipe to |/home/mydomain/myscripts/processemail.php generated by firstname.lastname@example.org ------ Status: 404 Not Found X-Powered-By: PHP/7.1.28 Content-type: text/html; charset=UTF-8 No input file specified.
processemail.php looks like this and has the permissions 755
#!/usr/bin/php <?php mail('email@example.com', 'Email Parser Test', 'THIS IS A TEST'); ?>
if I send an email to firstname.lastname@example.org from any other email address the email just disappears into a black hole.
Does anyone have any ideas what I'm doing wrong?
Yeah a client has looked into creating a script that will accept email responses and then database the the replies to the email.
I've already looked into the cpanel documentation for this and have set up the "advanced" forwarding but can't get the script to take the input from the piped email. Just keeps giving me the error the original post.