confluence mail send timeout

Moon Express January 15, 2015

I have JIRA (6.3.1) and Confluence (5.6.5) running on the same host. I am using gmail for my email server (smtp.gmail.com:465 with TLS enabled). Sending email from JIRA works fine, but Confluence generates the error below. I don't think this is an issue with the mail server or the network since the exact same settings work for JIRA from the same machine. Is there something else that could be causing this?

 

An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:143)

 

2 answers

4 votes
Moon Express January 15, 2015

I was able to solve this problem by adding a JNDI mail resource as described here:

https://confluence.atlassian.com/display/DOC/Setting+Up+a+Mail+Session+for+the+Confluence+Distribution

Configuring the mail server using the Confluence UI did not work.

Steven Barmoy April 29, 2015

Thanks! I had the exact same issue and that worked for me too!

3 votes
Fabian Lang April 8, 2019

Maybe this is a bit late, but i was facing the exact same issue and found this article.

The solution for me was to change the port to 587 and it worked.

Phu August 14, 2019

Thank you. I changed the port from 456 to 587, and it worked for me as well.

CSW GmbH October 10, 2019

Worked for me too.... Thanks!

king flight October 12, 2019

You save my day. Thanks!

Bill Hoo June 10, 2020

+1, 587 worked pretty well, thanks dude.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events