Mail Configuration Fails after application upgrade with an AuthenticationFailedException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Summary

After upgrading Bamboo, the system was unable to connect to the organization's SMTP server. The aforementioned SMTP server does not require and does not support authentication.

Environmen

Atlassian Bamboo 9.4 - May affect other versions

Diagnosis

1 javax.mail.AuthenticationFailedException: No authentication mechanisms supported by both server and client

Cause

The <bamboo-shared-home>/configuration/bamboo-mail.cfg.xml file contains a password entry that is causing Bamboo to send authentication to the SMTP server. Since the server does not support authentication the request is denied.

Solution

  1. Stop Bamboo

  2. Modify the <bamboo-shared-home>/configuration/bamboo-mail.cfg.xml and remove the name and password values. An example file will change from:

    1 2 3 4 5 6 7 8 9 10 11 12 13 <?xml version="1.0" encoding="UTF-8"?> <mail-servers>   <smtp-server>     <name>Bamboo</name>   <password>MySecurePassword123</password>   <defaultFrom>example@exampleSMTPServer.com</defaultFrom>     <prefix>[Bamboo]</prefix>   <hostname>mail.exampleSMTPServer.com</hostname>     <sessionServer>false</sessionServer>     <port>25</port>     <tlsRequired>false</tlsRequired>   </smtp-server> </mail-servers>

    to:

    1 2 3 4 5 6 7 8 9 10 11 12 13 <?xml version="1.0" encoding="UTF-8"?> <mail-servers>   <smtp-server>     <name></name>     <password></password>   <defaultFrom>example@exampleSMTPServer.com</defaultFrom>     <prefix>[Bamboo]</prefix>   <hostname>mail.exampleSMTPServer.com</hostname>     <sessionServer>false</sessionServer>     <port>25</port>     <tlsRequired>false</tlsRequired>   </smtp-server> </mail-servers>
  3. Start Bamboo

Updated on February 24, 2025

Still need help?

The Atlassian Community is here for you.