I ve a webserver allowed to send mails message (with PHP) to a postfix relay, 
which send it to recipients.

I'd want that the return-path be the same that the From sender.


You do this in PHP, PHP creates the email that postfix relays. Its done with 
the -f command line arg.

        $to = "u...@example.com";
        $from = "f...@example.com";
        $subject = "Email Subject";
        $headers = ['From' => $from];
        $cmdLineParams = "-f $from";
        $body  = "Body text line one.\nAnd line two.\n";
        mail($to, $subject, $body, $headers, $cmdLineParams);
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to