Appendix B. IRIX sendmail Reference

This appendix provides information about trace flags for debugging the sendmail command. For information about sendmail command syntax and usage, see the sendmail(8) man page.

Specifying the sendmail Debugging Flags

Several debugging flags are built into sendmail. Each flag includes a number and a level. The number identifies the debugging flag. The level, which defaults to 1, dictates how much information prints. A low level causes minimal information to print; a high level causes more comprehensive information to print. In general, levels greater than 9 cause so much information to print that it is of limited value. Debugging flags use the following syntax:

-d debug-list 

A debug list includes the flag number and the flag level, as shown in the following examples:

  • Set flag 13 to level 1.

    -d13 

  • Set flag 13 to level 3.

    -d13.3 

  • Set flags 5 though 18 to level 1.

    -d5-18 

  • Set flags 5 through 18 to level 4.

    -d5-18.4 

Many debugging flags are of little use to the average sendmail user. Some are occasionally useful for helping to track down obscure problems. See the sendmail manpage for a list of common debugging flags.

sendmail Debugging Traceflags

The following list includes the sendmail debugging flags..

#       $Id: TRACEFLAGS,v 8.37 2002/05/24 23:37:32 ca Exp $
0, 4    main.c          main    canonical name, UUCP node name, a.k.a.s
0, 15   main.c          main    print configuration
0, 44   util.c          printav print address of each string
0, 101  main.c          main    print version and exit
1       main.c          main    print from person
2       main.c          finis
3       conf.c          getla, shouldqueue
4       conf.c          enoughspace
5       clock.c         setevent, clrevent, tick
6       savemail.c      savemail, returntosender
7       queue.c         queuename
8       domain.c        getmxrr, getcanonname
9       daemon.c        getauthinfo     IDENT protocol
9       daemon.c        maphostname
10      deliver.c       deliver
11      deliver.c       openmailer, mailfile
12      parseaddr.c     remotename
13      deliver.c       sendall, sendenvelope
14      headers.c       commaize
15      daemon.c        getrequests
16      daemon.c        makeconnection
17      deliver.c       hostsignature
18      usersmtp.c      reply, smtpmessage, smtpinit smtpmailfrom, smtpdata
19      srvrsmtp.c      smtp
20      parseaddr.c     parseaddr
21      parseaddr.c     rewrite
22      parseaddr.c     prescan
24      parseaddr.c     buildaddr, allocaddr
25      recipient.c     sendtolist
26      recipient.c     recipient
27      alias.c         alias
27      alias.c         readaliases
27      alias.c         forward
27      recipient.c     include
28      udb.c           udbexpand, udbsender
29      parseaddr.c     maplocaluser
29      recipient.c     recipient (local users), finduser
30      collect.c       collect
30      collect.c       eatfrom
31      headers.c       chompheader
32      headers.c       eatheader
33      headers.c       crackaddr
34      headers.c       putheader
35      macro.c         expand, define
36      stab.c          stab
37      readcf.c        (many)
38      map.c           initmaps, setupmaps (bogus map)
39      map.c           map_rewrite
40      queue.c         queueup, orderq, dowork
41      queue.c         orderq
42      mci.c           mci_get
43      mime.c          mime8to7
44      recipient.c     writable
44      safefile.c      safefile, safedirpath, filechanged
45      envelope.c      setsender
46      envelope.c      openxscript
47      main.c          drop_privileges
48      parseaddr.c     rscheck
48      conf.c          validate_connection
49      conf.c          checkcompat
50      envelope.c      dropenvelope
51      queue.c         unlockqueue
52      main.c          disconnect
53      util.c          xfclose
54      err.c           putoutmsg
55      conf.c          lockfile
56      mci.c           persistent host status
57      util.c          snprintf
58      bf.c            bf* routines
60      map.c
61      conf.c          sm_gethostbyname
62      multiple        file descriptor checking
63      queue.c         runqueue process watching
64      multiple        Milter
65      main.c          permission checks
66      srvrsmtp.c      conformance checks
69      queue.c         scheduling
#if _FFR_QUARANTINE
70      queue.c         quarantining
#endif /* _FFR_QUARANTINE */
80                      content length
81                      sun remote mode
91      mci.c           syslogging of MCI cache information
94,>99  srvrsmtp.c      cause commands to fail (for protocol testing)
95      srvrsmtp.c      AUTH
95      usersmtp.c      AUTH
96      tls.c           Activate SSL_CTX_set_info_callback()
97      srvrsmtp.c      Trace automode settings for I/O
98      *               timers
99      main.c          avoid backgrounding (no printed output)