''FEATURE(local_no_masquerade)'' '''


Don't masquerade local mail V8.12 and above

Ordinarily, the MASQUERADE_AS mc configuration macro (Section 4.4.2) 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, the local_no_masquerade feature is available. You declare it like this:


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

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

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

    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