.mbsyncrc (1001B) [raw]
1 # .mbsyncrc -- local IMAP configuration for Migadu 2 # 3 # INSTALL: 4 # 5 # 1. Migadu has no "Application Password", but it does 6 # have the concept of "identities" that can be 7 # locked down to IMAP access with a custom password 8 # 9 # 2. Put it in /etc/mail/imap-pass; note that all 10 # processes for your user can read this, which 11 # isn't ideal, but if hacked, they can also read 12 # your email (~/mail) anyways... 13 # 14 # echo "password" | doas tee /etc/mail/imap-pass 15 # doas chmod 400 /etc/mail/imap-pass 16 # doas chown user:user /etc/mail/imap-pass 17 # 18 # 3. Cron it up! 19 # 20 # crontab -e 21 # mbsync -a -q -c /path/to/this/file 22 # 23 IMAPStore migadu 24 Host imap.migadu.com 25 Port 993 26 User isync@alexkarle.com 27 PassCmd "cat /etc/mail/imap-pass" 28 TLSType IMAPS 29 TLSVersions -1.0 -1.1 -1.2 +1.3 30 31 MaildirStore local 32 Path ~/mail/ 33 Inbox ~/mail/INBOX 34 Flatten . 35 36 Channel fullsync 37 Far :migadu: 38 Near :local: 39 Patterns * 40 Sync All 41 Create Both 42 SyncState * 43 CopyArrivalDate yes