Connection refused

Atlassian JIRA | Bogdan Dziedzic [Atlassian] | 5 years ago
  1. 0

    Unable to Send Mail due to Could not connect to SMTP Host - Atlassian Documentation | 4 months ago Connection refused
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    h3. Steps to Reproduce: # Setup a JNDI mail server according to [this documentation|] # Under SMTP Host section in the JIRA Outgoing Mail Server configuration, set the *Protocol* to *SECURE_SMTP* and save the configuration # Send a test mail and the following message will thrown as JIRA can't connect to localhost: {code} An error has occurred with sending the test email: com.atlassian.mail.MailException: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 465; nested exception is: Connection refused at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId( at com.atlassian.mail.server.impl.SMTPMailServerImpl.send( at com.atlassian.jira.plugins.mail.webwork.SendTestMail.doExecute( at webwork.action.ActionSupport.execute( at com.atlassian.jira.action.JiraActionSupport.execute( at webwork.interceptor.DefaultInterceptorChain.proceed( at webwork.interceptor.NestedInterceptorChain.proceed( at webwork.interceptor.ChainedInterceptor.intercept( {code} h3. Expected Results: Send test mail successful. Actual Results: The test mail can't send successfully, even though normal mail notifications work fine h3. Workaround: Set the Protocol to SMTP and send test mail will be succesful. h3. Note: The Protocol configuration has no impact on the mail functionality as notification still able to send out of JIRA as long as the JNDI configuration is correct.

    Atlassian JIRA | 3 years ago | TeckEn Yew Connection refused

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis


      Connection refused

      at com.atlassian.mail.server.impl.SMTPMailServerImpl.send()
    2. com.atlassian.mail
      1. com.atlassian.mail.server.impl.SMTPMailServerImpl.send(
      1 frame
    3. com.atlassian.jira
      1. com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(
      1 frame