DAve <[EMAIL PROTECTED]> wrote on Sat, 29 Jul 2000:
> I believe I know my problem now. I use ssmtp to send my mail from my laptop
> to my mail server. The ssmtp man page states that the -f flag is only
> honored *if* the 'From:' field in the e-mail header is not present.
Oops. That's a pretty strange limitation. :-( I guess I'll stop
recommending sSMTP from now on...
What *does* sSMTP use as the envelope sender address in case the From
header is present, shouldn't it use the address from the From header?
If so, then it should be the exact same behaviour of $envelope_from..
But obviously this isn't happening.
> Since the Mutt manual states that 'envelope_from' is sent to sendmail
> via the -f flag, this would explain why the envelope is not being written as
> my alternate address.
Right.
> Currently, ssmtp ignores the 'envelope_from' field because the 'From:' field
> is always included in the mail header from Mutt. This leaves me with little
> options, switch to sendmail (kinda overkill for a laptop), or find a way to
> remove the 'From;" field completely when Mutt sends mail.
You can have Mutt not create a From header by unsetting $use_from.
However in that case you don't get any From header and so $envelope_from
is also pointless, the MTA (in this case, sSMTP) is expected to generate
the right From header into the email. And how does sSMTP know which
address you want to appear there? It would seem to defeat the point of
this, which is to have two alternating sender addresses...
I recommend that instead of switching from sSMTP to sendmail, switch to
another dialup/offline MTA, such as MasqMail or nullmailer. I don't
know if either of those fully support -f, but I would imagine they do
(especially MasqMail should, based on the name...). Pointers at
http://www.mutt.org/links.html .
Regards,
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 /
Change is inevitable, except from a vending machine.