On Fri, Jan 07, 2000 at 07:52:43AM +0000, Peter Gradwell wrote:
> qmail-command defines a whole bunch of really useful environment variables
> which are set, like HOST, SENDER, USER, LOCAL, etc.
>
> We want to capture the sending host's IP address in a perl script, invoked
> from a .qmail file, as we want to look it up in the MAPS lists and do some
> stats and stuff.
The sending host talks to qmail-smtpd, which accepts the messages, dumps
it into the queue, and exits. After the message in the queue has been
processed by qmail-send, qmail-local is invoked to deliver the email.
Therefore there's no way for qmail-smtpd's environment to be available
to qmail-local.
> It appears that we will have to parse the headers of the message to get the
> ip address of the host it came from. Is this the only way?
Yes, to my knowledge.
--
See complete headers for more info