Message transport
An email address consists of two parts, a local part and a domain; if the domain is a domain name rather than an IP address then the SMTP client uses the domain name to look up the mail exchange IP address. The general format of an email address is ''local-part''@''domain'', e.g. jsmith@Syntax
The format of an email address is ''local-part@domain'', where the local part may be up to 64 octets long and theLocal-part
The local-part of the email address may be unquoted or may be enclosed in quotation marks. If unquoted, it may use any of theseA
to Z
and a
to z
* digits 0
to 9
* printable characters !#$%&'*+-/=?^_`~
* dot .
, provided that it is not the first or last character and provided also that it does not appear consecutively (e.g., John..Doe@example.com
is not allowed).
If quoted, it may contain Space, Horizontal Tab (HT), any ASCII graphic except Backslash and Quote and a quoted-pair consisting of a Backslash followed by HT, Space or any ASCII graphic; it may also be split between lines anywhere that HT or Space appears. In contrast to unquoted local-parts, the addresses ".John.Doe"@example.com
, "John.Doe."@example.com
and "John..Doe"@example.com
are allowed.
The maximum total length of the local-part of an email address is 64 octets.
Note that some mail servers support wildcard recognition of local parts, typically the characters following a plus and less often the characters following a minus, so fred+bah@domain and fred+foo@domain might end up in the same inbox as fred+@domain or even as fred@domain. This can be useful for tagging emails for sorting (see below), and for spam control. Braces
are also used in that fashion, although less often.
* space and special characters "(),:;<>@ /code> are allowed with restrictions (they are only allowed inside a quoted string, as described in the paragraph below, and in that quoted string, any backslash or double-quote must be preceded once by a backslash);
* comments are allowed with parentheses at either end of the local-part; e.g., john.smith(comment)@example.com
and (comment)john.smith@example.com
are both equivalent to john.smith@example.com
.
In addition to the above ASCII characters, international characters above U+007F, encoded as UTF-8
UTF-8 is a variable-width encoding, variable-length character encoding used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode'' (or ''Universal Coded Character Set'') ''Transformation Format 8-bit'' ...
, are permitted by RFC 6531 , though even mail systems that support SMTPUTF8 and 8BITMIME may restrict which characters to use when assigning local-parts.
A local part is either a Dot-string or a Quoted-string; it cannot be a combination.
Quoted strings and characters, however, are not commonly used. RFC 5321 also warns that "a host that expects to receive mail SHOULD avoid defining mailboxes where the Local-part requires (or uses) the Quoted-string form".
The local-part postmaster
is treated specially—it is case-insensitive, and should be forwarded to the domain email administrator. Technically all other local-parts are case-sensitive, therefore jsmith@example.com
and JSmith@example.com
specify different mailboxes; however, many organizations treat uppercase and lowercase letters as equivalent. Indeed, RFC 5321 warns that "a host that expects to receive mail SHOULD avoid defining mailboxes where ... the Local-part is case-sensitive".
Despite the wide range of special characters which are technically valid, organisations, mail services, mail servers and mail clients in practice often do not accept all of them. For example, Windows Live Hotmail
Outlook.com is a webmail service that is part of the Microsoft 365 product family. It offers mail, Calendaring software, calendaring, Address book, contacts, and Task management, tasks services.
Founded in 1996 by Sabeer Bhatia and Jack Smit ...
only allows creation of email addresses using alphanumerics, dot (.
), underscore (_
) and hyphen (-
). Common advice is to avoid using some special characters to avoid the risk of rejected emails.
Domain
The domain name
A domain name is a string that identifies a realm of administrative autonomy, authority or control within the Internet. Domain names are often used to identify services provided through the Internet, such as websites, email services and more. As ...
part of an email address has to conform to strict guidelines: it must match the requirements for a hostname
In computer networking, a hostname (archaically nodename) is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication, such as the World Wide Web. Hos ...
, a list of dot-separated DNS
The Domain Name System (DNS) is a hierarchical and distributed naming system for computers, services, and other resources in the Internet or other Internet Protocol (IP) networks. It associates various information with domain names assigned to ...
labels, each label being limited to a length of 63 characters and consisting of:
* uppercase and lowercase Latin
Latin (, or , ) is a classical language belonging to the Italic branch of the Indo-European languages. Latin was originally a dialect spoken in the lower Tiber area (then known as Latium) around present-day Rome, but through the power of the ...
letters A
to Z
and a
to z
;
* digits 0
to 9
, provided that top-level domain names are not all-numeric;
* hyphen -
, provided that it is not the first or last character.
This rule is known as the ''LDH rule'' (letters, digits, hyphen). In addition, the domain may be an IP address
An Internet Protocol address (IP address) is a numerical label such as that is connected to a computer network that uses the Internet Protocol for communication.. Updated by . An IP address serves two main functions: network interface ident ...
literal, surrounded by square brackets []
, such as jsmith@[192.168.2.1]
or jsmith@[IPv6:2001:db8::1]
, although this is rarely seen except in email spam. Internationalized domain names (which are encoded to comply with the requirements for a hostname
In computer networking, a hostname (archaically nodename) is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication, such as the World Wide Web. Hos ...
) allow for presentation of non-ASCII domains. In mail systems compliant with RFC 6531 and RFC 6532 an email address may be encoded as UTF-8
UTF-8 is a variable-width encoding, variable-length character encoding used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode'' (or ''Universal Coded Character Set'') ''Transformation Format 8-bit'' ...
, both a local-part as well as a domain name.
Comments are allowed in the domain as well as in the local-part; for example, john.smith@(comment)example.com
and john.smith@example.com(comment)
are equivalent to john.smith@example.com
.
Reserved domains
specifies that certain domains, for example those intended for documentation and testing, should not be resolvable and that as a result mail addressed to mailboxes in them and their subdomains should be non-deliverable. Of note for e-mail are ''example'', ''invalid'', ''example.com'', ''example.net'', and ''example.org''.
Examples
; Valid email addresses
: simple@example.com
: very.common@example.com
: disposable.style.email.with+symbol@example.com
: other.email-with-hyphen@example.com
: fully-qualified-domain@example.com
: user.name+tag+sorting@example.com
(may go to user.name@example.com
inbox depending on mail server)
: x@example.com
(one-letter local-part)
: example-indeed@strange-example.com
: test/test@test.com
(slashes are a printable character, and allowed)
: admin@mailserver1
(local domain name with no TLD
A top-level domain (TLD) is one of the domains at the highest level in the hierarchical Domain Name System of the Internet after the root domain. The top-level domain names are installed in the root zone of the name space. For all domains in ...
, although ICANN highly discourages dotless email addresses)
: example@s.example
(see the List of Internet top-level domains
This list of Internet top-level domains (TLD) contains top-level domains, which are those domains in the DNS root zone of the Domain Name System of the Internet. A list of the top-level domains by the Internet Assigned Numbers Authority (IANA) ...
)
: " "@example.org
(space between the quotes)
: "john..doe"@example.org
(quoted double dot)
: mailhost!username@example.org
(bangified host route used for uucp mailers)
: "very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual"@strange.example.com
(include non-letters character AND multiple at sign, the first one being double quoted)
: user%example.com@example.org
(% escaped mail route to user@example.com via example.org)
: user-@example.org
(local part ending with non-alphanumeric character from the list of allowed printable characters)
: postmaster@ 23.123.123.123/code> (IP addresses are allowed instead of domains when in square brackets, but strongly discouraged)
: postmaster@ Pv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334/code> (IPv6 uses a different syntax)
; Invalid email addresses
: Abc.example.com
(no @ character)
: A@b@c@example.com
(only one @ is allowed outside quotation marks)
: a"b(c)d,e:f;gi \k@example.com
(none of the special characters in this local-part are allowed outside quotation marks)
: just"not"right@example.com
(quoted strings must be dot separated or the only element making up the local-part)
: this is"not\allowed@example.com
(spaces, quotes, and backslashes may only exist when within quoted strings and preceded by a backslash)
: this\ still\"not\\allowed@example.com
(even if escaped (preceded by a backslash), spaces, quotes, and backslashes must still be contained by quotes)
: 1234567890123456789012345678901234567890123456789012345678901234+x@example.com
(local-part is longer than 64 characters)
: i_like_underscore@but_its_not_allowed_in_this_part.example.com
(Underscore is not allowed in domain part)
: QA conHOCOLATE contest.com
(icon characters)
Common local-part semantics
According to RFC 5321 2.3.11 ''Mailbox and Address,'' "...the local-part MUST be interpreted and assigned semantics only by the host specified in the domain of the address."
This means that no assumptions can be made about the meaning of the local-part of another mail server. It is entirely up to the configuration of the mail server.
Local-part normalization
Interpretation of the ''local part'' of an email address is dependent on the conventions and policies implemented in the mail server. For example, case sensitivity In computers, case sensitivity defines whether uppercase and lowercase letters are treated as distinct (case-sensitive) or equivalent (case-insensitive). For instance, when users interested in learning about dogs search an e-book, "dog" and "Dog" a ...
may distinguish mailboxes differing only in capitalization of characters of the local-part, although this is not very common. Gmail
Gmail is a free email service provided by Google. As of 2019, it had 1.5 billion active users worldwide. A user typically accesses Gmail in a web browser or the official mobile app. Google also supports the use of email clients via the POP an ...
ignores all dots in the local-part of a ''@gmail.com'' address for the purposes of determining account identity.
Subaddressing
Some mail services support a tag included in the local-part, such that the address is an alias to a prefix of the local part. For example, the address ''joeuser+tag@example.com'' denotes the same delivery address as ''joeuser@example.com''. RFC 5233 , refers to this convention as ''subaddressing'', but it is also known as ''plus addressing'', ''tagged addressing'' or ''mail extensions''.
Addresses of this form, using various separators between the base name and the tag, are supported by several email services, including Andrew Project
The Andrew Project was a distributed computing environment developed at Carnegie Mellon University (CMU) beginning in 1982. It was an ambitious project for its time and resulted in an unprecedentedly vast and accessible university computing infras ...
(plus), Runbox (plus), Gmail
Gmail is a free email service provided by Google. As of 2019, it had 1.5 billion active users worldwide. A user typically accesses Gmail in a web browser or the official mobile app. Google also supports the use of email clients via the POP an ...
(plus), Rackspace
Rackspace Technology, Inc. is an American cloud computing company based in Windcrest, Texas, an inner suburb of San Antonio, Texas. The company also has offices in Blacksburg, Virginia, and Austin, Texas, as well as in Australia, Canada, United ...
(plus), Yahoo! Mail
Yahoo! Mail is an email service launched on October 8, 1997, by the American company Yahoo (2017–present), Yahoo, Inc. The service is free for personal use, with an optional monthly fee for additional features. Business email was previously av ...
Plus (hyphen), Apple's iCloud
iCloud is a Personal cloud, cloud service from Apple Inc. launched on October 12, 2011 as a successor to MobileMe. , the service had an estimated 850 million users, up from 782 million users in 2016.
iCloud enables users to sync their data to t ...
(plus), Outlook.com (plus), Proton Mail (plus),
Fastmail (plus and Subdomain Addressing),
postale.io (plus),
Pobox (plus),
MeMail (plus),
MMDF (equals),
Qmail
qmail is a mail transfer agent (MTA) that runs on Unix. It was written, starting December 1995, by Daniel J. Bernstein as a more secure replacement for the popular Sendmail program. Originally license-free software, qmail's source code was ...
and Courier Mail Server
The Courier Mail Server is a mail transfer agent (MTA) server that provides SMTP, IMAP, POP3, SMAP, webmail, and mailing list services with individual components. It is best known for its IMAP server component.
Courier can function as an interme ...
(hyphen). Postfix and Exim
Exim is a mail transfer agent (MTA) used on Unix-like operating systems. Exim is free software distributed under the terms of the GNU General Public License, and it aims to be a general and flexible mailer with extensive facilities for checking ...
allow configuring an arbitrary separator from the legal character set.
The text of the tag may be used to apply filtering, or to create ''single-use'', or disposable email addresses.
In practice, the form validation of some web sites may reject characters such as "+" in an email address – treating them, incorrectly, as invalid characters. This can lead to an incorrect user receiving an e-mail if the "+" is silently stripped by a website without any warning or error messages. For example, an email intended for the user-entered email address foo+bar@example.com could be incorrectly sent to foobar@example.com. In other cases a poor user experience can occur if some parts of a site, such as a user registration page, allow the "+" character whilst other parts, such as a page for unsubscribing from a site's mailing list, do not.
Validation and verification
Email addresses are often requested as input to website as validation of user existence. Other validation methods are available, such as cell phone number validation, postal mail validation, and fax validation.
An email address is generally recognized as having two parts joined with an at-sign
The at sign, , is normally read aloud as "at"; it is also commonly called the at symbol, commercial at, or address sign. It is used as an accounting and invoice abbreviation meaning "at a rate of" (e.g. 7 widgets @ £2 per widget = £14), but ...
(''@''), although technical specification detailed in RFC 822 and subsequent RFCs are more extensive.
Syntactically correct, verified email addresses do not guarantee that an email box A mailboxISO/IEC 2382:2015 (also electronic mailbox, email box, email mailbox, e-mailbox) is the destination to which electronic mail messages are delivered.
It is the equivalent of a letter box in the postal system.
Definitions
A mailbox is identi ...
exists. Thus many mail servers use other techniques and check the mailbox existence against relevant systems such as the Domain Name System
The Domain Name System (DNS) is a hierarchical and distributed naming system for computers, services, and other resources in the Internet or other Internet Protocol (IP) networks. It associates various information with domain names assigned to ...
for the domain or using callback verification
Callback verification, also known as callout verification or Sender Address Verification, is a technique used by SMTP software in order to validate e-mail addresses. The most common target of verification is the sender address from the message e ...
to check if the mailbox exists. Callback verification is an imperfect solution, as it may be disabled to avoid a directory harvest attack
A directory harvest attack (DHA) is a technique used by spammers in an attempt to find valid/existent e-mail addresses at a domain by using brute force. The attack is usually carried out by way of a standard dictionary attack, where valid e-mail ...
, or callbacks may be reported as spam and lead to listing on a DNSBL
A Domain Name System blocklist, Domain Name System-based blackhole list, Domain Name System blacklist (DNSBL) or real-time blackhole list (RBL) is a service for operation of mail servers to perform a check via a Domain Name System (DNS) query whe ...
.
Several validation techniques may be utilized to validate a user email address. For example,
* Verification links: Email address validation is often accomplished for account creation on websites by sending an email to the user-provided email address with a special temporary hyperlink. On receipt, the user opens the link, immediately activating the account. Email addresses are also useful as means of delivering messages from a website, e.g., user messages, user actions, to the email inbox.
* Formal and informal standards: RFC 3696 provides specific advice for validating Internet identifiers, including email addresses. Some websites instead attempt to evaluate the validity of email addresses through arbitrary standards, such as by rejecting addresses containing valid characters, such as ''+'' and ''/'', or enforcing arbitrary length limitations. Email address internationalization provides for a much larger range of characters than many current validation algorithms allow, such as all Unicode characters above U+0080, encoded as UTF-8
UTF-8 is a variable-width encoding, variable-length character encoding used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode'' (or ''Universal Coded Character Set'') ''Transformation Format 8-bit'' ...
.
* Algorithmic tools: Large websites, bulk mailers and spammers require efficient tools to validate email addresses. Such tools depend upon heuristic algorithm
In mathematical optimization and computer science, heuristic (from Greek εὑρίσκω "I find, discover") is a technique designed for solving a problem more quickly when classic methods are too slow for finding an approximate solution, or whe ...
s and statistical model
A statistical model is a mathematical model that embodies a set of statistical assumptions concerning the generation of Sample (statistics), sample data (and similar data from a larger Statistical population, population). A statistical model repres ...
s.
* Sender reputation: An email sender's reputation may be used to attempt to verify whether the sender is trustworthy or a potential spammer. Factors that may be incorporated into an assessment of sender reputation include the quality of past contact with or content provided by, and engagement levels of, the sender's IP address or email address.
* Browser-based verification: HTML5 forms implemented in many browsers allow email address validation to be handled by the browser.
Some companies offer services to validate an email address, often using an application programming interface
An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how t ...
, but there is no guarantee that it will provide accurate results.
Internationalization
The IETF
The Internet Engineering Task Force (IETF) is a standards organization for the Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster or requirements and a ...
conducts a technical and standards working group devoted to internationalization issues of email addresses, entitled ''Email Address Internationalization'' (EAI, also known as IMA, Internationalized Mail Address). This group produced , and continues to work on additional EAI-related RFCs.
The IETF's EAI Working group published RFC 6530 "Overview and Framework for Internationalized Email", which enabled non-ASCII characters to be used in both the local-parts and domain of an email address. RFC 6530 provides for email based on the UTF-8
UTF-8 is a variable-width encoding, variable-length character encoding used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode'' (or ''Universal Coded Character Set'') ''Transformation Format 8-bit'' ...
encoding, which permits the full repertoire of Unicode
Unicode, formally The Unicode Standard,The formal version reference is is an information technology Technical standard, standard for the consistent character encoding, encoding, representation, and handling of Character (computing), text expre ...
. RFC 6531 provides a mechanism for SMTP servers to negotiate transmission of the SMTPUTF8
The Simple Mail Transfer Protocol (SMTP) is an Internet standard communication protocol for electronic mail transmission. Mail servers and other message transfer agents use SMTP to send and receive mail messages. User-level email clients typica ...
content.
The basic EAI concepts involve exchanging mail in UTF-8. Though the original proposal included a downgrading mechanism for legacy systems, this has now been dropped. The local servers are responsible for the local-part of the address, whereas the domain would be restricted by the rules of internationalized domain name
An internationalized domain name (IDN) is an Internet domain name that contains at least one label displayed in software applications, in whole or in part, in non-latin script or alphabet, such as Arabic, Bengali, Chinese (Mandarin, simplified ...
s, though still transmitted in UTF-8. The mail server is also responsible for any mapping mechanism between the IMA form and any ASCII alias.
EAI enables users to have a localized address in a native language script or character set, as well as an ASCII form for communicating with legacy systems or for script-independent use. Applications that recognize internationalized domain names and mail addresses must have facilities to convert these representations.
Significant demand for such addresses is expected in China, Japan, Russia, and other markets that have large user bases in a non-Latin-based writing system.
For example, in addition to the .in
.in (india) is the Internet country code top-level domain ( ccTLD) for India. It was made available in 1989, four years after original generic top-level domains such as .com, .net and the country code like .us. It is currently administe ...
top-level domain, the government of India in 2011 got approval for ".bharat", (from ''Bhārat Gaṇarājya
India, officially the Republic of India (Hindi: ), is a country in South Asia. It is the seventh-largest country by area, the second-most populous country, and the most populous democracy in the world. Bounded by the Indian Ocean on the so ...
''), written in seven different scripts for use by Gujrati, Marathi, Bangali, Tamil, Telugu, Punjabi and Urdu speakers. Indian company XgenPlus.com claims to be the world's first EAI mailbox provider, and the Government of Rajasthan
The Government of Rajasthan is the supreme governing authority of the Indian state of Rajasthan and its 33 districts. It consists of an executive, led by the Governor of Rajasthan, a judiciary and a legislative. Jaipur is the capital of Raja ...
now supplies a free email account on domain राजस्थान.भारत for every citizen of the state. A leading media house Rajasthan Patrika launched their IDN domain पत्रिका.भारत with contactable email.
Internationalization examples
The example addresses below would not be handled by RFC 5322 based servers, but are permitted by RFC 6530 . Servers compliant with this will be able to handle these:
* Latin alphabet
The Latin alphabet or Roman alphabet is the collection of letters originally used by the ancient Romans to write the Latin language. Largely unaltered with the exception of extensions (such as diacritics), it used to write English and the o ...
with diacritics
A diacritic (also diacritical mark, diacritical point, diacritical sign, or accent) is a glyph added to a letter or to a basic glyph. The term derives from the Ancient Greek (, "distinguishing"), from (, "to distinguish"). The word ''diacritic ...
: Pelé@example.com
* Greek alphabet
The Greek alphabet has been used to write the Greek language since the late 9th or early 8th century BCE. It is derived from the earlier Phoenician alphabet, and was the earliest known alphabetic script to have distinct letters for vowels as we ...
: δοκιμή@παράδειγμα.δοκιμή
* Traditional Chinese characters
Traditional Chinese characters are one type of standard Chinese character sets of the contemporary written Chinese. The traditional characters had taken shapes since the clerical change and mostly remained in the same structure they took at ...
: 我買@屋企.香港
* Japanese characters
The modern Japanese writing system uses a combination of logographic kanji, which are adopted Chinese characters, and syllabic kana. Kana itself consists of a pair of syllabaries: hiragana, used primarily for native or naturalised Japanese wo ...
: 二ノ宮@黒川.日本
* Cyrillic characters
The Cyrillic script ( ), Slavonic script or the Slavic script, is a writing system used for various languages across Eurasia. It is the designated national script in various Slavic languages, Slavic, Turkic languages, Turkic, Mongolic languages, ...
: медведь@с-балалайкой.рф
* Devanagari characters: संपर्क@डाटामेल.भारत
Internationalization support
* Postfix mailer supports internationalized mail since 2015-02-08 with a stable release 3.0.0.
* Google has support for sending emails to and from internationalized domains, but does not allow the registration of non-ASCII email addresses.
* Microsoft added similar functionality in Outlook 2016
* DataMail launches internationalized email support for 8 Indian languages using the XgenPlus email platform in India.
Standards documents
* – Simple Mail Transfer Protocol (Obsoleted by RFC 2821)
* – Standard for the Format of ARPA Internet Text Messages (Obsoleted by RFC 2822) (Errata)
* – Domain names, Implementation and specification (Errata)
* – Requirements for Internet Hosts, Application and Support (Updated by RFC 2821, RFC 5321) (Errata)
* – Mailbox Names for Common Services, Roles and Functions (Errata)
* – Simple Mail Transfer Protocol (Obsoletes RFC 821, Updates RFC 1123, Obsoleted by RFC 5321) (Errata)
* – Internet Message Format (Obsoletes RFC 822, Obsoleted by RFC 5322) (Errata)
* – Application Techniques for Checking and Transformation of Names (Errata)
* – IP Version 6 Addressing Architecture (Updated by RFC 5952) (Errata)
* – Simple Mail Transfer Protocol (Obsoletes RFC 2821, Updates RFC 1123) (Errata)
* – Internet Message Format (Obsoletes RFC 2822, Updated by RFC 6854) (Errata)
* – A Recommendation for IPv6 Address Text Representation (Updates RFC 4291) (Errata)
* – Overview and Framework for Internationalized Email (Obsoletes RFC 4952, 5504, 5825)
* – SMTP Extension for Internationalized Email (Obsoletes RFC 5336)
* – Update to Internet Message Format to Allow Group Syntax in the "From:" and "Sender:" Header Fields (Updates RFC 5322)
See also
* Anti-spam techniques
Various anti-spam techniques are used to prevent email spam (unsolicited bulk email).
No technique is a complete solution to the spam problem, and each has trade-offs between incorrectly rejecting legitimate email (false positives) as opposed to ...
* Email client
An email client, email reader or, more formally, message user agent (MUA) or mail user agent is a computer program used to access and manage a user's email.
A web application which provides message management, composition, and reception functio ...
* Email box A mailboxISO/IEC 2382:2015 (also electronic mailbox, email box, email mailbox, e-mailbox) is the destination to which electronic mail messages are delivered.
It is the equivalent of a letter box in the postal system.
Definitions
A mailbox is identi ...
* Email authentication Email authentication, or validation, is a collection of techniques aimed at providing verifiable information about the origin of email messages by validating the domain ownership of any message transfer agents (MTA) who participated in transferring ...
* International email International email arises from the combined provision of ''internationalized domain names'' (IDN) and ''email address internationalization'' (EAI).Started with: The result is email that contains international characters (characters which do not e ...
Notes
References
External links
*
*
* {{Commons category inline, Email address
Address
An address is a collection of information, presented in a mostly fixed format, used to give the location of a building, apartment, or other structure or a plot of land, generally using political boundaries and street names as references, along ...