Jim Breton <[EMAIL PROTECTED]> wrote on Sat, 29 Jan 2000:
> I've been doing this on my qmail system; however, qmail still puts a
> "Return-Path" header on the message which indicates the local username
> who called "sendmail."  I haven't found any way around this yet.

Ahh.  That's the envelope sender.  I thought about mentioning it, but
you specifically asked about the From: header, so I left out the
envelope sender to avoid potention confusion. :-)

> You can set the $QMAILUSER and $QMAILHOST env vars to specify what you
> want in the Return-Path header but once you do that, all msgs you send
> will use it -- even if you generate your own From lines.

I use MAILUSER and MAILHOST to set it to what I want, but those ought to
work too (according to the qmail-inject man page).  I set these
variables at login time, so they're set for all emails I send.  You
could also create a wrapper script to mutt that will set them for you.
It's by far the easiest solution, I think.  Alternatively, you could
also set a Return-Path: header for your emails from within Mutt, and
qmail should (by default) respect that.  I've not tried that approach
myself though.

> I am trying to figure out if there's a way to force qmail to generate
> the Return-Path header based on the From line, but haven't seen any way
> to do this so far.

I don't think you can do exactly this.  You need to specify the envelope
sender *some* way -- either via the environment variables, or the
Return-Path: header, or on the command line (sendmail -fsender@address).
The latest developement version of Mutt has support for doing the
latest too, I think.

> If anyone has any better ideas, I'm all ears.  :)  I can't stand having
> my local username in the headers when I am trying to "hide" it with my
> own headers.

You should be able to hide it with one of the options above; if you
still have trouble feel free to write back. :-)


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Red meat isn't bad for you. Fuzzy blue-green meat is bad for you.

Reply via email to