The discussion revolves around the use of SMTPS port 465 for sending emails with Discourse. The original poster, manishramteke, is experiencing issues with sending emails using port 465, despite it working with their email client. mpalmer suggests that the issue might be with the mail provider or server configuration, and recommends using port 25 or 587 with STARTTLS instead.
However, vados points out that implicit TLS over port 465 is actually the recommended approach, citing an RFC from 2018. djr013 also mentions this RFC, which recommends using port 465 for implicit TLS.
Godmar_Back asks how to configure Discourse to use implicit TLS on port 465, and shares a proposed fix in a pull request. silverdr is looking for practical solutions to send emails over SMTPS on port 465.
The discussion highlights the importance of understanding the differences between SMTPS, STARTTLS, and implicit TLS, and the need for Discourse to support implicit TLS on port 465.
Using email service from godaddy and smtp ssl port 465 in config, but sending mail fails with
Job exception: end of file reached.
For me 465 works with email client such as thunderbird. What can be done to make email work with discourse on port 465.
Running SMTP on other port such as 3535 works well. If I go with non secure port will security of my email contents and credentials get compromised?
This sounds like a problem with your mail provider or the server running Discourse (such as a firewall issue). It is not a problem with Discourse itself.
Also note that port 465 hasn’t been for SMTPS for so long that the IETF has removed its registration as a well-known port. You should use port 25 or 587 with STARTTLS.
I am able to telnet port 465 from discourse server and no firewall is configured for now.
Email providers still supports 465 for secure connection for client which does not support STARTTLS. However that’s not the case here, so I can move to port 25 with STARTTLS on.