Sending, receiving, and organizing email in Outlook.com
Hi huang huan,
Based on your testing, it’s notable that the same OAuth token works successfully with SMTP while IMAP returns "User authenticated but not connected", and the behavior is isolated to a single Outlook.com account. The fact that another mail client reproduces the same result also suggests the issue is not limited to your JavaMail implementation.
As I have checked and validated, these steps from AI answer are pointing us at the right direction:
- Sign in to your Microsoft account and review Recent Activity for any unusual or blocked sign-in events related to IMAP access.
- Verify that IMAP access remains enabled in your Outlook.com mail settings.
If both checks look correct, try testing again with a newly acquired access token to rule out a temporary authentication state.
If the issue continues and other Outlook.com accounts work normally with the same application and configuration, the remaining evidence points toward a condition specific to this mailbox's IMAP access rather than the client configuration itself.
At that stage, it may be worth contacting Microsoft Support for further account-specific investigation, as there may not be any additional client-side changes available to test.
Please note that this is a user-to-user support forum. Moderators, contributors including external Microsoft employees cannot directly intervene in Microsoft product features or access back-end systems. Our role is limited to providing technical guidance on reported issues, requests, or ideas.
I understand how frustrating it can be when a configuration that previously worked suddenly affects only one account. Let me know if you need further assistance, feel free to ask me by clicking "Add Comment" or "Add Answer" if you cannot add comment so your response will be visible. Thanks for your effort.
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.