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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

781 views 5 7
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