Ok. Good, i ve to test it by PHP codes.
i ll try it...
Very thanks.
On 17/11/2023 10:50, postfix--- via Postfix-users wrote:
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
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org