nextcloud / nextcloud/mail

Adding Hotmail accounts to the mail app does not work

Open
#12,873 5 comments 1 reaction 1 assignee View on GitHub

@ChristophWurst is already working on this.

Since May 12, 2026.

0. to triage bug stale
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce

Unfortunately I cannot add my two Hotmail accounts to the mail app.

I've been trying this for weeks now, registered the domain, the app in MS Azure AD / EntraID (like stated here: https://docs.nextcloud.com/server/33/admin_manual/groupware/mail.html#xoauth2-authentication-with-microsoft-azure-ad) and asked in the support section: https://help.nextcloud.com/t/can-not-add-hotmail-accounts/243652, but without any substantial solution.

I end up with these failures:
_**ServiceExceptionCould not decrypt account access token: Missing access token for xoauth2 account

Could not load account mailboxes: Could not decrypt account access token: Missing access token for xoauth2 account**_

Is there a up-to-date step-by-step tutorial / guide, that explains and guides you through this process?
I could to some guessing game with AI, but I'd rather would go for the natural experience and intelligence!

Any help would be desperately appreciated!

Expected behavior

Hotmail account can just added like all other accounts.

Actual behavior

**ServiceExceptionCould not decrypt account access token: Missing access token for xoauth2 account

Could not load account mailboxes: Could not decrypt account access token: Missing access token for xoauth2 account**

Mail app version

5.7.14

Nextcloud version

33.0.3

Mailserver or service

Hotmail

Operating system

Ubuntu 24.04 LTS

PHP engine version

PHP 8.3

Nextcloud memory caching

PHP-FPM

Web server

Apache (supported)

Database

MariaDB

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.