title: email piping works, but it still returns an error
body: <p>I am trying to pipe an email to a php script, in order to process the email automatically.<br>
  I know I got the piping to work, because I receive an email send to me from the php script, but I also receive an error message saying:</p>
  
  <pre><code>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 |/usr/local/bin/php -q /home/myUserName/domains/myDomain.nl/public_html/api/pipe.php
  generated by forwarder@myDomain.nl
  </code></pre>
  
  <p>Does anybody have an idea what could be causing this problem?<br>
  Because I obviously don't want the sender of the message to get an error message returned, especially if the piping works.</p>
  
  <p>EDIT:</p>
  
  <p>This might be information you'd like to know as well...<br>
  My webhost is using DirectAdmin.<br>
  I am not running the server myself, so I am unable to edit any config files.</p>
  
  <p>EDIT 2:</p>
  
  <p>php file:</p>
  
  <pre><code>#!/usr/local/bin/php -q
  &lt;?php
  
      // read from stdin
      $fd = fopen("php://stdin", "r");
      $email = "";
      while(!feof($fd))
      {
          $email .= fread($fd, 1024);
      }
      fclose($fd);
  
      mail('my@email.nl', 'From my email pipe!', $email);
  ?&gt;
  </code></pre>