SSLException when sharing page or sending test email

Still need help?

The Atlassian Community is here for you.

Ask the community

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:

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

  1. Make sure the port configuration is allowing SSL Connection.
  2. Allow SSL Connection if your server is running behind firewall.

Last modified on Jul 5, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.