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:
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)).