Select Whom to /parse or /try with /tryflags
Before we cover the /parse
and /try
commands, we need to mention the
/tryflags
rule-testing command because it is used to select
the sender, recipient, headers, and envelope for the
/parse
and
/try
commands.
The /tryflags
command is used like this:
/tryflags h ← set headers /tryflags e ← set envelope /tryflags s ← set sender /tryflags r ← set recipient /tryflags er ← set envelope recipient
The arguments are single letters that can appear in uppercase or lowercase and in any order. Any letter other than those shown is silently ignored.
The default setting when sendmail
first starts to run in rule-testing mode is er
for envelope
recipient. Omitting the argument causes
sendmail to print the
following usage statement:
Usage: /tryflags [Hh|Ee][Ss|Rr]
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.