On Wed, Jan 20, 1999 at 09:58:09AM -0600, Mate Wierdl wrote:
> I would really like to know what the heck MAILHOST and friends are doing.
>
> It was stated that MAILHOST does not set the envelope sender. Well, I did
> the following experiment
>
> $ export MAILHOST=oki.doki
> $ export QMAILINJECT=f
> $ echo '|echo $SENDER > hosttest.out' .qmail-hosttest
> $ echo|mail mw-hosttest
> $ cat hosttest.out
> [EMAIL PROTECTED]
>
> So it is supposed to effect the envelope sender.
It looks that way. When I posted that message saying it didn't, I was basing it
on this, from man qmail-inject: "The default envelope sender address is the
same as the default From address, but it can be overridden with QMAILSUSER and
QMAILSHOST." I erroneously thought that "default" From address was one with
defaulthost in the host part of the address, not the with the host that someone
may have overridden with MAILHOST. So it appears that MAILHOST will set the
host name in the From header, and that that host will be used in the envelope
sender unless it's overridden by QMAILSHOST.
> But then I start Emacs from the same shell, send a message as
>
> To: mw-hosttest
> Subject: test
> --text follows this line--
> test
>
> and I get
>
> $ cat hosttest.out
> [EMAIL PROTECTED]
>
> Setting QMAILSHOST has the same effect---nothing.
>
> The only way I can change the domain part of the envelope sender's
> address for Emacs, if I put oki.doki in defaulthost.
How does Emacs inject mail?
Chris