username @ gtld是否有效的电子邮件?即没有“域”部分,它只是主机名的TLD [英] Is username@gtld a valid email? i.e. there is no "domain" portion, it is just a TLD for the hostname

查看:125
本文介绍了username @ gtld是否有效的电子邮件?即没有“域”部分,它只是主机名的TLD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那么用户名@ gtld是否是有效的电子邮件?作为一个实际的例子,谷歌正在采购gTLDgmail。很明显,他们可以关联A记录,允许您键入 http:// gmail / 来访问该站点。但是,是否有任何禁止他们将MX记录与该记录关联的规范?允许人们发出替代地址username @ gmail?

So would username@gtld be a valid email? As a practical example google is purchasing the gTLD "gmail". Obviously they can associate A records with that permitting you to just type http://gmail/ to access the site. But, are there any specs that prohibit them from associating MX records with that as well, allowing folks to give out an alternative address username@gmail?

我问,因为我想确保我们的电子邮件验证器是未来证明和技术上正确的。

I ask because I want to make sure our email validator is future proof and technically correct.

推荐答案

我想我回答了自己的问题定义有效电子邮件地址的 rfc5322 的第3.4.1节说明:

I think I answered my own question. Section 3.4.1 of rfc5322 which defines a valid email address states:


addr-spec = local-part@domain
[...]
domain = dot-atom / domain-literal / obs-domain
[...]
域部分标识邮件传递到的点。在点原子形式中,这被解释为[RFC1034],[RFC1035]和[RFC1123]中所述的因特网域名(主机名称或邮件交换机名称)。在领域文字形式中,域被解释为特定主机的字面互联网地址。

addr-spec = local-part "@" domain [...] domain = dot-atom / domain-literal / obs-domain [...] The domain portion identifies the point to which the mail is delivered. In the dot-atom form, this is interpreted as an Internet domain name (either a host name or a mail exchanger name) as described in [RFC1034], [RFC1035], and [RFC1123]. In the domain-literal form, the domain is interpreted as the literal Internet address of the particular host.

gmail将是一个有效的域名和主机名,因此某人@ gtld是有效的电子邮件地址。

"gmail" would be a valid domain and host name and thus someone@gtld is a valid email address.

这篇关于username @ gtld是否有效的电子邮件?即没有“域”部分,它只是主机名的TLD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