Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are email addresses case sensitive?

Tags:

email

smtp

rfc

I've read that by standard first part of e-mail is case sensitive, however I've tried to send e-mail to [email protected], [email protected] and [email protected] - it has arrived in each case.

How do mail servers handles usernames? Is it possible to miss with case and that message wouldn't be delivered? Is it really very important to use exactly same letter case, as was written while registering when giving your e-mail address?

like image 908
Stalker Avatar asked Mar 21 '12 15:03

Stalker


People also ask

Do capital letters affect email addresses?

If you're wondering, “do capital letters matter in email addresses?”, the simple answer here is no. Capitals don't really matter in email addresses. They aren't case-sensitive, unlike passwords. That's because modern mail servers essentially ignore capital letters.

Is Gmail email case sensitive?

Gmail addresses are not case sensitive, meaning the email service doesn't distinguish between versions of the address with or without capitalized letters, so long as the spelling is the same.


1 Answers

From RFC 5321, section 2.3.11:

The standard mailbox naming convention is defined to be "local-part@domain"; contemporary usage permits a much broader set of applications than simple "user names". Consequently, and due to a long history of problems when intermediate hosts have attempted to optimize transport by modifying them, the local-part MUST be interpreted and assigned semantics only by the host specified in the domain part of the address.

So yes, the part before the "@" could be case-sensitive, since it is entirely under the control of the host system. In practice though, no widely used mail systems distinguish different addresses based on case.

The part after the @ sign however is the domain and according to RFC 1035, section 3.1,

"Name servers and resolvers must compare [domains] in a case-insensitive manner"

In short, you are safe to treat email addresses as case-insensitive.

like image 63
Mike E Avatar answered Oct 17 '22 11:10

Mike E