A similar thing has been discussed today, read 'man preline' and/or use something like
|preline -f /your/command
in your .qmail-default
On Tue, Mar 20, 2001 at 09:13:42AM -0700, Roger Walker wrote:
> We need to set up something special for a domain and to do so, we
> need to capture all of the headers, including the "Return-Path:". If we
> pipe the messages to a script in the ".qmail-default", qmail-local strips
from 'man qmail-command':
WARNING: The mail message does not begin with qmail-
local's usual Return-Path and Delivered-To lines.
> off that and other headers we may need. Is there any way to over-ride
> this behavior or otherwise force qmail-local to provide those headers to
> the pipe?
>
> Thanks.
>
> --
> Roger Walker <http://www.rat-hole.com>
> Voice/Fax 1-780-440-2685 <http://www.man-from-linux.com>
> "HIS Pain; YOUR Gain" <http://www.rope.net>
> <http://www.rope.net/signature.html>
>
--
Kirill