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

View File

@ -2,3 +2,4 @@ text/html: w3m -dump -o display_link_number=1 -I $PIPE_CHARSET -T text/html
text/calendar: cat
application/ics: khal printics
text/plain: mflow -w 72
multipart/encrypted: gpg 2>&1 && exit 64

View File

@ -1,6 +1,6 @@
Local-Mailbox: Felix Van der Jeugt <felix.vanderjeugt@posteo.net>
Alternate-Mailboxes: Felix Van der Jeugt <Felix.VanderJeugt@ugent.be>,Felix Van der Jeugt <Felix.VanderJeugt@UGent.be>,Felix Van der Jeugt <felix.vanderjeugt@ugent.be>,Felix Van der Jeugt <felix.vanderjeugt@gmail.com>,Felix Van der Jeugt <felix.vanderjeugt@12urenloop.be>
Sendmail: msmtp
Sendmail: msmtp --read-envelope-from
FQDN: mantle
Outbox: /data/mail/outbox
Scan-Format: %c%u %3n %d %17f %i%S

View File

@ -1,10 +1,12 @@
# Accounts {{{
IMAPAccount ugent
Host "owa.ugent.be"
Host "outlook.office365.com"
Port 993
User "felix.vanderjeugt@ugent.be"
PassCmd "pass show ugent/_ | head -1"
AuthMechs "PLAIN"
SSLTYPE "IMAPS"
PassCmd "mfauth access microsoft"
AuthMechs "XOAUTH2"
SSLType "IMAPS"
SSLVersions "TLSv1"
CertificateFile "/etc/ssl/certs/ca-certificates.crt"
IMAPAccount posteo

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