Skip to content

Instantly share code, notes, and snippets.

@tknv
Last active June 16, 2022 20:17
Show Gist options
  • Save tknv/b1f3cc4c59cd5088dad74e425bb1a33f to your computer and use it in GitHub Desktop.
Save tknv/b1f3cc4c59cd5088dad74e425bb1a33f to your computer and use it in GitHub Desktop.
isync office365
IMAPAccount work
Host outlook.office365.com
User [email protected]
PassCmd "pass mail/work-gpg"
UseIMAPS yes
CertificateFile /etc/ssl/certs/ca-certificates.crt
IMAPStore work-remote
Account work
MaildirStore work-local
Path ~/mail/work/
Inbox ~/mail/work/Inbox
Channel work
Master :work-remote:
Slave :work-local:
# Include everything
Patterns "INBOX" "*"
# Automatically create missing mailboxes, both locally and on the server
Create Both
Sync All
# Save the synchronization state files in the relevant directory
SyncState *
@tknv
Copy link
Author

tknv commented Nov 19, 2016

davmail.url=https://outlook.office365.com/EWS/Exchange.asmx
davmail.enableEws=true

unfortunately 993 closed by...

Copy link

ghost commented Oct 9, 2017

Adding
AuthMechs PLAIN
worked for me

@tknv
Copy link
Author

tknv commented Feb 28, 2019

Adding
AuthMechs PLAIN
worked for me

Yes, Today I set up new env. AuthMEchs PLAIN is needed. Thank you!

@japhir
Copy link

japhir commented Nov 12, 2020

did you manage to get it to work with oauth2?

@tknv
Copy link
Author

tknv commented Nov 12, 2020

I've never tried oauth2 with mbsync.
Looks it will help(I googled) : http://blog.onodera.asia/2020/06/how-to-use-google-g-suite-oauth2-with.html

@japhir
Copy link

japhir commented Nov 12, 2020

thanks, I tried searching for configs many times, but my work email is an office 365 account that has recently switched to two-factor authentication/oauth2 and since then I've been reading my email in the browser. But it keeps logging me out and I miss mu4e ;-).

For office 365 I can't find anywhere how to generate these tokens that people seem to be successfully using for gmail.

@vnckppl
Copy link

vnckppl commented Dec 6, 2020

@japhir
Copy link

japhir commented Dec 7, 2020

Thanks @vnckppl! I've tried it out now, but get an error :( harishkrupo/oauth2ms#1

@tknv
Copy link
Author

tknv commented Dec 12, 2020 via email

@japhir
Copy link

japhir commented Jan 5, 2021

@vnckppl I've resolved my issue, I was copying over the wrong secret thingie :S.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment