It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

AuthenticationFailedException

Im evaluating Bamboo for our company, and when I try to set up the mail settings on the server and test it, I get this:

The mail settings you entered were not valid. Error thrown was: javax.mail.AuthenticationFailedException

I've tried reading other posts, but with no luck finding an answer as to way.

Now, the really weird thing is that I recently bought Stash and it's set up with the exact same credentials (and, currently, even reside on the same machine) and in there it works like a charm.

I'm using a simple corporate in-house SMTP with no autentication (so basically just a smtp.server.domain name and nothing else. No TLS. And like I wrote, the exact same setup works in buddy-server Stash.

Any ideas?

1 answer

1 accepted

3 votes
Answer accepted

I actually found the problem (and the solution) myself, by chance. I thought I'd post it here to let others now and for you guys at Atlassian to consider improving this.

It's rather easy to reproduce too.

The problem was that once I had entered a user name and a password for the SMTP connection, the password never was removed from the underlying storage - the bamboo-mail.cfg.xml in BAMBOO_HOME. In the UI, it looked like there was no password set (the text field is empty), but when I push the Test button, it uses the password saved in said file.

Now, since the SMTP server I tested with was "no authentication", it failed because the password was sent.

To remedy, it was not sufficient to just remove it as a whole from the file. I had to first do this, then restart the Bamboo server. After I did so, finally I got my mails sent out.

Hi Per,

After reading your comments here I've allowed myself to raise an issue ticket on the Bamboo tracker: https://jira.atlassian.com/browse/BAM-13099 - I think this is a clear bug in Bamboo (although personally I don't find it very severe - just annoying).

Sorry to hear about your troubles!

regards,
Piotr Stefaniak
Bamboo developer

Hi Piotr,

Raising an issue was the right thing to do, and I considered it myself, but didn't really have the time.

And I agree on your conclusion, it's not a showstopper, more of a costmetic one.

I'm back happy with my continous evaluation of Bamboo, thanks. Like it a lot!

Regards, Per

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

307 views 2 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you