javax.mail.MessagingException Could not convert socket to TLS

Symptoms

Error: could not convert socket to TLS when trying to send an email.

Cause

The email connection requires a trusted host.

Resolution

Add the configuration parameters "mail.smtp.ssl.trust" and "mail.smtp.ssl.protocols" to your email configuration.

If using OpenKM version 7, edit the file openkm.properties and add:

mail.smtp.ssl.protocols=TLSv1.2

mail.smtp.ssl.trust=smtp.gmail.com

Restart the OpenKM service for the changes to take effect.

Properties

Properties

Date

2021-06-01

Applies to

  • Core

Keywords

  • AllVersions
  •