Consider switch default TLS port to be 587 instead of 465
Opened this issue · 0 comments
Hi,
I noticed the default port is 465 and I believe it should be 587 as this is the standardized port for TLS email.
Line 51 in 4176469
Port 465 is mentioned in this RFC https://www.rfc-editor.org/rfc/rfc8314.html and has this section describing the IANA registration issue with 465 https://www.rfc-editor.org/rfc/rfc8314.html#section-7.3 .
Here is a list of articles / providers that mention 587 as the more appropriate port to use:
- RFC for mail submission https://www.rfc-editor.org/rfc/rfc6409.html
- IANA port for message submission https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=587
-
- IANA port for message submission on port 465 https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=465
- https://docs.hetzner.com/robot/dedicated-server/faq/faq/#why-can-i-not-send-any-mails-
from-my-server
As an alternative, you can also use port 587 to send emails via external mail delivery services. Port 587 is not blocked and can be used without sending a limit request.
SendGrid accepts unencrypted and TLS connections on ports 25, 587, & 2525. You can also connect via SSL on port 465. Many hosting providers and ISPs block port 25 as a default practice. If your Telent session continually times out or will not connect using port 25, it is likely that your ISP or hosting provider is blocking the port. You can contact your host/ISP to find out which ports are open for outgoing SMTP relay. We recommend using port 587 to avoid any rate limiting that your server host may apply.