-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the right domain length? #655
Comments
It sounds like it should be 254. |
You misunderstood.
This does not concern the length of the domain part but the entire email address. Furthermore there is an error in this errata:
and (https://tools.ietf.org/html/rfc2821#page-55):
so the total length of forward-path (the email address) is well 256 and not 254. Concerning the domain length:
RFC 2821 says (https://tools.ietf.org/html/rfc2821#page-55):
In summary:
References |
I will try to do more investigation on how to solve this bug. |
It seems it supports only 64 characters long domain parts, so it supports the same length for both local and domain parts??? |
The 'domain part' is allowed to be longer than 64 characters, see the following part of the source code; validator.js/src/lib/isEmail.js Lines 135 to 140 in 531dc7f
|
According to this guy the domain length should be 254 chars at most, but the isEmail function it's checking for a 256 chars length, that is was once considered ok, but it seems like it was an errata
Which one is correct?
The text was updated successfully, but these errors were encountered: