# SSL/TLS for port 465 (Net::ReadTimeout) - undocumented solution

**URL:** <https://meta.discourse.org/t/ssl-tls-for-port-465-net-readtimeout-undocumented-solution/270632>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [July 5, 2023, 11:20am UTC](https://meta.discourse.org/t/ssl-tls-for-port-465-net-readtimeout-undocumented-solution/270632 "2023-07-05T11:20:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [July 5, 2023, 11:30am UTC](https://meta.discourse.org/t/ssl-tls-for-port-465-net-readtimeout-undocumented-solution/270632/2 "2023-07-05T11:30:26Z")

</div>

There are two ways of doing SSL with SMTP.

1. Connect normally, usually over port 25 or 587, and issue a STARTTLS command. This is what `DISCOURSE_SMTP_ENABLE_START_TLS` is for.
2. Connect with SSL from the start, usually over port 465. This is what `DISCOURSE_SMTP_FORCE_TLS` is for.

---

_[View the full topic](https://meta.discourse.org/t/ssl-tls-for-port-465-net-readtimeout-undocumented-solution/270632)._
