Name
NoRecipientAction
Synopsis
The header portion of a mail message must contain at least one
recipient header. Problems can arise when an MUA produces a message
with no recipients or when the only recipients are listed in a
Bcc: header line. In the past,
sendmail inserted an
Apparently-To: header (Apparently-To:) into any message that lacked header
recipients. The addresses in the Apparently-To:
were gleaned from the envelope.
Beginning with V8.7 sendmail, it is possible to
choose how messages without recipients will be handled. This is done
with the NoRecipientAction option, which is used
like this:
O NoRecipientAction=what ← configuration file (V8.7 and later) -ONoRecipientAction=what ← command line (V8.7 and later) define(`confNO_RCPT_ACTION',what)← mc configuration (V8.7 and later)
The argument what is of type
string and must be selected from those shown in
Table 24-22. If the what is
omitted or if it is other than one of the possibilities shown, the
following error is printed, and the option is ignored:
Invalid NoRecipientAction: bad whatIf the entire option is omitted, the default becomes
none. The default for the mc
technique is to omit this option.
The what is case-insensitive (meaning that
none and nOnE are both
identical).
|
What |
§ |
Meaning |
|
add-apparently-to |
Add an | |
|
add-bcc |
Add an empty | |
|
add-to |
Add a | |
|
add-to-undisclosed ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access