MASQUERADE_DOMAIN mc Macro
Ordinarily, MASQUERADE_AS enables hosts in the local
domains (as defined in the $=w
class, $=w on page 876) to be
transformed into the masquerading host. It also
masquerades a list of additional hosts, but that
list is normally empty.
If you wish to masquerade a domain other than your local one, you can use the MASQUERADE_DOMAIN mc macro:
MASQUERADE_DOMAIN(`other.domain')
Essentially, all that MASQUERADE_DOMAIN does is assign its argument to an internal sendmail class, so you can list multiple domains in a single MASQUERADE_DOMAIN statement:
MASQUERADE_DOMAIN(`domain1 domain2 domain3')
Note that MASQUERADE_DOMAIN masquerades only the
domain and not any hosts under
that domain. If you wish to masquerade all hosts
under a domain (including the domain itself), see
the masquerade_entire_domain
feature (FEATURE(masquerade_entire_domain) on page 631).
Also note that MASQUERADE_DOMAIN has special meaning
for the limited_masquerade
feature (FEATURE(limited_masquerade) on page 625). When that feature is declared, only
the domains listed under MASQUERADE_DOMAIN will be
masqueraded.
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.