Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to send email via Office365

Ilia Shapira May 6, 2025

Confluence Data Center was sending email for years with Office365

Recently stopped sending

We switched to 9.4.1 with OAuth. Authorize shows "The mail server is now authorized"

Test email fails with 

An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [YTBP288CA0012.CANP288.PROD.OUTLOOK.COM 2025-05-06T12:28:30.554Z 08DD8C2B51A3DB4F]

 

MFA disabled for this user

 

We did try to add 

CATALINA_OPTS="-Dmail.smtp.starttls.enable=true -Dmail.smtp.ssl.protocols=TLSv1.2 ${CATALINA_OPTS}"

 

Confluence Mail Server Setup issue due to TLS | Confluence | Atlassian Support

 

 

2 answers

0 votes
Jim Knepley - ReleaseTEAM
Atlassian Partner
May 6, 2025

Hi @Ilia Shapira 

There are two spots I am curious to look at.

When configuring the OAuth application, did the client ID and client secret get copied to the SMTP server configuration correctly? It probably was, but it's worth a look.

Does the application link reference an account with SMTP.SendAsApp permission?

There are also some M365-side settings that you can read about here.

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2025

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.4.1
TAGS
AUG Leaders

Atlassian Community Events