Enforcing SSL protocols between Platform JEMAIL and SMTP server

Hey all,

If you are using the bundled java email engine in KX Platform to send emails to an (SMTP) relay server using TLS, and you’ve recently upgraded/or the SMTP has been upgraded, and you’ve seen an error where the TLS connection cannot be established (after working previously), such as:

You will need to add a new parameter to your  DS_JEMAIL_SERVER  config to explicitly set the SSL protocol that is accepted by your SMTP relay server.

For example:

mail.smtp.ssl.protocols Specifies the SSL protocols that will be enabled for SSL connections

mail.smtp.ssl.protocols=TLSv1.2

Note - I’ve redacted the from / host / trust addresses.

After updating your configuration, remember to bounce your java email process to pick up the new configuration:

You should see a similar message to this on your jemail process log after restarting:

Now we can establish the TLS connection and send emails out 

Sample email API call:

 

.email.send[tosubjectbody!($"YOURNAME@DOMAIN.COM";“Test email”;“This is a test email”)]

 

Further reading here:

Best regards,

David

 

Oh yes, this looks like the solution for a problem I have been facing this week. We even lodged a bug yesterday via the support system. I will try it tomorrow morning
Cheers,
Adriano

I hope it helps solve your issue adrianosm_ 

Solved an ongoing issue we have had for months, brilliant!

Thanks for letting me know, I’m glad this post helped you Ciarán!

Really Helpful! Thanks!

It solved our issue.
Now we are able to send emails using KX 4.6.1P3 + Java 8
cheers