SSLException when sharing page or sending test email
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
After configuring Mail Server in Confluence, you might not be able to send out test email, and when you tried to share page to some users, the following appears in the atlassian-confluence.log
:
1
2
3
4
5
6
7
8
9
10
ERROR [scheduler_Worker-3] [atlassian.core.task.AbstractErrorQueuedTaskQueue] handleException com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:191)
at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:71)
at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.send(AbstractMailNotificationQueueItem.java:128)
...
Cause
Confluence is trying to do an SSL connection to a non-SSL port, thus this the mail server threw this exception because it's not possible.
Resolution
Make sure the port configuration is allowing SSL Connection.
Allow SSL Connection if your server is running behind firewall.
Was this helpful?