You Know What an Email Address Is, Right?

Originally published at: You Know What an Email Address Is, Right? - TidBITS

Developer Samwho has built a 21-question quiz that tests your knowledge of what is and is not allowed in an email address. It starts easy but gets hard fast. Familiarity with RFC 822, RFC 2822, RFC 5322, and RFC 6532 is useful, but you’ll still be surprised (or annoyed) by some of the answers, such as :point_right:@:point_left:.

Email quiz

4 Likes

Wow. That is pretty tricky. I got 16/21 and I’ve been working with the Internet for decades.

2 Likes

Holy smokes! I spent a lot of time on validating “common” email addresses so I thought I’d do OK.

Not! Whatta nightmare! :smiley: :smiley:

Dave

3 Likes

Er, what’s our definition of valid? Is :point_right:@:point_left: getting delivered to someone?

1 Like

12/21. Well, at least it’s (marginally) more than 50%.

2 Likes

16/21 but that only means my guesses were lucky.

Ditto – 16/21 but at least four answers were blind luck!

Lovely quiz thank you Adam!

1 Like

16/21, however I verified that all the claimed address-literal examples (“[…]” domain part) are categorically wrong, which irritated me because I reviewed RFC 5321, where they’re specified, before publication of that document (I was astonished to find that John Klensin was kind enough to acknowledge me in the document for some of my comments about implicit MX logic on IPv6). As an example, IPv6 address literals always use “ipv6:”, so “magic@[::1]” should actually be “magic@[ipv6:::1]”. I imagine his testing was purely based on whether the library validated in a generic way, but it certainly would not be delivered as indicated.

But, still. I was gratified to get a lot of the trickier 822/2822/5322 syntax right. I’m surprised he didn’t torment us all with group syntax (“group:one@example.com,two@example.net;”, or, simply, “undisclosed-recipients:;”) which is, incredibly, still used by Apple Mail when sending to distribution lists, though a lot of modern software just chokes on it in unhelpful ways. Or, there’s the good old RFC 821 (original SMTP spec) source routing: “@central.hub,@connected.gateway:final-recipient@leaf.site”, which was very handy for working around IP blocks even in the early 00s, but inevitably, it faded into obsolescence as the Internet and direct MX routing became the only sensible way to route mail.

Anyway, great fun, thanks for sharing. Email is a wee obsession of mine, as I’m sure you’ll have guessed by now. :slight_smile: )

4 Likes

As the survey said, anything that is acceptable according to the letter of the relevant RFCs.

Whether or not you’ll find a mail server that will accept such messages is a completely separate question.

Okay, this is going to be bad.

I got 13/n, which is about what I’d expect.

I once tried to Google up a regex to validate email addresses, and the one that I finally found that claimed to be fully compliant wrapped around to like six lines.

1 Like

Unable to take the quiz because Avast is saying the site is infected.

I got this…. What a quiz though. Gasped a few times.

Yay! You’re average! Time to start making plans for what you’ll do when an LLM takes your job.

Friend of TidBITS Paul Kafasis shared this bit in email:

An interesting note related to https://tidbits.com/2025/08/21/you-know-what-an-email-address-is-right/: HTML5 has its own definition of a valid email!

HTML Standard

This requirement is a willful violation of RFC 5322, which defines a syntax for email addresses that is simultaneously too strict (before the “@” character), too vague (after the “@” character), and too lax (allowing comments, whitespace characters, and quoted strings in manners unfamiliar to most users) to be of practical use here.

It seems like HTML5 overruled the specs, and it’s widespread enough that practically, that might be a better “real” definition of a valid email address.

I love the fact that the HTML 5 spec defines a “willful violation.”

5 Likes

See, that’s the issue. What definition of an allowable email address is the server using? Clearly different than what the RFCs outline. If a tree falls in the…if an email address can’t actually be used, is it actually “valid”?

2 Likes

What issue? This isn’t a CNA exam. It’s a silly web-quiz, and the quiz explicitly states on the first page what criteria it is using.

I don’t think there is a single person on Earth who will see this site as anything more than a bit of harmless fun.

1 Like

Hi! Single person here! And it’s not the quiz, it’s the fact that a valid email address might not actually, you know, be valid.

1 Like

Enough with the back-and-forth. Yes, people have quibbles with some of the examples and answers, but the quiz is just meant to be a fun illustration of how wonky things can get while still theoretically adhering to a spec.

2 Likes

XKCD summed things up concisely:

3 Likes

Ironically, since this is all about what’s valid and invalid, my ISP (Astound) is blocking the domain e-mail.wtf, or maybe the whole HLD, and I had to whitelist it.

I scored 8/21. Yeesh. I taught hundreds of first- and second-year university students how to use email starting in 1988. Thank goodness I’ve retired.