FEATURE(local_no_masquerade)

Don’t masquerade local mail V8.12 and later

Ordinarily, the MASQUERADE_AS mc configuration macro (MASQUERADE_AS mc Macro on page 600) causes header, envelope, sender, and recipient addresses to appear as though they were sent from the masquerade host. Sometimes it is desirable to perform masquerading only when mail is sent offsite, and not to masquerade when mail is sent from one user to another locally.

For just such situations, FEATURE(local_no_masquerade) is available. You declare it like this:

FEATURE(`local_no_masquerade')

You must make this declaration before you declare the local delivery agent. If you mistakenly declare local first, like this:

MAILER(`local')                     ← wrong, local must not be first
FEATURE(`local_no_masquerade')

you will see the following error, and your configuration file will be incomplete:

*** MAILER(`local') must appear after FEATURE(`local_no_masquerade')

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.