use mfauth and better sending server selection

This commit is contained in:
Felix Van der Jeugt 2022-07-12 11:30:30 +02:00
parent 9c87ab7cb9
commit 071387457f
No known key found for this signature in database
GPG key ID: 58B209295023754D
4 changed files with 19 additions and 17 deletions

23
msmtprc
View file

@ -6,19 +6,16 @@ tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.local/share/msmtp.log
account gmail
host smtp.gmail.com
port 587
from felix.vanderjeugt@gmail.com
user felix.vanderjeugt
passwordeval "pass show other/gmail"
account ugent
host smtp.ugent.be
port 587
from felix.vanderjeugt@ugent.be
auth xoauth2
host outlook.office365.com
port 587
user felix.vanderjeugt@ugent.be
passwordeval "pass show ugent/_ | head -1"
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
passwordeval "mfauth access microsoft"
account posteo
host posteo.de
@ -27,5 +24,7 @@ from felix.vanderjeugt@posteo.net
user felix.vanderjeugt@posteo.net
passwordeval "pass show web/posteo.de | head -1"
# Set a default account
account default : ugent
account posteoplus : posteo
from felixvdj@posteo.be
account default : posteo