I know that there have been many reports on this subject, but I'm still stuck, it seems.
I installed cPanel so that all emails sent to support@mydomain.com will be picked up and processed using a PHP script.
Now, after a lot of battle, I was able to get it to basically redirect the email to another address, but it still bounces from the original email back to the sender, which seems strange to me. Here is the script I'm using:
<?php
$fd = fopen("php://stdin", "r");
$email = '';
while(!feof($fd))
{
$email .= fread($fd, 1024);
}
fclose($fd);
mail('reciever@mytest.com', 'test', $email);
?>
And I also tried to control the problem with output buffering and yes, before you ask that the script is chmod'd for 755 ...
Any help would really be appreciated as it starts to annoy me.