Email SSL/TLS Issue - Joget v6.0.31

Confluence User - 15 Mar, 2022

Hi Team,

We are using email tool in our workflow in which we are using SSL/TLS setting to send the emails to the users but SSL/TLS setting is not working with 578 port number and 465 port number as well. But if we are trying to send mails with non - SSL setting it works fine then. We are not able to understand why this issue occurs because 2-3 months ago it was working fine. Please check the following error and let us know what could be the issue?


Error Description -

ERROR 04 Mar 2022 17:57:19 org.joget.apps.app.lib.EmailTool - org.apache.commons.mail.EmailException: Sending the email to the following server failed : p3plcpnl0897.$
org.apache.commons.mail.EmailException: Sending the email to the following server failed : p3plcpnl0897.prod.phx3.secureserver.net:465
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)
at org.apache.commons.mail.Email.send(Email.java:1448)
at org.joget.apps.app.lib.EmailTool$1.run(EmailTool.java:241)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.joget.commons.util.PluginThread.run(PluginThread.java:22)
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: p3plcpnl0897.prod.phx3.secureserver.net, port: 465;
nested exception is:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) 

workflow;email;emailtools;ssl;plugins

1


16 Mar, 2022
confluenceUser
confluenceUser

OpenJDK has disabled TLS 1.0 and 1.1 availability. Follow the suggestion in https://stackoverflow.com/questions/38205947/sslhandshakeexception-no-appropriate-protocol. Add "-Dmail.smtp.starttls.enable=true -Dmail.smtp.ssl.protocols=TLSv1.2" (key in without the quotation marks) in the Joget Tomcat startup script.

This issue has also been fixed in the latest Joget v6 and DX 7:
- Changes in 7.0.17: Fixed: jw-community - SSLHandshakeException when sending an email using TLS 1.2 in the latest OpenJDK.
- Changes in 7.0.17: Fixed: joget-enterprise - SSLHandshakeException when sending an email using TLS 1.2 in the latest OpenJDK.
- Changes in 6.0.34: Fixed: jw-community - SSLHandshakeException when sending an email using TLS 1.2 in latest OpenJDK.
- Changes in 6.0.32: Fixed: jw-community - SSLHandshakeException when sending an email using TLS 1.2 in latest OpenJDK.

In the latest build, we have upgraded the JavaMail library to version 1.6.2 to support TLS 1.2, since OpenJDK has disabled TLS 1.0 and 1.1 availability by default in the security.properties file. Do consider upgrading to the latest Joget 6.0.34 (released on 14th Dec 2021) or DX 7.0.27 (released on 21 Jan 2022) to benefit from all the latest fixes and security patches. Thank you.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print