2021.06.16 08:47 PM - edited 2021.06.16 08:58 PM
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[`to`subject`body!(`$"YOURNAME@DOMAIN.COM";"Test email";"This is a test email")]
Further reading here:
Best regards,
David
2021.06.17 04:35 AM
Solved an ongoing issue we have had for months, brilliant!
2021.06.16 11:28 PM
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
2021.06.16 11:42 PM
I hope it helps solve your issue adrianosm_ 🙏🏻
2021.06.17 10:23 PM
It solved our issue. 😄
Now we are able to send emails using KX 4.6.1P3 + Java 8
cheers
2021.06.17 04:35 AM
Solved an ongoing issue we have had for months, brilliant!
2021.06.17 04:41 AM
Thanks for letting me know, I'm glad this post helped you Ciarán! 😊
2021.06.17 04:52 AM
Really Helpful! Thanks!
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.