Guides

Microsoft Is Turning Off SMTP Password Sign-in: Switch Your Odoo Email to OAuth

An engineer points at a dashboard on a monitor while a colleague wearing a headset works at the keyboard, in an office with server racks behind them

If your Odoo outgoing mail server signs in to smtp.office365.com with a username and password, it uses Basic authentication. Microsoft will disable that by default for existing tenants at the end of December 2026. Admins can turn it back on for now, but the lasting fix is Odoo’s Microsoft Outlook module, which signs in with OAuth.

Step 1: Check whether your Odoo is affected

Look at the Odoo outgoing mail server

Turn on developer mode in Odoo and go to Settings › Technical › Outgoing Mail Servers. Open each server and check two things:

  • The server address is smtp.office365.com or smtp-legacy.office365.com. Microsoft names both.
  • The server signs in with a username and password, not with the Outlook option.

If both are true, you are affected. If the server already has Outlook ticked and shows a green Outlook Token Valid tag, it already uses OAuth and this change does not touch it.

Check incoming mail as well

Now open Incoming Mail Servers in the same menu. If an IMAP or POP server logs in to Microsoft 365 with a password, it is not about to break. It should already be broken. Microsoft says “Basic authentication is now disabled in all tenants”, covering POP and IMAP, and adds: “Now no one (you or Microsoft support) can re-enable Basic authentication in your tenant.”

Ask your Microsoft 365 admin for one report

The SMTP AUTH Clients Submission Report in the Exchange admin center has an Authentication Protocol column. Microsoft added it to show whether each sender uses Basic auth or OAuth. Ask your admin for the rows that cover the mailbox Odoo sends from.

Who can skip this

Odoo Online and Odoo.sh send through Odoo’s own mail server by default. If nobody added a Microsoft 365 server, your outgoing mail is not affected.

Step 2: What breaks, and when

Microsoft’s Exchange team published the current timeline on 27 January 2026. Message Center post MC786329 carries the same wording:

  • “Now to December 2026: SMTP AUTH Basic Authentication behavior remains unchanged.”
  • “End of December 2026: SMTP AUTH Basic Authentication will be disabled by default for existing tenants. Administrators will still be able to enable it if needed.”
  • “New tenants created after December 2026: SMTP AUTH Basic Authentication will be unavailable by default. OAuth will be the supported authentication method.”
  • “Second half of 2027: Microsoft will announce the final removal date for SMTP AUTH Basic Authentication.”

This replaced an earlier plan. MC786329 says the removal “has been put on hold (previously beginning March 1st, 2026, and completing April 30th, 2026)”. If you read an older article quoting April 2026, that is why the dates don’t match.

What you will see

Once the setting is off, Odoo can’t sign in with the stored password, so quotations, invoices and notifications from that server stop going out. Microsoft’s original announcement gives the error once Basic auth is permanently removed: 550 5.7.30 Basic authentication is not supported for Client Submission. Microsoft has not published the message for the “disabled by default” stage.

Why turning it back on only buys time

Your admin can re-enable Basic auth after December. That buys months, not a fix. A final removal date is coming, and Microsoft’s 2024 FAQ on this change says that once Basic auth is permanently disabled, Support cannot re-enable it or grant exceptions. And Microsoft’s own reason applies now: Basic auth “sends usernames and passwords in plain text over the network”.

Not sure how your Odoo signs in to Microsoft?

Inwizards will check your Odoo mail set-up, outgoing and incoming, and switch it to OAuth. We test it with real documents and hand you a note of the client secret’s expiry date.

Get Your Odoo Mail Checked

Step 3: Switch Odoo to OAuth

Odoo’s guide, “Connect Microsoft Outlook 365 to Odoo using Azure OAuth”, goes back to the version 14.0 documentation and is still in the 19.0 and latest documentation. Menu names move between versions; the steps don’t. You need a Microsoft Entra admin and an Odoo administrator.

