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 email@example.com | | /home/mydomain/myscripts/processemail.php
Now if I send an email from firstname.lastname@example.org to email@example.com 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 firstname.lastname@example.org local delivery failed The following text was generated during the delivery attempt: ------ pipe to |/home/mydomain/myscripts/processemail.php generated by email@example.com ------ 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('firstname.lastname@example.org', 'Email Parser Test', 'THIS IS A TEST'); ?>
if I send an email to email@example.com 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.
Did you solve the problem? I'm facing the same issue and I've already spent 2 days tryingo to figure out what is wrong.
Hi Leonardo @LeonardoDuarte<,
Sorry I never did find a solution. No matter what I tried I just
couldn't get the script to trigger.