# Unable to send email using SSL/TLS

**URL:** <https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313>\
**Category:** Alerting\
**Tags:** problem-notification\
**Created:** [September 16, 2020, 10:33am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313 "2020-09-16T10:33:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandre](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@sandre](https://community.dynatrace.com/u/sandre)\
**Post date:** [September 16, 2020, 10:33am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313/1 "2020-09-16T10:33:31Z")

</div>

We’ve tried using non-secure port like 25, it works. But when we are trying to set email notification using port 465, it failed and showing this error.

22020-09-16 08:50:43 UTC WARNING [\<default,0x1\>] [\<server\>, MailSenderImpl] Could not send mail to [alert.send@email.com](mailto:alert.send@email.com). NotificationResult [retryRecommended=true, message=Failed to send SMTP email using sender address: [alert.rcpt@email.com](mailto:alert.rcpt@email.com), reason: EmailException: Sending the email to the following server failed : smtp\_server:465 | **SSLException: Unrecognized SSL message, plaintext connection?** , exception=EmailException: Sending the email to the following server failed : smtp\_server:465, deliveryStatus=UNEXPECTED\_ERROR, response=null, uri=null, suppressed=[]]

Any ideas on how to solve it?

Thanks.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [September 16, 2020, 10:52am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313/2 "2020-09-16T10:52:20Z")

</div>

What’s the connection security protocol you checked? For 465 it should be STARTTLS or SSL/TLS

---

<div class="post-metadata">

**Author:** ![sandre](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@sandre](https://community.dynatrace.com/u/sandre)\
**Post date:** [September 16, 2020, 10:57am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313/3 "2020-09-16T10:57:25Z")

</div>

We have tried both STARTTLS and SSL/TLS option, but no luck. We are able to telnet that port though.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [September 16, 2020, 11:10am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313/4 "2020-09-16T11:10:36Z")

</div>

If you want to use port 25 leave “No encryption”. If your mail server doesn’t support SSL then there’s no way it’s gonna work.

---

<div class="post-metadata">

**Author:** ![sandre](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@sandre](https://community.dynatrace.com/u/sandre)\
**Post date:** [September 17, 2020, 3:39am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313/5 "2020-09-17T03:39:48Z")

</div>

We cannot use port 25 for security reason, only port 465 allowed in our company.

Our mail server support SSL, in fact our Appmon can connect to this mail server using port 465.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [September 17, 2020, 6:54am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313/6 "2020-09-17T06:54:37Z")

</div>

Can you please contact support so we can troubleshoot that at your cluster?

---

<div class="post-metadata">

**Author:** ![sandre](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@sandre](https://community.dynatrace.com/u/sandre)\
**Post date:** [September 17, 2020, 7:22am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313/7 "2020-09-17T07:22:35Z")

</div>

Okay then, I will contact support for this issue. Thank you for helping us.

---

<div class="post-metadata">

**Author:** ![Rebollar](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Rebollar](https://community.dynatrace.com/u/Rebollar)\
**Post date:** [May 26, 2021, 9:04am UTC](https://community.dynatrace.com/t/unable-to-send-email-using-ssl-tls/20313/8 "2021-05-26T09:04:40Z")

</div>

Hello,

I don’t know if this thread is read by anybody but I have the same problem.

I’m using Dynatrace Managed (v1.216.120 ) trying to connect to office365 server over SSL/TLS over port 587.

I contacted support but only a little log lines was provided with the same error reported by Sandre.

I also have a trace for the network team showing allowed connections and inmediately finish with a “tcp-rst-from-client” reason, not the normal “tcp-fin”. Not interception on the FW side.

Sandre (or anyboy) have you find out a solutionfor this issue?

Thanks in advance.
