I am currently configuring an Email Account with Office 365 OAuth.
I also configure an Api on Azure, create an External application to authenticate the email account.
When I Sign in there is no problem, but when I run the Test this is the error that keeps showing.

IMAP and POP are also enabled
API Permisssion is selected
What else can be?