FEATURE(local_lmtp)

Deliver locally with LMTP and mail.local V8.9 and later

The LMTP can be used to transfer mail from sendmail to the program that delivers mail to the local user. Historically, that has been a program, such as /bin/mail, that simply gathered a message on its standard input and wrote that message to the end of the file that the user read. Beginning with V8.9, sendmail can speak the special LMTP language to local delivery programs. The mail.local program, supplied in source form with the sendmail open source distribution, is one such program.

Operating systems that can use that program for local delivery are already set up correctly to use it. Those that are not already set up to use it can use this feature to override the settings in their OSTYPE (OSTYPE( ) m4 macro on page 590) defaults.

Building and using mail.local is described in The mail.local Delivery Agent on page 359. Once it is built and installed, you can use this FEATURE(local_lmtp) to enable use of that program. One way to do that looks like this:

FEATURE(`local_lmtp')
MAILER(`local')

Note that this feature must be declared before you define the local delivery agent. This feature defines both the use of mail.local and the place where that program can be found. By default, that location is /usr/libexec/mail.local. If you installed mail.local in a different place or under a different name, you can specify that location like this:

FEATURE(`local_lmtp', `/usr/sbin/mail.local')
MAILER(`local')

This feature also ...

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.