|OS type and version:||Ubuntu 16.04|
Is it possible to configure postfix to set the envelope From/Sender field to the virtualhost domain from which the email originates? In my current config, it sends from mail.myserver.com. I would like it to simply send from my-virtualhost-domain.com, (set dynamically).
The reason for this is that I would like to eliminate the “sent via mail.myserver.com” messages and also reduce false spam flags by setting SPF per virtualhost domain.