Part A: Register an app in Microsoft Entra

  1. In the Azure portal, open Microsoft Entra ID (formerly Azure Active Directory). Choose Add, then App registration.
  2. Name it “Odoo”. For supported account types, Odoo’s guide selects “Accounts in any organizational directory (Any Microsoft Entra ID directory - Multitenant) and personal Microsoft accounts”.
  3. Under Redirect URI, choose Web and enter https://<your Odoo address>/microsoft_outlook/confirm. Use the exact address people use to reach Odoo, such as mydatabase.odoo.com, then Register.
  4. Open API permissions and choose Add a permission, then Microsoft Graph, then Delegated permissions. Add SMTP.Send and IMAP.AccessAsUser.All. User.Read is added by default.
  5. From the overview, open the managed application in your local directory and, under Users and groups, assign the users who will send mail from Odoo.
  6. Copy the Application (client) ID from the overview page.
  7. Under Certificates & secrets, add a new client secret. Set the expiry to the furthest date offered. Copy the secret Value straight away, because Odoo’s guide warns that it is hidden once you leave the page. You do not need the Secret ID.

Part B: Add the credentials to Odoo

  1. In Apps, remove the Apps filter, search for “Outlook” and install Microsoft Outlook.
  2. In Settings, tick Use Custom Email Servers and save. (Older versions call it External Email Servers.) An Outlook Credentials option appears.
  3. Paste in the Client ID and the Client Secret value, then save.

Part C: Rebuild the outgoing mail server

  1. Open Outgoing Email Servers and create a new server. Tick Outlook and enter the Microsoft 365 username.
  2. Fill in the From Filter with the email address or domain this server sends for.
  3. Click Connect your Outlook account, pick the mailbox in the Microsoft window and click Yes to allow access.
  4. When you are back in Odoo, check for the green Outlook Token Valid tag, then click Test Connection.
  5. Archive the old password-based server so Odoo can’t pick it. Then send a real quotation to yourself.

Part D: Rebuild the incoming mail server

In Incoming Mail Servers, create a server and choose Outlook Oauth Authentication. Enter the username and click Connect your Outlook account. When Odoo shows Outlook Token Valid, use Test and Confirm.

One shared sender or one server per user

The simpler set-up in Odoo’s guide is one outgoing server for a shared address such as notifications@yourdomain.com. That address is the From Filter, and it must match the mail.default.from@mail.catchall.domain system parameters. The other set-up gives each user their own server. Odoo calls it the harder option: every such user needs access rights to settings, and you still need a fallback server for notifications.

Step 4: Microsoft’s alternatives, if an app can’t use OAuth

Odoo supports OAuth, so this is mostly background. Microsoft lists these routes for clients that can’t:

  • High Volume Email for Microsoft 365, for mail to recipients inside your own tenant. It is internal send only, so it can’t send customer invoices.
  • An on-premises Exchange Server in a hybrid configuration. You either sign in to it with Basic auth or set up a Receive connector that allows anonymous relay.
  • A dedicated high-volume email solution for internal and external recipients. MC786329 calls this “a 3P solution”, meaning a third-party service.
  • Azure Communication Services Email appears in Microsoft’s 2024 announcement. Microsoft has since put ACS Email into retirement. It is supported until 30 September 2028, and Microsoft advises migrating off it rather than onboarding new workloads.

On Odoo Online and Odoo.sh, Odoo’s own mail server is a further option outside Microsoft’s list, once your domain’s SPF and DKIM records are set for it.

Step 5: Odoo Online, Odoo.sh or self-hosted

Odoo Online

Odoo’s documentation says sending and receiving email “works out of the box” on Odoo Online. If you added a Microsoft 365 server, Microsoft Outlook is a standard Odoo app; follow Step 3 with your odoo.com address or custom domain as the redirect. If you use a relay instead, port 25 is blocked (use 465, 587 or 2525), and your own outgoing server must be paired with your own domain.

Odoo.sh

The defaults and the port 25 block are the same as on Odoo Online. If you test on a staging branch first, its URL differs from production’s, so add both redirect URIs to the Entra app.

Self-hosted

Self-hosted installs don’t get Odoo’s mail server, so they are the ones most likely to be pointing at smtp.office365.com. Check that the Microsoft Outlook module appears in your Apps list. The redirect URI must be your public HTTPS address. If Odoo runs behind a reverse proxy, make sure it knows that address through the web.base.url parameter and proxy mode. Test any custom modules that change outgoing mail. Odoo’s guide starts at 14.0; on older versions, the realistic choices are an upgrade or a relay.

Step 6: Common errors and what they mean

