1) The function of bouncing messages doesn't fit solely into the mail
transport layer.  It should be implemented as a separate program.
Open the bounce information on one fd, the bouncing email message on
another, a pipe to qmail-inject on stdout, and search the path for
qmail-bounce, an external program which formats the bounce message.

2) If qmail-local exits with 101 (because, perhaps, one of the
commands it ran exited thusly), qmail-send should set the envelope
sender to "#@[]".  This would be useful to generate a bounce message
which won't bounce if it's undeliverable.  If I blackhole an email
address, I don't mind telling people that's blackholed, but neither do
I want a double-bounce if their return address bounces.

Of course, if I had item #1, I could create the bounce myself like this:
    0>&2 echo "go away" | qmail-bounce | qmail-inject -f '#@[]'

3) qmail-smtpd should have the filename of qmail-queue as a parameter
on its command line.  The problem with qmail-smtpd as it currently
stands is that it can only run /var/qmail/bin/qmail-queue.  If we wrap
that program with something else, it must be called
/var/qmail/bin/qmail-queue, even though it isn't the real qmail-queue.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok |   There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice |   that freedom is the
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |   cause of world peace.

Reply via email to