There are two tables of useful information in this chapter:
Table 16-1 lists all the -d
categories in numerical order.
Table 16-2 lists only those -d
catagories that are considered useful to the day-to-day management of
sendmail.
In Table 16-1, we list all the debugging
switches by category,
regardless of their usefulness to the administrator, and give a brief
description of each. If you need more detail about those we do not
document, we suggest you use sendmail/TRACEFLAGS
as a guide to the appropriate source code files.
Table 16-1. Debugging switches by category
Category |
Description |
---|---|
-d0 |
Display system configuration information |
-d1 |
Show sender information |
-d2 |
Trace sendmail’s exit information |
-d3 |
Print the load average |
-d4 |
Trace disk-space calculations |
-d5 |
Trace timed events |
-d6 |
Show failed mail |
-d7 |
Trace the queue filename |
-d8 |
Trace hostname canonicalization |
-d9 |
Trace |
-d10 |
Trace recipient delivery |
-d11 |
Trace delivery generally |
-d12 |
Trace mapping of relative host |
-d13 |
Trace the envelope and envelope splitting |
-d14 |
Show header field commas |
-d15 |
Trace incoming connections |
-d16 |
Trace outgoing connections |
-d17 |
Trace MX record lookups |
-d18 |
Trace SMTP replies |
-d19 |
Show ESMTP MAIL and RCPT parameters |
-d20 |
Show delivery agent selection |
-d21 |
Trace rules and rule sets |
-d22 |
Show address tokenization |
-d23 |
Unused |
-d24 |
Trace assembly of address tokens |
-d25 |
Trace the send-to list |
-d26 |
Trace recipient queueing |
-d27 |
Trace aliasing, ~/.forward file handling, and controlling user |
-d28 |
Trace the User Database |
-d29 |
Trace |
-d30 |
Trace header processing |
-d31 |
Trace header validation |
-d32 |
Show collected headers |
-d33 |
Watch crackaddr( ) |
-d34 |
Trace header generation and skipping |
-d35 |
Trace macro definition and expansion |
-d36 |
Trace the internal symbol table |
-d37 |
Trace setting of options and classes |
-d38 |
Trace database processing |
-d39 |
Display digit database-mapping |
-d40 |
Trace processing of the queue |
-d41 |
Trace queue ordering |
-d42 |
Trace connection caching |
-d43 |
Trace MIME conversions |
-d44 |
Trace safefile( ) |
-d45 |
Trace envelope sender |
-d46 |
Show xf file’s descriptors |
-d47 |
Trace effective/real user/group IDs |
-d48 |
Trace calls to the |
-d49 |
Trace checkcompat( ) |
-d50 |
Trace envelope dropping |
-d51 |
Trace unlocking and prevent unlink of xf file |
-d52 |
Trace controlling TTY |
-d53 |
Trace xclose( ) |
-d54 |
Show error return and output message |
-d55 |
Trace file locking |
-d56 |
Trace persistent host status |
-d57 |
Monitor vsnprintf( ) overflows |
-d58 |
Trace buffered filesystem I/O |
-d59 |
Trace XLA from contrib |
-d60 |
Trace database-map lookups inside rewrite( ) |
-d61 |
Trace gethostbyname( ) |
-d62 |
Log file descriptors before and after all deliveries |
-d63 |
Trace queue-processing forks |
-d64 |
Trace MILTER interactions |
-d65 |
Trace nonallowed user actions |
-d66 |
Unused |
-d67 |
Unused |
-d68 |
Unused |
-d69 |
Unused |
-d70 |
Trace queue quarantining (V8.13 and above) |
-d71 |
Unused |
-d72 |
Unused |
-d73 |
Unused |
-d74 |
Unused |
-d75 |
Unused |
-d76 |
Unused |
-d77 |
Unused |
-d78 |
Unused |
-d79 |
Unused |
-d80 |
Trace |
-d81 |
Trace > option for remote mode (Sun version) |
-d82 |
Unused |
-d83 |
Unused |
-d84 |
Unused |
-d85 |
Unused |
-d86 |
Unused |
-d87 |
Unused |
-d88 |
Unused |
-d89 |
Unused |
-d90 |
Unused |
-d91 |
Log caching and uncaching connections |
-d92 |
Unused |
-d93 |
Unused |
-d94 |
Force RSET failure |
-d95 |
Trace |
-d96 |
Allow |
-d97 |
Trace setting of auto mode for I/O |
-d98 |
Trace timers (commented out in the code) |
-d99 |
Prevent backgrounding the daemon |
In Table 16-2, we provide a detailed description of debugging switches (by category) that we consider useful for the system administrator who is trying to solve an email problem. Categories that are only of interest to sendmail developers are omitted. If you have an unusual problem and need to use a category not listed here, you have to examine the source to find that category.
Table 16-2. Useful debugging switches by category
Category |
sendmail text reference |
Description |
---|---|---|
-d0.1 |
16.6.1[3ed] |
Print version, compilation, and interface information |
-d0.4 |
16.6.2[3ed] |
Our name and aliases |
-d0.10 |
16.6.3[3ed] |
Operating system defines |
-d0.12 |
16.6.4[3ed] |
Print library (libsm) defines |
-d0.13 |
16.6.5[3ed] |
Print |
-d0.15 |
16.6.6[3ed] |
Dump delivery agents |
-d0.20 |
16.6.7[3ed] |
Print network address of each interface |
-d2.1 |
16.6.8[3ed] |
End with |
-d2.9 |
16.6.9[3ed] |
Show file descriptors with |
-d4.80 |
16.6.10[3ed] |
Trace |
-d6.1 |
16.6.11[3ed] |
Show failed mail |
-d8.1 |
16.6.12[3ed] |
DNS name resolution |
-d8.2 |
16.6.13[3ed] |
Call to getcanonname
|
-d8.3 |
16.6.14[3ed] |
Trace dropped local hostnames |
-d8.5 |
16.6.15[3ed] |
Hostname being tried in getcanonname(3) |
-d8.7 |
16.6.16[3ed] |
Yes/no response to -d8.5 |
-d8.8 |
16.6.17[3ed] |
Resolver debugging |
-d11.1 |
16.6.18[3ed] |
Trace delivery |
-d11.2 |
16.6.19[3ed] |
Show the user-id running during delivery |
-d12.1 |
16.6.20[3ed] |
Show mapping of relative host |
-d13.1 |
16.6.21[3ed] |
Show delivery |
-d20.1 |
16.6.22[3ed] |
Show resolving delivery agent: |
-d21.1 |
16.6.23[3ed] |
Trace rewriting rules |
-d21.2 |
16.6.24[3ed] |
Trace |
-d22.1 |
16.6.25[3ed] |
Trace tokenizing an address: |
-d22.11 |
16.6.26[3ed] |
Show address before prescan |
-d22.12 |
16.6.27[3ed] |
Show address after prescan |
-d25.1 |
16.6.28[3ed] |
Trace “sendtolist” |
-d26.1 |
16.6.29[3ed] |
Trace recipient queueing |
-d27.1 |
16.6.30[3ed] |
Trace aliasing |
-d27.2 |
16.6.31[3ed] |
Include file, self-reference, error on home |
-d27.3 |
16.6.32[3ed] |
Forwarding path and alias wait |
-d27.4 |
16.6.33[3ed] |
Print not safe |
-d27.5 |
16.6.34[3ed] |
Trace aliasing with |
-d27.8 |
16.6.35[3ed] |
Show setting up an alias map |
-d27.9 |
16.6.36[3ed] |
Show user-id/group-id changes with |
-d28.1 |
16.6.37[3ed] |
Trace user database transactions |
-d29.1 |
16.6.38[3ed] |
Special rewrite of local recipient |
-d29.4 |
16.6.39[3ed] |
Trace fuzzy matching |
-d31.2 |
16.6.40[3ed] |
Trace processing of headers |
-d34.1 |
16.6.41[3ed] |
Watch header assembly for output |
-d34.11 |
16.6.42[3ed] |
Trace header generation and skipping |
-d35.9 |
16.6.43[3ed] |
Macro values defined |
-d37.1 |
16.6.44[3ed] |
Trace setting of options |
-d37.8 |
16.6.45[3ed] |
Trace adding of words to a class |
-d38.2 |
16.6.46[3ed] |
Show database-map opens and failures |
-d38.3 |
16.6.47[3ed] |
Show passes |
-d38.4 |
16.6.48[3ed] |
Show result of database-map open |
-d38.9 |
16.6.49[3ed] |
Trace database-map closings and appends |
-d38.10 |
16.6.50[3ed] |
Trace NIS search for |
-d38.12 |
16.6.51[3ed] |
Trace database-map stores |
-d38.19 |
16.6.52[3ed] |
Trace switched map finds |
-d38.20 |
16.6.53[3ed] |
Trace database-map lookups |
-d41.1 |
16.6.54[3ed] |
Trace queue ordering |
-d44.4 |
16.6.55[3ed] |
Trace |
-d44.5 |
16.6.56[3ed] |
Trace |
-d48.2 |
16.6.57[3ed] |
Trace calls to the |
-d49.1 |
16.6.58[3ed] |
Trace |
-d52.1 |
16.6.59[3ed] |
Show disconnect from controlling TTY |
-d52.100 |
16.6.60[3ed] |
Prevent disconnect from controlling tty |
-d60.1 |
16.6.61[3ed] |
Trace database-map lookups inside |
-d99.100 |
16.6.62[3ed] |
Prevent backgrounding the daemon |
3.142.196.27