-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Java API
-
None
-
0
-
2
When customer try to setup a secure connection to mail servers using SMTPS/SPOP/ SIMAP
Steps to reproduce
- import the certificate the in trust store
- setup a secure SMTP connection with a server that
- Enable TLS
Expected result
- Connection to be established
Actual result
This error appears in the log:
An error has occurred with sending the test email: com.atlassian.mail.MailException: javax.mail.MessagingException: Could not connect to SMTP host: secure-smtp.server.com, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 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)
The mail server with TLS v1.1 and v1.2 :
require the following cyphers :
ECDHE-RSA-AES256-GCM-SHA512
DHE-RSA-AES256-GCM-SHA512
ECDHE-RSA-AES256-GCM-SHA384
DHE-RSA-AES256-GCM-SHA384
ECDHE-RSA-AES256-SHA384
workaround:
Install JAVA at least 8u161 :
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html