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]