Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

The mail settings you entered were not valid. Error thrown was: com.sun.mail.util.MailConnectExcepti


No emails are getting triggered post build run. I tried entering my mail id under Mail server and go below error:

The mail settings you entered were not valid. Error thrown was: com.sun.mail.util.MailConnectException: Couldn't connect to host, port:, 587; timeout 20000; nested exception is: connect timed out

Followed following KB article but could not get specific solution:

Do let me know if I need to send other logs. Pls suggest.




1 answer

0 votes
robhit Atlassian Team Nov 17, 2017

Hi Manish,


Looking at your error, it seems like a connectivity issue or configuration issue to me because "connect timed out"

You can test the mail using the CMD or terminal by command "telnet"

For example:

telnet 587

See if you can establish the connectivity from the machine where bamboo is hosted. 


Hi Robhit


Thanks for your reply.


Tried running a ping command on our AWS server and got successfully message.


ping 587  >> It threw error that 587 is bad parameter


ping 587  >> it successfully pinged.


Pls suggest


emails not send_Nov17.png

robhit Atlassian Team Nov 17, 2017

Hi Manish,


There is a difference between Ping and telnet.

In short:

Ping: check connection (knock on the door of the remote server).

Telnet: gives access to the remote system if it is running telnet daemon.


And while using port 587 ping throws the error because it does not support that parameter.

Try executing the telnet command which I shared earlier. This will test the connectivity between your bamboo machine and the SMTP server if the port 587 which you are using is correct or open or not



Hi Robhit


Unfortunately I am not unable to use Telnet as its not configured. However, I am reaching out to my server team to see if this port in question ( 587) is blocked or not. Thanks  

robhit Atlassian Team Nov 17, 2017

Hi Manish,


Update me on this!


And we will see if we can help you here.



Hi Robhit, With help of our IT team we were able to open port 587 and now mails are getting triggered. Thank you so much for suggesting this approach. You may pls go ahead and close this incident and send me survey link if possible.

You are five star bamboo guy!!



robhit Atlassian Team Nov 17, 2017

Hi Manish,


Good to know that it's working now.


However, this is community platform so no ticket and survey for this. But you can accept my answer so that others can also benefit from it.


Community work is to spread the help among the Atlassian users.



Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

191 views 4 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