This question already has an answer here:
Im setting up postfix SMTP relay, that will be placed right after Exchange server.
Details: 1) postfix server name mail.server.com 2) we have several domains: a-domain.com, b-domain.com and etc..
I need to rewrite somehow emails headers. So recipient will not receive email like:
Received: from mail.server.com ([XX.XX.XX.X])
But will receive it from mail.a-domain.com ([XX.XX.XX.X]) if sender is email@example.com OR from mail.b-domain.com ([XX.XX.XX.X]) if sender is firstname.lastname@example.org
is this possible anyhow?