At 17:00 01.03.99 , Russell Nelson wrote:
>Franz Sirl writes:
> > I _want_ to receive the mail for the users here and _additionally_
> > autoreply to them via standard .qmail-* handling. Unfortunately the
> > environment variables are not passed on to qmail-queue so I can't check
> for
> > them in .qmail-* (unless I did something wrong here?).
>
>qmail-queue *does* get the environment variables, but it does not
>store them as such. If you want to get the IP address to do the ORBS
>lookup, you should parse the Received: line.
Yes, that's it. As Petr Novotny and Russell Nelson told me the delivery via
.qmail is done by qmail-local (it seems I'm still thinking to complicated
for qmail :-) ), and qmail-local doesn't see tcpserver's environment variables.
So my options are:
- parse the Received: header (anyone has a working regexp for that?) for
the IP address and do rblsmtpd again
- patch qmail-smtpd to conditionally add a message header if a certain
environment variable is set
- ??
Franz.