[comp.mail.sendmail] debugging rewriting rules on an intermediate hop.

raymond@uvm-gen.UUCP (The Rolling Wheel) (04/09/90)

> I'm having problems finding this, because I can't seem to make
> the -bt mode of sendmail exhibit this behavior, and I can't 
> just do 'echo "testing" | sendmail -v -d0-99.99 -tlws@wang.com'
> because the from address is correct then.  What I need to be able
> to do, I think, is watch the output from sendmail -d.... while
> it is running in daemon mode.  Is this true, or is there some
> other way I can debug this?

I use "sendmail -bv -d21.? machine\!user", where ? is 99 for everything,
and 2 for just a little.  Levels that I know of are 2,34,99.  I'm sure
there are more, but that is all I have looked at.  The "bv" says just
verify, and does expansions for all addresses (return, recipient,sender) --
at least I think those are the ones that are there. (There are three.)  

One note.  On sender addresses, the sending machine and domain are tacked on
but not shown in the expansion of the rewriting rules.  I haven't looked into
this very much, so I don't know if it is actually in the rules, or in the
sendmail code.

Another way to do it is: "sendmail -bm -odi -d21.? machine\!user".  This says
actually mail it, but do it interactively, thus not forking off a child.
This will give even more info than the "bv" model, and it does show the
sending_machine.domain being tacked on.

We are running sendmail 5.61.

Hope this helps.

Tim Raymond
raymond@uvm.edu
uvm-gen!raymond