.mbsyncrc (811B) [raw]
1 # .mbsyncrc -- local IMAP configuration for FastMail 2 # 3 # INSTALL: 4 # 5 # 1. Get an "Application Password" from FastMail 6 # 2. Put it in /etc/mail/imap-pass (make sure readable only by your user!) 7 # recommend only giving IMAP permission (no SMTP) 8 # 9 # echo "password" | doas tee /etc/mail/imap-pass 10 # doas chmod 400 /etc/mail/imap-pass 11 # doas chown user:user /etc/mail/imap-pass 12 # 13 # 3. Cron it up! 14 # 15 # crontab -e 16 # mbsync -a -q -c /path/to/this/file 17 # 18 IMAPStore fastmail 19 Host imap.fastmail.com 20 Port 993 21 User alex@alexkarle.com 22 PassCmd "cat /etc/mail/imap-pass" 23 SSLType IMAPS 24 SSLVersions TLSv1.3 25 26 MaildirStore local 27 Path ~/mail/ 28 Inbox ~/mail/INBOX 29 Flatten . 30 31 Channel fullsync 32 Far :fastmail: 33 Near :local: 34 Patterns * 35 Sync All 36 Create Both 37 SyncState * 38 CopyArrivalDate yes