On Fri, Aug 12, 2016 at 08:22:17AM +0100, spaceman wrote:
> Having just been looking at a similar problem it might better to use
> 
> set sendmail = "/usr/bin/msmtp --read-envelope-from"
> 
> Which removes the need to specify an account completely with msmtp so long as 
> it can find a matching from address in you msmtp config.

It's what I'm also using.

If there is no global "from" key in msmtprc, i.e. every "from" instance
is grouped under an "account" stanza, it will use From: to select the
first matching account also, without --read-envelope-from.

Reply via email to