I'm finding that the larger and more complex my qmail setup becomes, the
more difficult it is for me to trace the path an address follows through
the qmail system. With sendmail/exim, there is the -bt command line option,
which tells us whether the address will be treated as local or remote, and
if remote, what MXs will be looked at, and if local, whether it will be
delivered to a maildir, mbox or pipe, without actually delivering a
message.

I realise that qmail is modular, and so there's no easy way to determine
what really happens. I was thinking of writing a small perl script to
"emulate" the decisions made by qmail-send, qmail-lspawn and qmail-rspawn,
and print the results to tell me where an address ends up. I'm particularly
interested in finding out what happens to a local address, ie. was it
looked up in users/cdb, or /etc/passwd, or did it end up in
~alias/.qmail-default, etc.

Has anyone already written such a tool, or can anyone give me any better
ideas on how I can proceed with this?

-- 
Anand

Reply via email to