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.
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 used to get around this with Pine by delivering to the local smtp daemon instead of
calling sendmail; this way, the MTA wouldn't know what userid was connecting to it and
therefore would generate a Return-Path that matches the From line.
But Pine would put in an X-Sender line when you use a From address different from your
local userid, so that was not a perfect solution either.
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.
If it can't be done, then the only other solution I can see would be to run nullmailer
(or equivalent) as a middle-man, passing it your mail locally and having nullmailer
hand it to the local smtpd.
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.
On Sat, Jan 29, 2000 at 06:20:35PM +0200, Mikko Hänninen wrote:
> Patrick Walsh <[EMAIL PROTECTED]> wrote on Fri, 28 Jan 2000:
> > As far as I can tell setting the From: when using qmail with mutt
> > requires that the environment variables MAILUSER, MAILHOST, MAILNAME
> > be set before starting mutt, along with QMAILINJECT=f.
>
> It doesn't require them, though can specify them if you like.
>
> > Is there a way to set the From: within a mutt session when using
> > qmail as the MTA?
>
> Certainly.
>
> To set the real name part, look at the $realname variable.
> The hostname part can be changed with $hostname, $hidden_host
> variables. If you want more control over the From: header,
> you can always specify it with something like
>
> my_hdr From: Your Name <[EMAIL PROTECTED]>
>
>
> Hope this helps,
> 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 /
> An unbreakable toy is good for breaking other toys.