title: Postfix Ignores PHP mail() function
body: <p>I'm successfully sending mail using PHP using the mail() function but the sending is showing up as the server address and not what I have configured in the script. Postfix is installed on the apache server.  On <a href="https://serverfault.com/questions/258035/why-postfix-doesnt-follow-from-header-from-php-mail">ServerFault answer</a> I read to use the -f and -r flags but that does not work either like this:</p>
  
  <pre><code>mail($to, $subject, $message, $headers,'From: ' . $fromname . ' &lt;'.$from.'&gt;', "-f $from -r mybounceemail@example.com");
  </code></pre>
  
  <p>The best I've been able to do is change the Postfix myorigin which is the local machine name hostname to the parent domain of the machine name.</p>
  
  <p>This leads me to believe Postfix is ignoring or stripping the From: element?</p>