什么是最长的电子邮件地址?

时间:2011-10-10 19:23:34

标签: email standards

  

可能重复:
  Exceeding Max Email Address Sizes

电子邮件地址的长度是否存在技术限制?那些不同的主要电子邮件提供商(谷歌,微软等)是否存在实际限制?

在法律上或事实上,电子邮件地址中的字符数是否有限制?

2 个答案:

答案 0 :(得分:39)

  

电子邮件地址的最大长度是多少?

     

254个字符

     

“这源于域的最大长度的简单算法   (255个字符)+邮箱的最大长度(64个字符)+ @   符号= 320个字符。错误。实际记录了这个芥末   RFC3696的原始版本。它在勘误表中得到纠正。   实际上RFC5321对路径元素的限制   SMTP事务256个字符。但这包括有角度的括号   在电子邮件地址周围,所以电子邮件地址的最大长度是   254个字符。“ - Dominic Sayers

- > https://web.archive.org/web/20130710170052/http://www.eph.co.uk/resources/email-address-length-faq/

答案 1 :(得分:7)

法律上:

地址的每个部分都有多个限制。

RFC5322指定邮件行必须少于998个字符,这会使地址的上限略短于此(需要包含该命令)。

但是RFC5321指定:

4.5.3.1.1.  Local-part

The maximum total length of a user name or other local-part is 64
octets.

4.5.3.1.2.  Domain

The maximum total length of a domain name or number is 255 octets.

4.5.3.1.3.  Path

The maximum total length of a reverse-path or forward-path is 256
octets (including the punctuation and element separators).

因此,用户名为64个八位字节,< username @ domain>为254。

事实上:

您可以使用plus语法自行测试合规性。发送电子邮件至 yourusername + whateveryouwant @ yourdomain