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 = "[email protected]";
$from = "[email protected]";
$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 -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]