# SMTP notification error "Could not convert socket to TLS"

**URL:** <https://forum.opensearch.org/t/smtp-notification-error-could-not-convert-socket-to-tls/22805>\
**Category:** Alerting\
**Tags:** troubleshoot\
**Created:** [December 15, 2024, 3:42pm UTC](https://forum.opensearch.org/t/smtp-notification-error-could-not-convert-socket-to-tls/22805 "2024-12-15T15:42:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![latituder](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@latituder](https://forum.opensearch.org/u/latituder)\
**Post date:** [December 15, 2024, 3:42pm UTC](https://forum.opensearch.org/t/smtp-notification-error-could-not-convert-socket-to-tls/22805/1 "2024-12-15T15:42:26Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
2.18.0

**Describe the issue** :

my smtp server requires start\_tls.  
I tried to send a test email based on my smtp configuration, got:

“delivery\_status”: {  
“status\_code”: “424”,  
“status\_text”: “sendEmail Error, status:Could not convert socket to TLS”  
}

my smtp server is protected by a private CA.

how to config the CA root cert into notification plugin, so the smtp can have tls1.3 handshake with opensearch?  
and if possible to specify to use smtp:// as the protocal? i think the smtps:// may not supported by my smtp server  
**Configuration** :  
{  
“config\_id”: “smtp”,  
“config”: {  
“name”: “smtp”,  
“description”: “”,  
“config\_type”: “smtp\_account”,  
“is\_enabled”: true,  
“smtp\_account”: {  
“host”: “”,  
“port”: 587,  
“method”: “start\_tls”,  
“from\_address”: “”  
}  
}  
}

{  
“config\_id”: “email-notification”,  
“config”: {  
“name”: “email-notification”,  
“description”: “email notification”,  
“config\_type”: “email”,  
“is\_enabled”: true,  
“email”: {  
“email\_account\_id”: “smtp”,  
“recipient\_list”: [  
{  
“recipient”: “”  
}  
],  
“email\_group\_id\_list”:   
}  
}  
}  
**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![latituder](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@latituder](https://forum.opensearch.org/u/latituder)\
**Post date:** [December 16, 2024, 8:58am UTC](https://forum.opensearch.org/t/smtp-notification-error-could-not-convert-socket-to-tls/22805/2 "2024-12-16T08:58:30Z")

</div>

issue resolved by following [What CA is used by notifications channels? - Plugins / Alerting - OpenSearch](https://forum.opensearch.org/t/what-ca-is-used-by-notifications-channels/11451/4) to add the CA cert to /usr/share/opensearch/jdk/lib/security/cacerts

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [February 14, 2025, 8:59am UTC](https://forum.opensearch.org/t/smtp-notification-error-could-not-convert-socket-to-tls/22805/3 "2025-02-14T08:59:28Z")

</div>

Closed on February 14, 2025, 8:59am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
