Peter Woods <[EMAIL PROTECTED]> wrote:
> 
> I don't understand why these two are different:
> cat /tmp/message | /var/qmail/bin/qmail-inject
> cat /tmp/message | /var/qmail/bin/qmail-inject -n
> 
> The -n version shows the proper "from" contained in /tmp/message.

>From the man page for qmail-inject:

       -fsender      Pass sender to qmail-queue as the  envelope  sender
                     address.   This overrides Return-Path and all envi�
                     ronment variables.
       -N (Default.) Feed the resulting  message  to  qmail-
                     queue.
       -n            Print  the message rather than feeding it to qmail-
                     queue.

I don't recall the text of your original message; did you have a
Return-Path: header in it?  Also, are any of $USER, $QMAILUSER, $MAILUSER,
$LOGNAME, $QMAILHOST, or $MAILHOST set?

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to