Details
-
Bug
-
Resolution: Timed out
-
Low
-
None
-
6.0.4
-
6
-
1
-
Severity 3 - Minor
-
-
Description
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:
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: java.net.ConnectException: Connection refused at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:201) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:149) 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:83) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
Expected Results:
Send test mail successful.
Actual Results:
The test mail can't send successfully, even though normal mail notifications work fine
Workaround:
Set the Protocol to SMTP and send test mail will be succesful.
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.