Unable to Send Email Due to 'javax.mail.AuthenticationFailedException' Error Message
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Unable to send test email successfully. The error appears:
AuthenticationFailedException
1
2
3
4
An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:191)
at com.atlassian.confluence.admin.actions.mail.SendTestEmailAction.execute(SendTestEmailAction.java:52)
535 5.7.3 Authentication Unsuccessful
1
2
3
4
5
Caused by: com.atlassian.crowd.event.EventJobExecutionException: Could not send email to user@domain.com: 535 5.7.3 Authentication unsuccessful
Caused by: com.atlassian.crowd.manager.mail.MailSendException: Could not send email to user@domain.com: 535 5.7.3 Authentication unsuccessful
Caused by: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful
Cause
The error from the logs indicates that Confluence can't connect to your mail server with the username and password you specified.
The Exchange/mail server is configured incorrectly.
Resolution
If your Diagnostic/Test confirmed that you are unable to send a test email, consult your email system administrator for the correct setting.
For Exchange Server 2007/2010/2013/2016
Some administrators have been successful in resolving this by creating a dedicated Exchange receive connector if using an Exchange Server.
Still having problems?
If the problem still persists, ensure you have configured the mail jars as described in Configuring a Server for Outgoing Mail.
Was this helpful?