Masquerading

Masquerading is the process of transforming the local hostname in addresses into that of another domain. This results in the mail message appearing to come from that other domain rather than from the local host. Masquerading is most often used in domains where email is addressed to the domain rather than to individual hosts inside the domain.

Masquerading usually rewrites header-sender addresses. Some mc features allow you also to rewrite envelope addresses and recipient headers. The complete list of all definitions and features that affect masquerading is shown in Table 17-3.

Table 17-3. Definitions and features affecting masquerading

What

§

Version

Masquerade

EXPOSED_USER

EXPOSED_USER mc Macro on page 599

V8.6 and later

All but these hosts

EXPOSED_USER_FILE

EXPOSED_USER_FILE mc macro on page 600

V8.12 and later

All but these

FEATURE(allmasquerade)

FEATURE(allmasquerade) on page 615

V8.2 and later

The recipient too

FEATURE(domaintable)

FEATURE(domaintable) on page 621

V8.2 and later

Rewrite old domain as equivalent to new domain

FEATURE(generics_entire_domain)

FEATURE(generics_entire_domain) on page 622

V8.10 and later

Transform sender addresses

FEATURE(genericstable)

FEATURE(genericstable) on page 622

V8.8 and later

Transform sender addresses

FEATURE(limited_masquerade)

FEATURE(limited_masquerade) on page 625

V8.8 and later

Only MASQUERADE_DOMAIN hosts

FEATURE(local_no_masquerade)

FEATURE(local_no_masquerade) on page 626

V8.12 and later ...

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.