MS Exchange: How to enable SMTP to use OAUTH2.0 but with basic AUTH disabled

exchangeoauthoffice365smtpsmtp-auth

(I have asked this question also on stackoverflow but I now think that this might be a more useful community to ask hence I am also posting here.)

I am trying to know whether it is possible to enable SMTP to use OAUTH2.0, but with basic AUTH disabled. Is it possible to do this? If so, can I please get some point-by-point instructions on how to go about this? I want it such that linux users who do not want to use graph-based services or the web-based outlook or evolution can use it. Thank you very much in advance!

Best Answer

What is your client? You could refer to the following article: Authenticate an IMAP, POP or SMTP connection using OAuth https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth