Unable to Send Email Due to 'javax.mail.AuthenticationFailedException' Error Message

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Unable to send test email successfully. The error appears:

AuthenticationFailedException
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
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.

Last modified on Oct 19, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.