[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [msmtp-users] msmtp and gmail smtp



On 14/06/10 19:31, Michael wrote:
> My .muttrc contains:
> macro generic "<esc>1" ":set from=user1@...233... <mailto:user1@...233...>"
> macro generic "<esc>2" ":set from=user2@...233... <mailto:user2@...233...>"

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 user1@...233...
user user1@...233...
password xxxxxx

account user2
from user2@...233...
user user2@...233...
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