The mail.local Command-Line Switches

The mail.local program has a small set of command-line switches that modify its behavior. They are summarized in Table 10-4, and detailed in the sections that follow.

Table 10-4. The mail.local program’s switches

Switch

§

Description

−7

−7 on page 361

Don’t advertise 8BITMIME in LMTP.

-b

-b on page 362

Mailbox over quota error is permanent, not temporary.

-d

-d on page 362

Allow old-style -d execution.

-D

-D on page 362

Specify mailbox database type.

-f

-f on page 363

Specify the envelope sender.

-h

-h on page 363

Store mail in user’s home directory.

-l

-l (lowercase L) on page 364

Turn on LMTP mode.

-r

-r on page 364

Specify the envelope sender (deprecated).

If you want to modify any of the command-line switches given to mail.local by sendmail, you can do so with the LOCAL_MAILER_ARGS mc configuration macro, which must follow the FEATURE(local_lmtp). For example:

FEATURE(`local_lmtp')
define(`LOCAL_MAILER_ARGS', `mail.local −l −7')

Here, we have added a −7 to the default -l switch.

Not all switches are suitable for all installations. Review the following descriptions to decide which ones you need.

−7

Don’t advertise 8BITMIME in LMTP mail.local command-line switch

Ordinarily, when mail is delivered using LMTP, the LMTP conversation begins like this:

220 yourhost LMTP ready                 ← mail.local sends
>>> LHLO yourhost.your.domain           ← sendmail sends
250-yourhost                            ← mail.local sends
250-8BITMIME                            ← note 250-ENHANCEDSTATUSCODES 250 PIPELINING ...

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.