Configure K-9 mail on Android for outlook 365

I have switched to K-9 mail on Android. I have outlook 365, and to confgure it i use the following:
IMAP (incoming)
- Server name: outlook.office365.com
- Port number: 993
- Encryption: SSL/TLS
- Auth method: OAuth2
- Username: your email
SMTP (outgoing)
- Server name: smtp.office365.com
- Port number: 465 or 587
- Encryption: STARTTLS
- Auth method: OAuth2
- Username: your email
Hope you can use it!
Read other posts