All rights reserved.
536 | Chapter 15: Debug sendmail with -d
The file specified with -D must live in a directory that is writable by the user running
sendmail. If the file does not exist, it will be created. If the file already exists, it
will be silently appended to.
Extra care must be exercised when using the -D command-line switchas root because
the target file will be appended to, even if it is a symbolic link to an important file.
For example, when /tmp/foo is a non-root-owned symbolic link that points to /etc/
passwd, the following command line, when run by root, will silently append debugging
information to the /etc/passwd file:
# /usr/sbin/sendmail -D /tmp/foo -d0.1 -bt < /dev/null
15.5 Table of All -d Categories
Because debugging is so closely tied to the internals of sendmail, we no longer cover
all debugging switches in detail. In the reference section at the end of this chapter,
we cover in detail only those debugging switches that are useful to the administrator.
In Table 15-3, we list all the debugging switches by category, regardless of their
usefulness, 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 15-3. Debugging switches by category
Category Description
-d0 Display system configuration information.
Pages:
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954