cancel
Showing results for 
Search instead for 
Did you mean: 

Enforcing SSL protocols between Platform JEMAIL and SMTP server

dcrossey
New Contributor III
New Contributor III

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:

dcrossey_0-1623901046179.png

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

dcrossey_5-1623901461428.png

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:

dcrossey_2-1623901133625.png

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

dcrossey_3-1623901264937.png

Now we can establish the TLS connection and send emails out 📬

dcrossey_4-1623901327572.png

Sample email API call:

 

.email.send[`to`subject`body!(`$"YOURNAME@DOMAIN.COM";"Test email";"This is a test email")]

 

Further reading here:

Best regards,

David

 

David
1 ACCEPTED SOLUTION

cmulvaney
New Contributor
New Contributor

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

View solution in original post

6 REPLIES 6

User
Not applicable

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

dcrossey
New Contributor III
New Contributor III

I hope it helps solve your issue adrianosm_ 🙏🏻

David

User
Not applicable

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

cmulvaney
New Contributor
New Contributor

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

dcrossey
New Contributor III
New Contributor III

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

David

gbrennan
New Contributor
New Contributor

Really Helpful! Thanks!