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

Hi

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: smtp.office365.com, 587; timeout 20000; nested exception is: java.net.SocketTimeoutException: connect timed out

 

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

 

Thanks

Manish

1 answer

1 accepted

1 vote
Brian Cohen Atlassian Team Nov 20, 2017

Hi Manish,

 

You'll want to ensure that your Jira server is able to reach smtp.office365.com. The error indicates a likely network problem, perhaps a firewall is blocking the traffic? Are you using any type of proxy in your environment?

You might try using a tool like telnet smtp.office365.com 587 to see if you are able to get a connection from your Jira server to office365.

Best regards,
Brian

Hi Brian

 

yes you are correct , I opened up this port and was able to get the emails working. Thanks for your suggestion.

 

Thanks

Manish

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Mar 09, 2018 in Jira Service Desk

E.L. Fridge's take on education, Jira Service Desk, and creative Jira use cases

...word of mouth, so by 2016, we were working with several other entities on campus to implement Jira Service Desk . The Atlassian motto of “for every team” has really come true for us in this case. We...

1,178 views 2 14
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you