A server has multiple domains, each having its respective return-path and from (identical for each domain): confirmation@domain1.tld and confirmation@domain2.tld
While this detailed answer provides useful paths for different versions of postfix, I wonder if there is not a simpler solution, as each domain happens to point to the same mail server.
Can it not be devised to take the domain of the sender and use mail.domain.tld for myhostname.