From a523e9098f0ad3c62c7487fc3e81e64186afc620 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 10 Jan 2022 21:44:02 -0500 Subject: [PATCH] mbsync: Add FastMail config This is a great example of how remaking it from scratch is a win! I read the man page and realized that the default SSL was not necessarily the newest version! --- .mbsyncrc | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .mbsyncrc diff --git a/.mbsyncrc b/.mbsyncrc new file mode 100644 index 0000000..5c9c9c5 --- /dev/null +++ b/.mbsyncrc @@ -0,0 +1,38 @@ +# .mbsyncrc -- local IMAP configuration for FastMail +# +# INSTALL: +# +# 1. Get an "Application Password" from FastMail +# 2. Put it in /etc/mail/imap-pass (make sure readable only by your user!) +# recommend only giving IMAP permission (no SMTP) +# +# echo "password" | doas tee /etc/mail/imap-pass +# doas chmod 400 /etc/mail/imap-pass +# doas chown user:user /etc/mail/imap-pass +# +# 3. Cron it up! +# +# crontab -e +# mbsync -a -q -c /path/to/this/file +# +IMAPStore fastmail +Host imap.fastmail.com +Port 993 +User alex@alexkarle.com +PassCmd "cat /etc/mail/imap-pass" +SSLType IMAPS +SSLVersions TLSv1.3 + +MaildirStore local +Path ~/mail/ +Inbox ~/mail/INBOX +Flatten . + +Channel fullsync +Far :fastmail: +Near :local: +Patterns * +Sync All +Create Both +SyncState * +CopyArrivalDate yes -- libgit2 1.1.1