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 Join to answer
Community showcase
Emilee Spencer
Published Friday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

66 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot