''FEATURE(masquerade_entire_domain)'' '''


Masquerade all hosts under a domain V8.8 and above

Ordinarily, masquerading transforms any host from a list of hosts in the class $=w ($=w) into the host defined by MASQUERADE_AS. If domains are also masqueraded with MASQUERADE_DOMAIN, they too are transformed. For example, consider these declarations:


The first line causes any host part of an address contained in the class $=w to be transformed into our.domain. The second line transforms the domain part of her.domain into our.domain.

The key point here is that the domain part her.domain will be transformed, whereas hosts under that domain will not be transformed:

george@her.domain     becomes     george@our.domain
george@host.her.domain      remains     george@our.domain

If you wish MASQUERADE_DOMAIN to transform all the hosts under the declared domain, you can use the masquerade_entire_domain feature:


This feature extends masquerading of her.domain to include all the hosts under that domain:

george@her.domain     becomes     george@our.domain
george@host.her.domain      becomes     george@our.domain
george@host.sub.her.domain  becomes     george@our.domain

Note that you can masquerade only domains that are under your direct jurisdiction and control. Also note that domain masquerading is intended for actual domains. Virtual domains are better handled with the genericstable feature (FEATURE(genericstable)).

    Part I: Build and Install
    Chapter 2. Build and Install sendmail
    Chapter 4. Configure sendmail.cf with m4
    Part II: Administration
    Part III: The Configuration File