• Community
  • Products
  • Jira
  • Questions
  • An error has occurred with sending the test email: com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketException: Connection reset

An error has occurred with sending the test email: com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketException: Connection reset

JIRA unable to send notification emails to users.

2 answers

1 accepted

0 votes
Accepted answer

Your mail server is not responding to the JIRA server for some reason.  Connection reset can have many causes, but it's usually incorrect credentials or a firewall blocking access.  You should be able to read further through the log for more information on the error.

Hi Nic Brough

 

I'm having the same fault, but in this case for the test instance that has the same outgoing mail configuration as the production instance. In the production instance  the outgoing mail works.

 

This is the trace when trying to send an email to a user within the domain :

Then the mail server is choosing to reject it, although I'd expect a different error for that.  Connection reset still almost certainly means "your network is not connecting"

Hello 

 

 Thanks for your information , I solved de problem reconfiguring the IP of the mail server.

 

Milena G

An error has occurred with sending the test email:

com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response;

  nested exception is:

                java.net.SocketException: Connection reset

                at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:225)

                at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:162)

                at com.atlassian.jira.plugins.mail.webwork.SendTestMail.doExecute(SendTestMail.java:107)

                at webwork.action.ActionSupport.execute(ActionSupport.java:165)

                at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)

                at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)

                at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)

                at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)

                at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)

                at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225)

                at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:154)

                at

Caused by: javax.mail.MessagingException: Exception reading response;

  nested exception is:

                java.net.SocketException: Connection reset

                at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2445)

                at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2172)

                at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:726)

                at javax.mail.Service.connect(Service.java:366)

                at javax.mail.Service.connect(Service.java:246)

                at javax.mail.Service.connect(Service.java:195)

                at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:185)

                ... 270 more

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,650 views 18 21
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