logo
search
Security Policy Errors

Fix Exchange Online SMTP Authentication Blocked by Security Defaults

Kushani NimanthikaKushani Nimanthika Oct 21, 2026 868 views

Question details

SMTP authentication fails with error 535 5.7.139 because Microsoft Security Defaults block legacy authentication, even when SMTP AUTH is enabled for an individual mailbox.

How to Fix Exchange Online SMTP Authentication Blocked by Security Defaults
Product
Exchange Online
Device & OS
not provided
Scenario
A user or application is attempting to send emails using basic SMTP authentication via an Exchange Online mailbox, but the connection is rejected.
Observed behavior
The connection fails with error 535 5.7.139. Basic legacy authentication is globally blocked by Microsoft Security Defaults, overriding the individual mailbox's SMTP AUTH settings.
Before you start

Verify whether your application or device supports modern authentication (OAuth 2.0). If it does, upgrading your authentication method is the most secure and recommended approach.

Solution 1Recommended

Configure a Microsoft 365 SMTP Relay Connector

Set up a connector in the Exchange admin center to relay mail using your organization's environment without relying on blocked basic authentication.

Microsoft 365 SMTP relay allows multifunction devices or applications to send emails without requiring legacy basic authentication. This method maintains your organization-wide Security Defaults while allowing mail flow.

1
Access the Exchange Admin Center

Log in to the Microsoft 365 admin center using your administrator credentials, then navigate to the Exchange admin center.

2
Navigate to Connectors

In the left-hand menu, go to 'Mail flow' and click on 'Connectors'.

3
Add a New Connector

Click 'Add a connector'. Choose 'Your organization's email server' as the sending source and select 'Office 365' as the destination.

4
Configure Authentication Method

Enter the static public IP address of the device or application that will send the emails, or use a trusted SSL certificate to authenticate the connection.

5
Save and Enable

Review your settings, save the connector, and ensure it is toggled to the 'Enabled' state. Update your application to route emails to the MX record endpoint (e.g., yourdomain-com.mail.protection.outlook.com) on port 25.

Configure a Microsoft 365 SMTP Relay Connector
Static IP Requirement: To use the SMTP relay method securely, your device or application must connect from a static public IP address that is explicitly whitelisted in the connector setup.
Free Microsoft Office alternative

A Seamless and Lightweight Office Suite Alternative

If you want to avoid complex administrative configurations and security blocks like Exchange SMTP errors, consider switching to WPS Office for your local document needs. It is a highly compatible, free, and lightweight alternative that allows you to easily view, edit, and create Office documents with a familiar interface and zero IT overhead.

  1. 1. Download WPS Office: Visit the official WPS website to download the free installation package for your operating system.
  2. 2. Install the Suite: Run the installer to quickly set up the lightweight office suite on your device.
  3. 3. Open Your Documents: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office files without formatting issues.
Excellent compatibility with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation with a familiar, intuitive user interface for seamless migration.No complex cloud security policies or tenant configurations required for local editing.Built-in PDF tools for seamless document conversion and editing.
microsoft office alternative - wps office

Frequently Asked Questions

Can I bypass Security Defaults to allow SMTP authentication?

While it is technically possible to disable Security Defaults at the organizational level to allow legacy authentication, Microsoft strongly advises against it as it leaves your tenant highly vulnerable to attacks. Using an SMTP relay or OAuth is the recommended approach.

Why does SMTP AUTH fail even when it is explicitly enabled for a specific mailbox?

Error 535 5.7.139 occurs because organization-wide policies, such as Security Defaults or Conditional Access, override individual mailbox settings. These policies proactively block the legacy basic authentication protocol used by traditional SMTP client submissions.

Does setting up a Microsoft 365 SMTP relay require an extra license?

No, configuring a Microsoft 365 SMTP relay connector does not require an additional license. However, the sending device or application must be authenticated via a static public IP address or a valid SSL certificate.