Add an Office.com account to Mail without admin access?

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 9 (30.0.5)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04
  • Reverse proxy and version
    • Caddy
  • Installation method
    • AIO v10.5.0
  • Are you using CloudfIare, mod_security, or similar?
    • No

Summary of the issue you are facing:

I haven’t found a clear anwser to this in the forums:
I have an university email account that’s using Outlook / Office.com.
I have admin access to my Nextcloud instace since it’s running locally, but I don’t have admin access to the email server.
Is there still a way to add an Office365 email account to Mail?

Sorry i do not use Microsoft Outlook / Office. But i think you must only set the correct IMAP and SMTP - data in Nextcloud Mail. Read here and here.

Not tested:
IMAP Settings:
Server: outlook.office365.com
Port: 993
Encryption: SSL/TLS
Authentication: OAuth2/Modern Auth

SMTP Settings:
Server: smtp-mail.outlook.com
Port: 587
Encryption: STARTTLS
Authentication: OAuth2/Modern Auth

Username: Your full email address
Password: Your Microsoft account password

Thanks but this isn’t a personal @outlook.com account,
it has a custom domain from a university

Ok. Then ask your university for IMAP and SMTP configuration.

I have the servers and ports but Nextcloud doesn’t show a way to connect with OAuth2, and just setting my password fails (which is expected apparently Deprecation of Basic authentication in Exchange Online | Microsoft Learn)

I’m afraid that’s not possible. It’s required to register an app with Microsoft to use the integration: Mail — Nextcloud latest Administration Manual latest documentation

1 Like

That’s a shame because I definitely can’t do that. Thanks for the answer.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.