Skip to content

Our ERP/scanner needs SMTP, basic auth is being shut off

Microsoft hard-disabled basic auth for SMTP AUTH in September 2025. Legacy apps using basic auth have three options: SMTP AUTH with OAuth (XOAUTH2), Direct Send to smtp.office365.com (no auth, internal-only), or an SMTP relay connector for external mail.

Try this first

  1. 1Inventory which apps mail: ERP, MFP scanner, monitoring, a PHP script. For each note whether mail stays internal or goes external.
  2. 2Mail to internal recipients only in your tenant: use Direct Send (smtp.office365.com:25 unauthenticated). Works without credentials but only to @yourtenant addresses.
  3. 3Mail to external recipients: configure a Receive Connector with your public IP allowlisted. Exchange Online → Mailflow → Connectors. Auth on IP, not on user.
  4. 4Modern apps: SMTP AUTH with OAuth 2.0 (XOAUTH2). Postman, .NET with Microsoft Graph SDK, or Python with msal. Requires an Entra app registration.
  5. 5Test each route separately. Message Trace logs confirm which path is used.

When to bring us in

If the legacy app has no OAuth support and you can't upgrade, a local SMTP relay (Postfix, hMailServer) that talks OAuth to M365 itself is the practical workaround.

See also

None of the above fits?

Describe your situation below. We pass your input plus the steps you already saw to our AI and return tailored next-step advice. If it's too risky to DIY, we'll say so.

Who are you?

For the AI question we need your email and company, so we can follow up if the AI gets stuck, and to prevent abuse.

Limited to 2 questions per hour and 5 per day, kept lean so the AI stays useful. For more, contacting us directly works better for you and us.

Or skip the DIY entirely

Our Managed IT clients do not look these things up. One point of contact, a fixed monthly price, resolved within working hours.