I'm setting up a postfix mailserver and I've run acrossed "Address masquerading".
The description from the documentation says
Address masquerading is a method to hide hosts inside a domain behind their mail gateway, and to make it appear as if the mail comes from the gateway itself, instead of from individual machines.
What does this actually mean and what does the mail server do with masquerading?
SMTP address masquerading is the replacement of the host portion of the "From" address on an email with another address. Imagine you have, say, the following SMTP servers in your organization:
By default, most SMTP servers would show mail sourcing from these machines as being from "[email protected]", "@fizz.example.com", etc.
You'd like emails sourced by the SMTP servers on each of those machines to appear "From" the "@example.com" domain. You could configure address masquerading on each of those server computers to make them source mail as "@example.com". Postfix also supports doing this on a single "gateway" SMTP server (i.e. a server that all the other machines relay SMTP thru) such that it does the rewriting in a central place.
It's called masquerading because you have a server, say
masq.sample.com
, that is talking to the world as if it issample.com
, for example. Or the reverse, a mail server onmyhome.com
that accepts EMail for several domainsmyhome.com
andmyprivatedomain.com
, for example, in each case saying it is the server that the EMail is arriving for.