What you seeWhat it meansWhat to do
550 5.7.30 Basic authentication is not supported for Client SubmissionThe server still signs in with a password.Move it to the Outlook option (Step 3).
AADSTS50011Microsoft’s reply-address error. The redirect URI doesn’t match the one registered on the app.Register exactly https://<your Odoo address>/microsoft_outlook/confirm. On self-hosted installs, check the base URL and proxy settings.
AADSTS7000215Microsoft received an invalid client secret.Check that you pasted the secret Value, not the Secret ID.
AADSTS7000222The client secret has expired.Create a new secret, paste the value into Odoo and reconnect.
Test passes, but mail goes out as notifications@ or doesn’t arriveThe From Filter doesn’t match the sender. Odoo warns a passing test doesn’t prove delivery.Align the From Filter and system parameters; send a real document.
Sign-in works but sending is refusedSMTP AUTH is turned off for the tenant or the mailbox. Microsoft notes that security defaults also disable it.Ask your admin to enable Authenticated SMTP for that one mailbox.

Being straight about our position

Inwizards is not a Microsoft partner or an Odoo partner, and we don’t sell a mail product. We are an implementer that has built software since 2009, with teams in the USA, UAE and India. Every step above is in public documentation, and a confident admin can do it in-house. Outside help earns its keep on the messy cases: several companies in one database, per-user servers, custom modules, or a proxy. For background, see what Odoo is used for and Odoo Online vs Odoo.sh vs self-hosting. Custom work goes to our Odoo development team.

Where to start this week

  1. List every Microsoft 365 mail server in Odoo that uses a password.
  2. Get the SMTP AUTH Clients Submission Report for the Odoo mailbox.
  3. After switching, put the secret’s expiry date in a shared calendar with a named owner.

Sources

FAQ

Common Questions

Will our Odoo emails stop working at the end of December 2026?

If your Odoo outgoing mail server signs in to smtp.office365.com with a username and password, Microsoft will disable that sign-in by default for existing tenants at the end of December 2026. An admin can turn it back on for now, and Microsoft will announce the final removal date in the second half of 2027. Moving the server to OAuth with the Microsoft Outlook module removes the risk.

Which Odoo versions support Microsoft 365 OAuth for email?

Odoo's guide, Connect Microsoft Outlook 365 to Odoo using Azure OAuth, goes back to the version 14.0 documentation and is still in the 19.0 and latest documentation. Menu names change between versions, but the steps are the same: register an app in Microsoft Entra, install the Microsoft Outlook module, then connect the outgoing and incoming mail servers.

Does this affect Odoo Online if we use Odoo's own mail server?

No. Microsoft's change covers Basic authentication on its own SMTP AUTH endpoints, smtp.office365.com and smtp-legacy.office365.com. Odoo Online and Odoo.sh send through Odoo's own mail server by default. You only need to act if someone added an outgoing mail server that signs in to Microsoft 365 with a password.

Our Microsoft 365 mail stopped arriving in Odoo. Is this the same change?

Probably not this one. Microsoft has already disabled Basic authentication for POP and IMAP in all tenants, and says no one can re-enable it. An Odoo incoming mail server that logs in to Microsoft 365 with a password will not work. Rebuild it with the Outlook Oauth Authentication option.

What happens when the Azure client secret expires?

Odoo can no longer sign in to Microsoft, and Odoo's guide warns this can interrupt service. Microsoft's error for an expired secret is AADSTS7000222. Create a new secret in Microsoft Entra, paste the new value into Odoo's Outlook Credentials and reconnect the servers. Set the expiry to the furthest date offered and put it in a calendar.

Switch Your Odoo Mail to OAuth Before December

Inwizards will check your Odoo mail set-up, outgoing and incoming, and move it from password sign-in to OAuth. You get a tested set-up and a written note of what changed and when the client secret expires.

Already seeing 550 5.7.30 or AADSTS errors?

Send us the error and your Odoo version and hosting type. We will tell you whether it is the server, the Entra app, the secret or the From Filter, and fix it.

Talk to Us About Odoo Support
Get started

Book Your Demo

Tell us a little about your team and we'll show you exactly how Inwizards AI fits your goals — usually within one business day.

What to expect — a 30-minute live walkthrough tailored to your use case The right agents mapped to your goals, with a clear ROI model built around your numbers Straight answers on security, integrations, and rollout — no engineering required, live in days Email — info@inwizards.com USA — +1 979 599 0896  ·  Dubai — +971 54 508 5552  ·  India — +91 96675 84436

Book your free demo

Contact Us- Inwizards

Free 30-minute call · No commitment · NDA on request