${MTAHost}

Host for the msp feature V8.12 and later

The FEATURE(msp) can take an optional argument. That argument determines whether the mail collected by the MSP invocation of sendmail should be delivered to the local machine or to another machine:

FEATURE(`msp')                  ← deliver to localhost
FEATURE(`msp', `otherhost')     ← deliver to otherhost

If this optional argument is given to FEATURE(msp), that argument is assigned to the ${MTAHost} macro. If this optional argument is absent, the value assigned to ${MTAHost} is [localhost]. The square brackets around localhost suppress the lookup of MX records.

All messages will be forwarded to the ${MTAHost}. If you wish to suppress MX lookups for the ${MTAHost} host, surround the hostname with square brackets when you declare it with FEATURE(msp):

FEATURE(`msp', `[otherhost]')

See Install sendmail on page 60 for a description of how to install an MSP server, and FEATURE(msp) on page 633 for a description of FEATURE(msp).

You should never use this ${MTAHost} macro directly, because it might change in a future release of sendmail. Use FEATURE(msp) instead.

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.