On 14/06/10 19:31, Michael wrote:
> My .muttrc contains:
> macro generic "<esc>1" ":set [email protected] 
> <mailto:[email protected]>"
> macro generic "<esc>2" ":set [email protected] 
> <mailto:[email protected]>"

In the configuration file you sent, you only define a single account
(there is only one 'account' command active), and you define all the
settings for this account in your 'defaults' section.

This does not work. You need to define two accounts and let msmtp choose
the account that has the matching from address.

For example:

----
defaults
host smtp.gmail.com
port 587
keepbcc on
tls on
tls_trust_file /etc/ssl/cert.pem
logfile ~/.msmtp.log
auth on

account user1
from [email protected]
user [email protected]
password xxxxxx

account user2
from [email protected]
user [email protected]
password xxxxx
----

(You can still optionally set a default account with 'account default :
user1', but you don't need to if you only use msmtp with Mutt).

Martin

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
msmtp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msmtp-users

Reply via email to