How to fix macOS Mail app failing to send emails due to SMTP authentication errors with Microsoft 365
Summary
This guide helps you troubleshoot and resolve: How to fix macOS Mail app failing to send emails due to SMTP authentication errors with Microsoft 365. Follow the steps below to fix the issue.
Common Causes
Overview
SMTP authentication errors in the macOS Mail app when using a Microsoft 365 account are typically caused by outdated credentials, deprecated basic authentication settings, or Multi-Factor Authentication (MFA) requirements. Microsoft 365 has largely deprecated basic password authentication for SMTP in favour of OAuth2. This guide explains how to resolve these errors using modern authentication methods and provides steps for older macOS versions that may not support OAuth2.
Before you begin: macOS version differences
The menu names for Mail app settings differ depending on your macOS version:
- macOS Ventura (13) and later: Use Mail > Settings from the top menu bar.
- macOS Monterey (12) and earlier: Use Mail > Preferences from the top menu bar.
This article refers to Settings. If you are on an older version of macOS, substitute Preferences wherever Settings is mentioned.
Recommended method: Add your account as Microsoft Exchange
Microsoft recommends configuring your Microsoft 365 account as a Microsoft Exchange account in macOS Mail. This method uses OAuth2 authentication and does not require you to manually enter SMTP server details or generate app-specific passwords.
Add a Microsoft 365 account using Exchange setup
- Open the Mail app.
- From the top menu bar, select Mail > Settings (or Preferences on macOS Monterey and earlier).
- Click the Accounts tab.
- Click the plus (+) button at the bottom of the accounts list.
- Select Microsoft Exchange from the list of account types.
- Enter your full Microsoft 365 email address (for example,
name@yourbusiness.com.au) and click Continue. - Enter your Microsoft 365 password when prompted.
- If MFA is enabled, complete the additional verification step using your phone, authenticator app, or security key.
- Follow the on-screen prompts to authorise macOS Mail to access your Microsoft 365 account.
- Ensure Mail is selected for the services you wish to synchronise, then click Done.
- Close Settings and send a test email to confirm the issue is resolved.
Alternative method: App-specific passwords
If your version of macOS Mail does not support OAuth2, or if you are manually configuring an account and Microsoft 365 rejects your standard password, you may need to generate an app-specific password. This is required when Multi-Factor Authentication (MFA) is enabled on your Microsoft 365 account.
Generate an app-specific password
- Open a web browser and sign in to your Microsoft account at
account.microsoft.com. - Navigate to Security > Advanced security options.
- Under Additional security, locate App passwords and click Create a new app password.
- Enter a name for the app (for example,
macOS Mail) and click Next. - Copy the generated app-specific password. You will not be able to view it again after closing this window.
- Open the Mail app and go to Mail > Settings > Accounts.
- Select your Microsoft 365 account and update the password field with the app-specific password you copied.
- Close Settings and send a test email.
SMTP settings: What to avoid
Do not manually configure basic authentication SMTP settings such as:
- SMTP Server: smtp.office365.com
- Port: 587
- Security: STARTTLS
- Authentication: Password
Microsoft 365 has deprecated basic authentication for SMTP. Configuring these settings manually may result in persistent authentication errors or blocked sign-in attempts. Use the Microsoft Exchange setup method described above instead.
Australian ISP considerations
Some Australian internet service providers, including Telstra, Optus, and others, may block outbound port 587 on certain business or residential connections. If you are not using a Microsoft-managed network and are manually configuring SMTP settings, contact your ISP to confirm whether port 587 is blocked. Using the Microsoft Exchange setup method avoids this issue because authentication is handled through Microsoft's OAuth2 flow rather than direct SMTP relay through your local ISP.
Troubleshooting specific errors
Authentication failed
This error usually means macOS Mail is attempting to sign in with an outdated password or an unsupported authentication method.
- Remove the Microsoft 365 account from Mail > Settings > Accounts.
- Re-add the account using the Microsoft Exchange method described above.
- If re-adding fails, generate an app-specific password via your Microsoft account security settings and use that instead of your regular password.
Account not found
This error can occur if the email address was entered incorrectly or if the Microsoft 365 licence has been removed.
- Verify the email address entered in Mail matches your Microsoft 365 user ID exactly.
- Sign in to the Microsoft 365 admin centre or
account.microsoft.comto confirm the account is active and licensed. - Remove and re-add the account in macOS Mail.
Keychain Access issues
Sometimes macOS stores corrupted credentials in the Keychain, causing repeated authentication prompts.
- Open Keychain Access (found in Applications > Utilities).
- Search for your email address or
outlook.office365.com. - Delete any entries related to your Microsoft 365 mail account.
- Restart the Mail app and re-enter your credentials when prompted.
Older macOS versions and Microsoft Outlook for Mac
Older versions of macOS Mail may not support modern OAuth2 authentication required by Microsoft 365. If you are unable to complete the Exchange setup or OAuth2 login on your version of macOS, install Microsoft Outlook for Mac from the Mac App Store or via Microsoft 365 Apps. Outlook fully supports modern Microsoft 365 authentication and is the recommended email client for older Mac devices.
If you have followed these steps and are still unable to send emails, please Open a Ticket with our support team.
Still Having Issues?
💻 Open a Ticket