> -----Original Message-----
> From: Marc-Andre Husyk [mailto:[EMAIL PROTECTED]]
[snip]
> I found out a lot of the var stuff but know procmail
> doesn't read the
> systems env
> It only read its own env :/
[snip]
Yes but it isnt procmail tagging the message with the delivered-to
line, its the preline command. qmail pipes the message text (headers
and all) to whatever program hangs off .qmail-default. In the case of
procmail, it doesnt (by default) know the environment vars so you have
to use premail that takes qmails input adds the return-path and
delivered-to headers and then pipes it on to procmail.
If you want different delivered-to/return-path headers, write your own
version of preline (all it does is take all input from qmail, prepend
the extra headers and feed it on to another program) to tag different
headers on. You can do this with a shell script if need be (not
something I'd necessarily recommend...) or just rewrite preline
itself.
Another solution is to run procmail so that it does use qmails
environment vars ("-p" argument) and then do what preline does within
procmail.
Marcus
--
Marcus Williams - http://www.onq2.com
Quintic Ltd, 39 Newnham Rd, Cambridge, CB3 9EY