## msmtp/config
#
# msmtp (MTA) sends mail over SMTP # using oama as an oauth2 manager
#
# Corresponding mutt config:
#   set sendmail = msmtp
#

# Set default values for all following accounts.
defaults
syslog LOG_MAIL
auto_from off

account local
from YOU@localhost
host localhost
# Set a default account
account default: local

# account at Google with oauth2 access

account YOUR_EMAIL_NAME@gmail.com
from YOUR_EMAIL_NAME@gmail.com
user YOUR_EMAIL_NAME@gmail.com
auth oauthbearer
passwordeval oama access YOUR_EMAIL_NAME@gmail.com
host smtp.gmail.com
port 587
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt

# Microsoft account
#
account YOUR_EMAIL_NAME@outlook.com
from YOUR_EMAIL_NAME@outlook.com
user YOUR_EMAIL_NAME@outlook.com
auth xoauth2
passwordeval oama access YOUR_EMAIL_NAME@outlook.com
host smtp-mail.outlook.com
port 587
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt

### ...

