whm@arizona.edu (Bill Mitchell) (05/08/87)
Once again I found myself fooling with sendmail and as usual, I couldn't locate my assorted sheets of notes about what debugging flags do what. I decided to bite the bullet and go through and make notes about what all the flags do. It turned out to only take a couple of hours and the results were fairly reasonable, so I thought I'd pass this information along, for what it's worth. I don't think I overlooked any of the debug operations, but accidents will happen. Note that I didn't follow the logic back far enough to note the conditions when a particular debugging action would be executed. For example, -d0.15 prints the configuration table only if the configuration file is read. Here's the list. --------------- 0 -- main.c, recipient.c, util.c 0,1 -- don't fork in daemon mode, permit direct mailings to files, programs, and :includes:'s. 0,4 -- print names for this host 0,15 -- print configuration table 0,44 -- printav() -- prints addresses of elements 1 -- main.c, envelope.c 1,1 -- main() -- prints From person 2 -- main.c 2,1 -- finis() -- print exit status and envelope flags 5 -- clock.c 5,4 -- print calls to tick 5,5 -- print set/clrevent args 5,6 -- prints event queue on each tick 6 -- savemail.c 6,1 -- print savemail() error mode and return-to-sender information 6,5 -- trace states in savemail() state machine 8 -- domain.c 8,1 -- print various information regarding resolver operations 10,11,13 -- deliver.c 10,1 -- print various address information 11,1 -- print openmailer() args 13,1 -- sendall() -- print all addresses being sent to 13,3 -- sendall() -- prints each addr in loop looking for failures 13,4 -- sendall() -- follows above, printing who gets the error 15,16 -- daemon.c 15,1 -- print port and socket numbers in getrequests() 15,2 -- getrequests -- note forking/returning 15,15 -- activate network debugging on daemon socket 16,1 -- makeconnection() -- print host, addr, socket 16,15 -- print network debugging on daemon socket 18 -- usersmtp.c 18,1 -- note openmailer failure, note entry to reply, print smtpmessage() args 20 -- parseaddr.c 20,1 -- print parseaddr() arg and result 21 -- parseaddr.c 21,2 -- print rewrite() arg and result 21,3 -- note ruleset subroutine call 21,4 -- rewritten as ... 21,10 -- note rule failure 21,12 -- note rule attempt and success 21,15 -- print replacement string in hex chars (?) 21,35 -- print elements in pattern and subject 25 -- recipient.c 25,1 -- print sendto() arguments 26,1 -- print recipient in recipient() and duplicate suppression 27 -- alias.c 27,1 -- print arg to alias(), print info about alias, note failure to open alias file, print arg to forward() 30 -- collect.c 30,1 -- note EOH 30,2 -- print eatfrom arg 30,3 -- note addition of Apparently-To 31,32,33,14 -- headers.c 31,6 -- print chompheader argument 32,1 -- print collected header 33,1 -- print crackaddr arg and return value 14,2 -- print headers being commaized(?) 35 -- macro.c 35,9 -- print define() args 35,24 -- print expand() arg and return value 36 -- stab.c 36,5 -- print stab args, sym found/not found, entered 36,9 -- print hfunc value 37 -- readcf.c 37,1 -- print info re option setting/values 40,41,7,51 -- queue.c 40,1 -- note queue insertion and print queue contents 40,4 -- show queue file contents 41,2 -- note open failure on cf file. 7,1 -- print info on envelope assigned to queue file 7,2 -- print selected queue file name 51,4 -- don't unlink x file 45 -- envelope.c 45,1 -- print setsender argument 50 -- envelope.c 50,1 -- print dropenvelope argument 52 -- main.c 52,1 -- print i/o fd's for tty disconnection 52,5 -- don't disconnect --------------- Bill Mitchell whm@arizona.edu {allegra,cmcl2,ihnp4,noao}!arizona!whm