Pete Kazmier wrote/schrieb/scribsit:

> Why not integrate rewriting of messages in one common location instead
> of the entry points to the qmail system (ofmipd and new-inject)?
> Perhaps in qmail-queue?

Both new-inject and ofmipd (qmail-inject partially) manipulate the
RFC822 message header, while qmail-queue (and qmail-smtpd of course)
don't care to look at it. Doing RFC822 parsing/rewriting in qmail-queue
breaks modularity, i.e. you cannot let messages flow completely apart from
any rewriting or parsing. qmail tries to parse as little as possible, what
is an advantage in general.

> Does anyone see any benefits to setting an environment variable via
> tcpserver such as NOREWRITE.  If NOREWRITE is set, then rewriting
> should not occur.  A site administrator would only have to determine
> which ip addresses are non-local.

Your wish is granted:

#!/bin/sh
if [ -n "$OFMIPCLIENT" ] ; then
        exec /usr/local/sbin/ofmipd
else
        exec /var/qmail/bin/qmail-smtpd
fi


Stefan

Reply via email to