大网数据广告活动
服务器运维问答

Why is port 587 preferred over port 465 in SMTP?

· 52CE 我爱测

I have recently been developing a C# client which sends emails via a SMTP server. However I have been as to what the different terms ment, like: STARTTLS/TLS/SSL... I had a faint idea of what they ment out of context, but email w…

问题原文

原帖链接 · Choppa dude · CC BY-SA 4.0

I have recently been developing a C# client which sends emails via a SMTP server. However I have been as to what the different terms ment, like: STARTTLS/TLS/SSL... I had a faint idea of what they ment out of context, but email wise i had no clue.

Upon further investigating I found that SMTP clients communicate with servers in 2 different ways (2 encrypted ways); Explicit SSL/TLS & Implicit SSL/TLS.

From what I understand Explicit SSL/TLS is how STARTTLS works, it asks the server on an unsecured connection if TLS is supported and if it is, it continues with an encrypted connection. Implicit TLS however is secure from the begining of the connection to the end, it is never unsecure.

I might be wrong about this, please correct me if I am.

The question is why is port 587 (Explicit SSL/TLS) the preferred port over port 465 (Implicit SSL/TLS).

I know that port 465 is deprecated and I can see the usefulness of port 587 that it works both encrypted and unencrypted and its up to the client to find out what the server supports.

But I rarely see security updates which is in favor of ease of use, which is why i am confused. Why did we go from fully secure to secure only some of the way?

I hope my question makes sense.

已采纳解答

原帖链接 · anx · CC BY-SA 4.0

Why is port 587 preferred?

Any document claiming so is historic. Today, port 465 is preferred.

The reason it used to be preferred (by some, not all operators):

  • after STARTTLS was formalized, compatibility & security considerations were different
  • a suitable and already used TCP port number had been reassigned by IANA

The reason we should now all prefer implicit TLS:

  • unnecessary workarounds and compatibility layers added to otherwise robust security mechanisms are considered undesirable
  • an alternate port usage has been assigned to resolve the port conflict
  • we now have little use case left for offering optional transport security

Everyone is advised to migrate to implicit TLS. Please only send mail using secure transports. Please discourage or remove unnecessary complexity and failure modes.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-05-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。