What is the actual minimum length of an email address as defined by the IETF?

ValidationEmailEmail Validation

Validation Problem Overview


I'm specifically looking for the minimum length of the prefix and domain.

I've seen conflicting information and nothing that looks authoritative.

For reference, I found this page which claims that a one character email address is functional:

http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=176

I tried validating email addresses at Gmail and they expect prefix greater than or equal to 6.

These are obviously way off.

My web framework expects prefix greater than or equal to 2.

Validation Solutions


Solution 1 - Validation

The shortest valid email address may consist of only two parts: name and domain.

name@domain

Since both the name and domain may have the length of 1 character, the minimal total length resolves to 3 characters.

Solution 2 - Validation

well the problem is really the question.. email depends on if it is sent over the internet, or within a closed system (eg intranet). over the internet, I believe [email protected] is the shortest email possible (e.g. google's G.CN for china would result in the shortest email adress possible, e.g. [email protected], which is 6 characters long). on the intranet however, it is an entirely different thing, and i@y would be possible, which is just 3 characters long.

Solution 3 - Validation

I believe the standard you are looking for is RFC 2822 - Internet Message Format

More specific info on email address restrictions in RFC 3696 - Section 3

To quote the spec: > Contemporary email addresses consist of a "local part" separated from a "domain part" (a fully-qualified domain name) by an at-sign ("@").

So three characters is the shortest.

I originally got this info from Phil Haack's blog post.

Solution 4 - Validation

Many mail-servers will not accept the email-address if there aren't at least 2 characters before the @. That doesn't make it an invalid address, but if the servers don't know that, it sure can lead to a lot of problems.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDavid WatsonView Question on Stackoverflow
Solution 1 - Validationuser151323View Answer on Stackoverflow
Solution 2 - ValidationMarkView Answer on Stackoverflow
Solution 3 - ValidationJosh StodolaView Answer on Stackoverflow
Solution 4 - ValidationLars MunkholmView Answer on Stackoverflow