POP, IMAP and SMPT with OAuth2 (Microsoft Office 365 services)
Microsoft is disabling basic authentication for Microsoft Office 365 services on October 2022.
- The simplest solution that will not require any major changes to your setup is to have your Outlook/Exchange users turn on 2-step verification in their accounts and then generate application-specific passwords. Otherwise, you will have to update your settings to use OAuth2 when connected to Outlook/Exchange. In this case the username stays the samen but you’ll get a new application-specific password.
- The second solution is using OAuth2 as described in the following example: link