Prev | Current Page 438 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

1 on page 530) into a file for later examination. It is used like this, where file is the
name of an existing or new file:
-D file
The -D command-line switch(if used) must precede all -d switches on the same command
line. Otherwise, the following error will print and all debugging output will be printed to
the standard output (possibly causing you to miss seeing the error):
-D file must be before -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 switchwh en sendmail is run
as root because the target file will be appended to, even if it is a symbolic link to an
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
240 | Chapter 6: The sendmail Command Line
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
6.7.20 -d
Enter debugging mode All versions
The -d command-line switchcauses sendmail to run in debugging mode. This switch is
described in gory detail in Chapter 15 on page 530.


Pages:
426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
Wczasy nad morzem Battlefield 3 wygraj peb opony michelin bad credit loans instant decision no brokers Dermatologia estetyczna Kraków