-d21.1

Trace rewriting rules Debug command-line switch

The -d21.1 (a.k.a. -d21) debugging switch causes sendmail to print each step that it takes in rewriting addresses with rules. The -d21.1 debugging switch causes output to be produced that is identical to the output produced by the -bt command-line switch (Overview on page 299):

rewrite: rule set name or number      input: address
rewrite: rule set name or number    returns: address

First, the address (workspace) is displayed for the rule set whose name or number is shown before rewriting, and second, the address is shown after rewriting.

Because rules are recursive by nature, they can sometimes cause infinite loops (Rewrite Once Prefix: $: on page 662). When a rule loops more than 100 times, the following error is issued:

Infinite loop in rule set name or number, rule rule number

If the -d21.1 debugging switch was also invoked, the preceding error is followed by:

workspace: state of rewritten address, so far, is shown here

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.