Exchange Connection Problems

How to Fix SMTP Error 535 When Connecting a Microsoft 365 Shared Mailbox to CRM

Aamir Naveed AkramAamir Naveed Akram Oct 28, 2026 868 views

Question details

Users encounter SMTP authentication error 535 5.7.139 when attempting to connect a third-party CRM application to a Microsoft 365 shared mailbox.

How to Fix SMTP Error 535 When Connecting a Microsoft 365 Shared Mailbox to CRM
Product
Microsoft 365 Exchange
Device & OS
not provided
Scenario
Configuring a third-party CRM platform to send emails via a Microsoft 365 shared mailbox using SMTP credentials.
Observed behavior
The connection fails and returns the error code '535 5.7.139 Authentication unsuccessful', even when correct app passwords are provided.
Before you start

Ensure you have Microsoft 365 Global Administrator or Exchange Administrator privileges, as resolving this issue requires modifying tenant-level authentication settings and access policies.

Solution 1Recommended

Verify SMTP AUTH and App Password Configurations

Enable SMTP client authentication for the licensed user and properly configure an App Password if Multi-Factor Authentication (MFA) is active.

Because shared mailboxes do not have their own standalone passwords, you must authenticate the CRM using a fully licensed user account that has been granted 'Send As' or 'Full Access' permissions to the shared mailbox.

1
Access Microsoft 365 Admin Center

Log in to the Microsoft 365 Admin Center using your administrator credentials.

2
Enable SMTP AUTH for the User

Navigate to 'Users' > 'Active users' and select the licensed user account attempting the connection. Go to the 'Mail' tab, click 'Manage email apps', ensure the 'Authenticated SMTP' box is checked, and click 'Save changes'.

3
Generate an App Password

If MFA is enabled for the licensed user, log in to their Microsoft account security settings. Under 'App passwords', generate a new app password specifically for the CRM.

4
Configure the CRM SMTP Settings

In your CRM's email configuration, enter the shared mailbox address in the 'From' or 'Send As' field. For authentication, input the primary email address of the licensed user and the newly generated App Password.

Verify SMTP AUTH and App Password Configurations
Authentication Requirement: Always use the licensed user's credentials for the actual login portion of the SMTP setup, not the shared mailbox's address.
Free Microsoft Office alternative

Boost Your Productivity with WPS Office

While resolving Microsoft 365 backend configurations, discover WPS Office as a robust solution for your local document workflows. It is a lightweight, highly compatible alternative to Microsoft Office that easily handles your daily tasks without high subscription costs.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button.
  2. 2. Install the Suite: Run the downloaded file and follow the quick setup wizard to install the software.
  3. 3. Work Seamlessly: Open your existing Microsoft Office files natively in WPS Office and start editing immediately.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx) to ensure smooth sharing.Lightweight installation that preserves system resources and runs exceptionally fast.Familiar user interface requiring zero learning curve for a seamless migration.Rich built-in PDF tools for effortless document viewing, editing, and conversion.
microsoft office alternative - wps office

Frequently Asked Questions

Why am I getting Error 535 5.7.139 even though my app password is correct?

This frequently happens because SMTP AUTH is disabled at the tenant level or blocked by Azure AD Conditional Access policies. These security measures override individual app passwords and prevent legacy authentication from succeeding.

Can a Microsoft 365 shared mailbox have its own unique password?

No, shared mailboxes in Microsoft 365 are essentially disabled user accounts and do not possess their own standalone passwords. You must authenticate using the credentials (or app password) of a licensed user who has been granted explicit permissions to the shared mailbox.

How can I securely connect my CRM without using legacy SMTP AUTH?

If your CRM system supports it, using modern authentication (OAuth 2.0) or integrating via the Microsoft Graph API is highly recommended. These methods are far more secure, natively support MFA, and bypass the need to enable vulnerable legacy protocols.