SAP Knowledge Base Article - Preview

3662877 - SAP PO Mail Adapter is unable to connect to Mail Server using OAuth

Symptom

Mail sender channel fails to connect to the mail server (e.g., Outlook/Exchange Online) using OAuth authentication, in detailed Mail adapter traces the below error can be seen:

Response-Code: {"error":"invalid_grant","error_description":"AADSTS50079: Due to a configuration change made by your administrator, or because you moved to a new location, you must enroll in multi-factor authentication to access <Microsoft resource id>.

Additionally, the logs show:
Exception caught during processing mail message; java.io.IOException: Reason: :"AADSTS50079: Due to a configuration change made by your administrator

OR

And the ping channel test fails with:
Error in retrieving mailbox size: java.io.IOException: Reason: :"AADSTS900023: Specified tenant identifier 'null' is neither a valid DNS name 


Read more...

Environment

  • SAP NetWeaver 7.50
  • SAP Process Integration 7.50 
  • Multi-server environment

Product

SAP NetWeaver 7.5

Keywords

outlook.office365.com, OAuth, AADSTS50079, MFA, invalid_grant, administrator , KBA , BC-XI-CON-MAI , Mail Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.