Sending a Test Email Fails due to javax.mail.AuthenticationFailedException


JIRA applications fail to Send a Test Email via the SMTP server configuration located in Administration >> Global Settings >> Mail Servers. The following exception is encountered:

com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(


The authentication credentials supplied for the SMTP server are not correct or have expired.


  • Correct the SMTP Mail Server username or password. Use Send a Test Email to verify that the credential's to the mail server are correct.
  • As a last resort, recreating the Mail Handler may assist here - it has been seen to fix some situations surrounding the AuthenticationFailedException when using the appropriate credentials
    • Remove the related mail handler
    • Restart JIRA
    • Create mail handler again

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport