Dear @Adrian Drollinger,
Thank you for your detailed explanation of the issue. I understand how frustrating it can be when your Extended MAPI application suddenly stops accessing the mailbox after the OAuth token expires. I truly appreciate the time you've spent investigating this.
Based on my research, this behavior is expected due to how Outlook and Extended MAPI handle Modern Authentication. Microsoft explains this clearly in their official documentation (the Q&A Assist also mentioned it):
Reference: Microsoft doesn't expose permissions to generate OAuth tokens for Extended MAPI access to mailboxes
According to this article, Microsoft does not expose a permissions model that allows Extended MAPI applications to generate or renew OAuth tokens directly. Only Outlook itself can obtain and refresh these tokens. Because of this limitation, if Outlook is not opened interactively by a user, the token eventually expires and the Extended MAPI application can no longer authenticate.
This means for your scenario:
- Outlook automatically renews the token only when it is opened interactively.
- A Windows Service or background process cannot trigger token renewal on its own.
- When the token expires, the Extended MAPI application fails until Outlook is opened once again.
This aligns exactly with the issues you are encountering.
Also, the article above provides the only supported workaround:

- Open Outlook interactively at least once to allow it to acquire fresh OAuth tokens.
- After Outlook refreshes the token, the Extended MAPI application can reuse it and continue to function normally.
- Unfortunately, there is no API, command-line switch, or background method that forces Outlook to renew OAuth tokens without user interaction.
So, if possible:
- Ensure Outlook is opened interactively by the user at least once during the token lifetime, so it can refresh the token automatically.
- Consider evaluating alternative APIs (EWS with OAuth or Microsoft Graph) if your application needs stable, unattended, server-side access. These APIs fully support Modern Authentication without requiring Outlook to run (please kindly check this information in that article as well).
I hope this information can give you more insights in this case. Wish you a pleasant day!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.