This may be a ridiculous question, but it's been bothering me for a while. I have a mail forwarder piped to a PHP script, it receives perfectly, however I have the following error mailed back to me instantly:
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/[webroot]/public_html/external/mobile/email.php
    generated by mobile@[mydomain]
The following text was generated during the delivery attempt:
X-Powered-By: PHP/5.2.13 
Content-type: text/html
Gördüğünüz gibi, Exim başlık tepkiye ben komut bir hata olduğunu düşünüyor. Komut php://stdin adlı mükemmel e-posta alacaksınız ama Exim hızlı yanıtlama hata ile.
Artı,
- O yüzden Apache htaccess, konsoldan değil, çalışan ya da Apache büyük olasılıkla bir şey yapacağını yapılandırma oluyor.
 - Ben aynı sorunu ile herhangi bir çözüm, ya da kimseyi bulamıyorum.
 
Yani benim soru: Ben bu iki başlığa kurtulmak nasıl?
Thanks, ~Jonny
Düzenleme, Kaynak:
    #!/usr/bin/php
<?php
    $fd = fopen("php://stdin", "r");
        $email = "";
        while (!feof($fd)) {
         $email .= fread($fd, 1024);
        }
        fclose($fd);
        $dat = fopen(dirname(__FILE__).'/test.txt', 'w');
        fwrite($dat, $email);
        fclose($dat);