Syntax of the Command-Line Macro’s Text
When a sendmail macro is declared
on the command line, its
text
value is taken
from the command line as is:
-oMXtext ← obsolete -MXtext
Unlike sendmail macros declared in the configuration file (which we describe next), command-line declarations do not handle escape characters.
The whole suite of special operators available to your
shell can be used to generate an appropriate
text
value. For
example, the following assigns the name of your
Usenet news server to the macro N
:
-MN$NNTPSERVER
The $NNTPSERVER
(if
defined) holds the shell’s environment variable that
contains the address of the news server as its
value.
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.