2023年09月01日 10:05
network working group j. yao, ed.
request for comments: 5336 w. mao, ed.
updates: 2821, 2822, 4952 cnnic
category: experimental september 2008
smtp extension for internationalized email addresses
status of this memo
this memo defines an experimental protocol for the internet
community. it does not specify an internet standard of any kind.
discussion and suggestions for improvement are requested.
distribution of this memo is unlimited.
abstract
this document specifies an smtp extension for transport and delivery
of email messages with internationalized email addresses or header
information. communication with systems that do not implement this
specification is specified in another document. this document
updates some syntaxes and rules defined in rfc 2821 and rfc 2822, and
has some material updating rfc 4952.
yao & mao experimental [page 1]
rfc 5336 eai smtp extension september 2008
table of contents
1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. role of this specification . . . . . . . . . . . . . . . . 3
1.2. terminology . . . . . . . . . . . . . . . . . . . . . . . 3
2. overview of operation . . . . . . . . . . . . . . . . . . . . 4
3. mail transport-level protocol . . . . . . . . . . . . . . . . 4
3.1. framework for the internationalization extension . . . . . 4
3.2. the utf8smtp extension . . . . . . . . . . . . . . . . . . 5
3.3. extended mailbox address syntax . . . . . . . . . . . . . 7
3.4. the alt-address parameter . . . . . . . . . . . . . . . . 9
3.5. alt-address parameter usage and response codes . . . . . . 10
3.6. body parts and smtp extensions . . . . . . . . . . . . . . 11
3.7. additional esmtp changes and clarifications . . . . . . . 11
3.7.1. the initial smtp exchange . . . . . . . . . . . . . . 12
3.7.2. mail exchangers . . . . . . . . . . . . . . . . . . . 12
3.7.3. trace information . . . . . . . . . . . . . . . . . . 12
3.7.4. utf-8 strings in replies . . . . . . . . . . . . . . . 13
4. iana considerations . . . . . . . . . . . . . . . . . . . . . 15
5. security considerations . . . . . . . . . . . . . . . . . . . 17
6. acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 17
7. references . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.1. normative references . . . . . . . . . . . . . . . . . . . 18
7.2. informative references . . . . . . . . . . . . . . . . . . 19
appendix a. material updating rfc 4952 . . . . . . . . . . . . . 20
a.1. conventional message and internationalized message . . . . 20
a.2. lmtp . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
a.3. smtp service extension for dsns . . . . . . . . . . . . . 20
a.4. implementation advice . . . . . . . . . . . . . . . . . . 20
a.5. applicability of smtp extension to additional uses . . . . 21
yao & mao experimental [page 2]
rfc 5336 eai smtp extension september 2008
1. introduction
an internationalized email address includes two parts, the local part
and the domain part. the ways email addresses are used by protocols
are different from the ways domain names are used. the most critical
difference is that emails are delivered through a chain of clients
and servers, while domain names are resolved by name servers looking
up those names in their own tables. in addition to this, the simple
mail transfer protocol [rfc2821] provides a negotiation mechanism
about service extension with which clients can discover server
capabilities and make decisions for further processing. an extended
overview of the extension model for internationalized addresses and
headers appears in [rfc4952], referred to as "the framework document"
or just as "framework" elsewhere in this specification. this
document specifies an smtp extension to permit internationalized
email addresses in envelopes, and unicode characters (encoded in
utf-8) [rfc3629] in headers.
1.1. role of this specification
the framework document specifies the requirements for, and describes
components of, full internationalization of electronic mail. a
thorough understanding of the information in that document and in the
base internet email specifications [rfc2821] [rfc2822] is necessary
to understand and implement this specification.
this document specifies an element of the email internationalization
work, specifically the definition of an smtp extension [rfc2821] for
internationalized email address transport delivery.
1.2. terminology
the key words "must", "must not", "required", "shall", "shall not",
"should", "should not", "recommended", "may", and "optional" in this
document are to be interpreted as described in rfc 2119 [rfc2119].
the terms "conventional message" and "internationalized message" are
defined in an appendix to this specification. the terms "utf-8
string" or "utf-8 character" are used informally to refer to unicode
characters encoded in utf-8 [rfc3629]. all other specialized terms
used in this specification are defined in the framework document or
in the base internet email specifications [rfc2821] [rfc2822]. in
particular, the terms "ascii address", "internationalized email
address", "non-ascii address", "i18mail address", "utf8smtp",
"message", and "mailing list" are used in this document according to
the definitions in the framework document.
yao & mao experimental [page 3]
rfc 5336 eai smtp extension september 2008
this specification defines only those augmented bnf (abnf) [rfc5234]
syntax rules that are different from those of the base email
specifications [rfc2821][rfc2822] and, where the earlier rules are
upgraded or extended, gives them new names. when the new rule is a
small modification to the older one, it is typically given a name
starting with "u". rules that are undefined here may be found in the
base email specifications under the same names.
2. overview of operation
this specification describes an optional extension to the email
transport mechanism that permits non-ascii [ascii] characters in both
the envelope and header fields of messages, which are encoded with
utf-8 [rfc3629] characters. the extension is identified with the
token "utf8smtp". in order to provide information that may be needed
in downgrading, an optional alternate ascii address may be needed if
an smtp client attempts to transfer an internationalized message and
encounters a server that does not support this extension.
the eai utf-8 header specification [rfc5335] provides the details of
how and where non-ascii characters are permitted in the header fields
of messages. the context for this specification is described in the
framework document.
3. mail transport-level protocol
3.1. framework for the internationalization extension
the following service extension is defined:
1. the name of the smtp service extension is "email address
internationalization".
2. the ehlo keyword value associated with this extension is
"utf8smtp".
3. no parameter values are defined for this ehlo keyword value. in
order to permit future (although unanticipated) extensions, the
ehlo response must not contain any parameters for that keyword.
clients must ignore any parameters; that is, clients must behave
as if the parameters do not appear. if a server includes
utf8smtp in its ehlo response, it must be fully compliant with
this version of this specification.
yao & mao experimental [page 4]
rfc 5336 eai smtp extension september 2008
4. one optional parameter, alt-address, is added to the mail and
rcpt commands of smtp. alt-address specifies an all-ascii
address which can be used as a substitute for the corresponding
primary (i18mail) address when downgrading. more discussion of
the use of this parameter appears in [rfc4952] and [downgrade].
5. one optional parameter "utf8reply" is added to the vrfy and expn
commands. the parameter utf8reply has no value. the parameter
indicates that the smtp client can accept unicode characters in
utf-8 encoding in replies from the vrfy and expn commands.
6. no additional smtp verbs are defined by this extension.
7. servers offering this extension must provide support for, and
announce, the 8bitmime extension [rfc1652].
8. the reverse-path and forward-path of the smtp mail and rcpt
commands are extended to allow unicode characters encoded in
utf-8 in mailbox names (addresses).
9. the mail message body is extended as specified in [rfc5335].
10. the maximum length of mail and rcpt command lines is increased
by 460 characters by the possible addition of the alt-address
keyword and value.
11. the utf8smtp extension is valid on the submission port
[rfc4409].
3.2. the utf8smtp extension
an smtp server that announces this extension must be prepared to
accept a utf-8 string [rfc3629] in any position in which rfc 2821
specifies that a mailbox can appear. that string must be parsed only
as specified in rfc 2821, i.e., by separating the mailbox into source
route, local part, and domain part, using only the characters colon
(u 003a), comma (u 002c), and at-sign (u 0040) as specified there.
once isolated by this parsing process, the local part must be treated
as opaque unless the smtp server is the final delivery mail transfer
agent (mta). any domain names that are to be looked up in the dns
must first be processed into the form specified in
"internationalizing domain names in applications (idna)" [rfc3490] by
means of the toascii() operation unless they are already in that
form. any domain names that are to be compared to local strings
should be checked for validity and then must be compared as specified
in section 3.4 of idna.
yao & mao experimental [page 5]
rfc 5336 eai smtp extension september 2008
an smtp client that receives the utf8smtp extension keyword in
response to the ehlo command may transmit mailbox names within smtp
commands as internationalized strings in utf-8 form. it may send a
utf-8 header [rfc5335] (which may also include mailbox names in
utf-8). it may transmit the domain parts of mailbox names within
smtp commands or the message header as either ace (ascii compatible
encoding) labels (as specified in idna [rfc3490]) or utf-8 strings.
all labels in domain parts of mailbox names which are idns (either
utf-8 or ace strings) must be valid. if the original client submits
a message to a message submission server ("msa") [rfc4409], it is the
responsibility of the msa that all domain labels are valid;
otherwise, it is the original client's responsibility. the presence
of the utf8smtp extension does not change the requirement of rfc 2821
that servers relaying mail must not attempt to parse, evaluate, or
transform the local part in any way.
if the utf8smtp smtp extension is not offered by the server, the smtp
client must not transmit an internationalized address and must not
transmit a mail message containing internationalized mail headers as
described in [rfc5335] at any level within its mime structure. (for
this paragraph, the internationalized domain name in the form of ace
labels as specified in idna [rfc3490] is not considered as
"internationalized".) instead, if an smtp client (smtp sender)
attempts to transfer an internationalized message and encounters a
server that does not support the extension, it must make one of the
following four choices:
1. if and only if the smtp client (sender) is a message submission
server ("msa") [rfc4409], it may, consistent with the general
provisions for changes by such servers, rewrite the envelope,
headers, or message material to make them entirely ascii and
consistent with the provisions of rfc 2821 [rfc2821] and rfc 2822
[rfc2822].
2. it may either reject the message during the smtp transaction or
accept the message and then generate and transmit a notification
of non-deliverability. such notification must be done as
specified in rfc 2821 [rfc2821], rfc 3464 [rfc3464], and the eai
delivery status notification (dsn) specification [rfc5337].
3. it may find an alternate route to the destination that permits
utf8smtp. that route may be discovered by trying alternate mail
exchanger (mx) hosts (using preference rules as specified in rfc
2821) or using other means available to the smtp-sender.
4. if and only if ascii addresses are available for all addresses
that appear in the return path and the specific forward paths
being attempted, it may downgrade the message to an all-ascii
yao & mao experimental [page 6]
rfc 5336 eai smtp extension september 2008
form as specified in [downgrade]. an ascii address is considered
to be "available" for a particular address if the original
address in the envelope is in ascii or if an alt-address
parameter is specified for a utf8smtp address.
the difference between choice 1 and choice 4 is that choice 1 is
constrained by message submission [rfc4409], while choice 4 is
constrained by [downgrade].
3.3. extended mailbox address syntax
rfc 2821, section 4.1.2, defines the syntax of a mailbox entirely in
terms of ascii characters, using the production for a mailbox and
those productions on which it depends.
the key changes made by this specification are, informally, to
o change the definition of "sub-domain" to permit either the
definition above or a utf-8 string representing a dns label that
is conformant with idna [rfc3490].
o change the definition of "atom" to permit either the definition
above or a utf-8 string. that string must not contain any of the
ascii characters (either graphics or controls) that are not
permitted in "atext"; it is otherwise unrestricted.
according to the description above, the syntax of an
internationalized email mailbox name (address) is defined in abnf
[rfc5234] as follows.
yao & mao experimental [page 7]
rfc 5336 eai smtp extension september 2008
umailbox = ulocal-part "@" udomain
; replace mailbox in rfc 2821, section 4.1.2
ulocal-part = udot-string / uquoted-string
; may be case-sensitive
; replace local-part in rfc 2821, section 4.1.2
udot-string = uatom *("." uatom)
; replace dot-string in rfc 2821, section 4.1.2
uatom = 1*ucharacter
; replace atom in rfc 2821, section 4.1.2
ucharacter = atext / utf8-non-ascii
atext =
uquoted-string = dquote *uqcontent dquote
; replace quoted-string in rfc 2821, section 4.1.2
dquote =
uqcontent = qcontent / utf8-non-ascii
qcontent =
udomain = (sub-udomain 1*("." sub-udomain)) / address-literal
; replace domain in rfc 2821, section 4.1.2
address-literal =
sub-udomain = ulet-dig [uldh-str]
; replace sub-domain in rfc 2821, section 4.1.2
ulet-dig = let-dig / utf8-non-ascii
let-dig =
uldh-str = *( alpha / digit / "-" / utf8-non-ascii) ulet-dig
; replace ldh-str in rfc 2821, section 4.1.3
utf8-non-ascii = utf8-2 / utf8-3 / utf8-4
utf8-2 =
utf8-3 =
utf8-4 =
yao & mao experimental [page 8]
rfc 5336 eai smtp extension september 2008
the value of "udomain" should be verified by applying the tests
specified as part of idna [rfc3490]. if that verification fails, the
email address with that udomain must not be regarded as a valid email
address.
3.4. the alt-address parameter
if the utf8smtp extension is offered, the syntax of the smtp mail and
rcpt commands is extended to support the optional esmtp-keyword "alt-
address". that keyword specifies an alternate all-ascii address that
may be used when downgrading. if the alt-address esmtp-keyword is
used, it must have an associated esmtp-value (alt-address-esmtp-
value, which is defined below).
while it may be tempting to consider alt-address as a general-purpose
second-chance address, such behavior is not defined here. instead,
in this specification alt-address only has meaning when the
associated primary address is non-ascii and the message is
downgraded. this restriction allows for future extension of the
specification even though no such extensions are currently
anticipated.
based on the definition of mail-parameters in [rfc2821], the alt-
address parameter usage in the commands of mail and rcpt is defined
as follows. the following definitions are given in the same format
as used in rfc 2821.
"mail from:" ("<>" / ureverse-path) [ sp mail-parameters ] crlf
; update the mail command in rfc 2821, section 4.1.1.2.
; a new parameter defined by the abnf non-terminal
;
; with the syntax specified for
"rcpt to:" ("
uforward-path) [ sp rcpt-parameters ] crlf
; update rcpt command in rfc 2821, section 4.1.1.3.
; a new parameter defined by the abnf non-terminal
;
; with the syntax specified for
; udomain is defined in section 3.3 of this document.
ureverse-path = upath
; replace reverse-path in rfc 2821, section 4.1.2.
uforward-path = upath
; replace forward-path in rfc 2821, section 4.1.2.
yao & mao experimental [page 9]
rfc 5336 eai smtp extension september 2008
upath = "<" [ a-d-l ":" ] umailbox ">"
; replace path in rfc 2821, section 4.1.2.
; umailbox is defined in section 3.3 of this document.
a-d-l =
alt-address-parameter = "alt-address=" alt-address-value
alt-address-value = xtext
; the value is a mailbox name encoded as xtext.
xtext =
the alt-address-parameter must not appear more than once in any mail
or rcpt command. alt-address-esmtp-value must be an all-ascii email
address before xtext encoding.
3.5. alt-address parameter usage and response codes
an "internationalized message" as defined in the appendix of this
specification must not be sent to an smtp server that does not
support utf8smtp. such a message may be rejected by a server if it
lacks alt-addresses as discussed in section 3.2 of this
specification.
the three-digit reply codes used in this section are consistent with
their meanings as defined in rfc 2821.
when messages are rejected because the rcpt command requires an alt-
address, the response code 553 is used with the meaning "mailbox name
not allowed". when messages are rejected for other reasons, such as
the mail command requiring an alt-address, the response code 550 is
used with the meaning "mailbox unavailable". when the server
supports enhanced mail system status codes [rfc3463], response code
"x.6.7" [rfc5248] is used, meaning that "the alt-address is required
but not specified".
if the response code is issued after the final "." of the data
command, the response code "554" is used with the meaning
"transaction failed". when the server supports enhanced mail system
status codes [rfc3463], response code "x.6.9" [rfc5248] is used,
meaning that "utf8smtp downgrade failed".
yao & mao experimental [page 10]
rfc 5336 eai smtp extension september 2008
3.6. body parts and smtp extensions
there is no esmtp parameter to assert that a message is an
internationalized message. an smtp server that requires accurate
knowledge of whether a message is internationalized is required to
parse all message header fields and mime header fields in the message
body.
while this specification requires that servers support the 8bitmime
extension [rfc1652] to ensure that servers have adequate handling
capability for 8-bit data and to avoid a number of complex encoding
problems, the use of internationalized addresses obviously does not
require non-ascii body parts in the mime message. the utf8smtp
extension may be used with the body=8bitmime parameter if that is
appropriate given the body content or, with the body=binarymime
parameter, if the server advertises binarymime [rfc3030] and that is
appropriate.
assuming that the server advertises utf8smtp and 8bitmime, and
receives at least one non-ascii address, with or without alt-address,
the precise interpretation of 'no body parameter', "body=8bitmime",
and "body=binarymime" in the mail command is:
1. if there is no body parameter, the header contains utf-8
characters, but all the body parts are in ascii (possibly as the
result of a content-transfer-encoding).
2. if a body=8bitmime parameter is present, the header contains
utf-8 characters, and some or all of the body parts contain 8-bit
line-oriented data.
3. if a body=binarymime parameter is present, the header contains
utf-8 characters, and some or all body parts contain binary data
without restriction as to line lengths or delimiters.
3.7. additional esmtp changes and clarifications
the information carried in the mail transport process involves
addresses ("mailboxes") and domain names in various contexts in
addition to the mail and rcpt commands and extended alternatives to
them. in general, the rule is that, when rfc 2821 specifies a
mailbox, this specification expects utf-8 to be used for the entire
string; when rfc 2821 specifies a domain name, the name should be in
the form of ace labels if its raw form is non-ascii.
the following subsections list and discuss all of the relevant cases.
yao & mao experimental [page 11]
rfc 5336 eai smtp extension september 2008
3.7.1. the initial smtp exchange
when an smtp connection is opened, the server normally sends a
"greeting" response consisting of the 220 response code and some
information. the client then sends the ehlo command. since the
client cannot know whether the server supports utf8smtp until after
it receives the response from ehlo, any domain names that appear in
this dialogue, or in responses to ehlo, must be in the hostname form,
i.e., internationalized ones must be in the form of ace labels.
3.7.2. mail exchangers
organizations often authorize multiple servers to accept mail
addressed to them. for example, the organization may itself operate
more than one server, and may also or instead have an agreement with
other organizations to accept mail as a backup. authorized servers
are generally listed in mx records as described in rfc 2821. when
more than one server accepts mail for the domain-part of a mailbox,
it is strongly advised that either all or none of them support the
utf8smtp extension. otherwise, surprising downgrades can happen
during temporary failures, which users might perceive as a serious
reliability issue.
3.7.3. trace information
when an smtp server receives a message for delivery or further
processing, it must insert trace ("time stamp" or "received")
information at the beginning of the message content. "time stamp" or
"received" appears in the form of "received:" lines. the most
important use of received: lines is for debugging mail faults. when
the delivery smtp server makes the "final delivery" of a message, it
inserts a return-path line at the beginning of the mail data. the
primary purpose of the return-path is to designate the address to
which messages indicating non-delivery or other mail system failures
are to be sent. for the trace information, this memo updates the
time stamp line and the return path line [rfc2821] formally defined
as follows:
ureturn-path-line = "return-path:" fws ureverse-path
; replaces return-path-line in section 4.4 of rfc 2821
; ureverse-path is defined in section 3.3 of this document
utime-stamp-line = "received:" fws ustamp
; replaces time-stamp-line in section 4.4 of rfc 2821
ustamp = from-domain by-domain uopt-info ";" fws date-time
; replaces stamp in section 4.4 of rfc 2821
yao & mao experimental [page 12]
rfc 5336 eai smtp extension september 2008
uopt-info = [via] [with] [id] [ufor]
; replaces opt-info in section 4.4 of rfc 2821
; the protocol value for with will allow a utf8smtp value
ufor = "for" ( fws (upath / umailbox) ) cfws
; replaces for in section 4.4 of rfc 2821
; upath and umailbox are defined in sections 2.4 and
; 2.3, respectively, of this document
note: the for parameter has been changed to match the definition in
[rfc2821bis], permitting only one address in the for clause. the
group working on that document reached mailing list consensus that
the syntax in [rfc2821] that permitted more than one address was
simply a mistake.
except in the 'ufor' clause and 'ureverse-path' value where non-ascii
domain names may be used, internationalized domain names in received
fields must be transmitted in the form of ace labels. the protocol
value of the with clause when this extension is used is one of the
utf8smtp values specified in the "iana considerations" section of
this document.
3.7.4. utf-8 strings in replies
3.7.4.1. mail and rcpt commands
if the client issues a rcpt command containing non-ascii characters,
the smtp server is permitted to use utf-8 characters in the email
address associated with 251 and 551 response codes.
if an smtp client follows this specification and sends any rcpt
commands containing non-ascii addresses, it must be able to accept
and process 251 or 551 responses containing utf-8 email addresses.
if a given rcpt command does not include a non-ascii envelope
address, the server must not return a 251 or 551 response containing
a non-ascii mailbox. instead, it must transform such responses into
250 or 550 responses that do not contain addresses.
3.7.4.2. vrfy and expn commands and the utf8reply parameter
if the vrfy and expn commands are transmitted with an optional
parameter "utf8reply", it indicates the client can accept utf-8
strings in replies from those commands. this allows the server to
use utf-8 strings in mailbox names and full names that occur in
replies without concern that the client might be confused by them.
an smtp client that conforms to this specification must accept and
correctly process replies from the vrfy and expn commands that
contain utf-8 strings. however, the smtp server must not use utf-8
yao & mao experimental [page 13]
rfc 5336 eai smtp extension september 2008
strings in replies if the smtp client does not specifically allow
such replies by transmitting this parameter. most replies do not
require that a mailbox name be included in the returned text, and
therefore utf-8 is not needed in them. some replies, notably those
resulting from successful execution of the vrfy and expn commands, do
include the mailbox, making the provisions of this section important.
verify (vrfy) and expand (expn) command syntaxes are changed to:
"vrfy" sp (ulocal-part / umailbox) [sp "utf8reply"] crlf
; ulocal-part and umailbox are defined in
; section 3.3 of this document.
"expn" sp ( ulocal-part / umailbox ) [ sp "utf8reply" ] crlf
; ulocal-part and umailbox are defined in
; section 3.3 of this document.
the "utf8reply" parameter does not use a value. if the reply to a
verify (vrfy) or expand (expn) command requires utf-8, but the smtp
client does not use the "utf8reply" parameter, then the server must
use either the response code 252 or 550. response code 252, defined
in [rfc2821], means "cannot vrfy user, but will accept the message
and attempt the delivery". response code 550, also defined in
[rfc2821], means "requested action not taken: mailbox unavailable".
when the server supports enhanced mail system status codes [rfc3463],
the enhanced response code as specified below is used. using the
"utf8reply" parameter with a verify (vrfy) or expand (expn) command
enables utf-8 replies for that command only.
if a normal success response (i.e., 250) is returned, the response
may include the full name of the user and must include the mailbox of
the user. it must be in either of the following forms:
user name
; umailbox is defined in section 3.3 of this document.
; user name can contain non-ascii characters.
umailbox
; umailbox is defined in section 3.3 of this document.
if the smtp reply requires utf-8 strings, but utf-8 is not allowed in
the reply, and the server supports enhanced mail system status codes
[rfc3463], the enhanced response code is either "x.6.8" or "x.6.10"
[rfc5248], meaning "a reply containing a utf-8 string is required to
show the mailbox name, but that form of response is not permitted by
the client".
yao & mao experimental [page 14]
rfc 5336 eai smtp extension september 2008
if the smtp client does not support the utf8smtp extension, but
receives a utf-8 string in a reply, it may not be able to properly
report the reply to the user, and some clients might crash.
internationalized messages in replies are only allowed in the
commands under the situations described above. under any other
circumstances, utf-8 text must not appear in the reply.
although utf-8 is needed to represent email addresses in responses
under the rules specified in this section, this extension does not
permit the use of utf-8 for any other purposes. smtp servers must
not include non-ascii characters in replies except in the limited
cases specifically permitted in this section.
4. iana considerations
iana has added a new value "utf8smtp" to the smtp service extension
subregistry of the mail parameters registry, according to the
following data:
---------- --------------------------------- -----------
| keywords | description | reference |
---------- --------------------------------- -----------
| utf8smtp | internationalized email address | [rfc5336] |
---------- --------------------------------- -----------
this document adds new values to the smtp enhanced status code
subregistry of the mail parameters registry, following the guidance
in sections 3.5 and 3.7.4.2 of this document, and being based on
[rfc5248]. the registration data is as follows:
yao & mao experimental [page 15]
rfc 5336 eai smtp extension september 2008
code: x.6.7
sample text: the alt-address is required but not specified
associated basic status code: 553, 550
description: this indicates the reception of a mail or rcpt
command that required an alt-address parameter
but such parameter was not present.
defined: rfc 5336 (experimental track)
submitter: jiankang yao
change controller: iesg.
code: x.6.8
sample text: utf-8 string reply is required,
but not permitted by the client
associated basic status code: 553, 550
description: this indicates that a reply containing a utf-8
string is required to show the mailbox name,
but that form of response is not
permitted by the client.
defined: rfc 5336. (experimental track)
submitter: jiankang yao
change controller: iesg.
code: x.6.9
sample text: utf8smtp downgrade failed
associated basic status code: 550
description: this indicates that transaction failed
after the final "." of the data command.
defined: rfc 5336. (experimental track)
submitter: jiankang yao
change controller: iesg.
code: x.6.10
sample text: utf-8 string reply is required,
but not permitted by the client
associated basic status code: 252
description: this indicates that a reply containing a utf-8
string is required to show the mailbox name,
but that form of response is not
permitted by the client.
defined: rfc 5336. (experimental track)
submitter: jiankang yao
change controller: iesg.
yao & mao experimental [page 16]
rfc 5336 eai smtp extension september 2008
the "mail transmission types" registry under the mail parameters
registry is requested to be updated to include the following new
entries:
--------------- ---------------------------- ----------------------
| with protocol | description | reference |
| types | | |
--------------- ---------------------------- ----------------------
| utf8smtp | utf8smtp with service | [rfc5336] |
| | extensions | |
| utf8smtpa | utf8smtp with smtp auth | [rfc4954] [rfc5336] |
| utf8smtps | utf8smtp with starttls | [rfc3207] [rfc5336] |
| utf8smtpsa | utf8smtp with both | [rfc3207] [rfc4954] |
| | starttls and smtp auth | [rfc5336] |
--------------- ---------------------------- ----------------------
5. security considerations
see the extended security considerations discussion in the framework
document [rfc4952].
6. acknowledgements
much of the text in the initial version of this specification was
derived or copied from [emailaddr] with the permission of the author.
significant comments and suggestions were received from xiaodong lee,
nai-wen hsu, yangwoo ko, yoshiro yoneya, and other members of the jet
team and were incorporated into the specification. additional
important comments and suggestions, and often specific text, were
contributed by many members of the wg and design team. those
contributions include material from john c klensin, charles lindsey,
dave crocker, harald tveit alvestrand, marcos sanz, chris newman,
martin duerst, edmon chung, tony finch, kari hurtta, randall gellens,
frank ellermann, alexey melnikov, pete resnick, s. moonesamy, soobok
lee, shawn steele, alfred hoenes, miguel garcia, magnus westerlund,
and lars eggert. of course, none of the individuals are necessarily
responsible for the combination of ideas represented here.
yao & mao experimental [page 17]
rfc 5336 eai smtp extension september 2008
7. references
7.1. normative references
[ascii] american national standards institute (formerly united
states of america standards institute), "usa code for
information interchange", ansi x3.4-1968, 1968.
[rfc1652] klensin, j., freed, n., rose, m., stefferud, e., and d.
crocker, "smtp service extension for 8bit-
mimetransport", rfc 1652, july 1994.
[rfc2119] bradner, s., "key words for use in rfcs to indicate
requirement levels", bcp 14, rfc 2119, march 1997.
[rfc2821] klensin, j., "simple mail transfer protocol", rfc 2821,
april 2001.
[rfc2822] resnick, p., "internet message format", rfc 2822,
april 2001.
[rfc3461] moore, k., "simple mail transfer protocol (smtp)
service extension for delivery status notifications
(dsns)", rfc 3461, january 2003.
[rfc3463] vaudreuil, g., "enhanced mail system status codes",
rfc 3463, january 2003.
[rfc3464] moore, k. and g. vaudreuil, "an extensible message
format for delivery status notifications", rfc 3464,
january 2003.
[rfc3490] faltstrom, p., hoffman, p., and a. costello,
"internationalizing domain names in applications
(idna)", rfc 3490, march 2003.
[rfc3629] yergeau, f., "utf-8, a transformation format of iso
10646", std 63, rfc 3629, november 2003.
[rfc4409] gellens, r. and j. klensin, "message submission for
mail", rfc 4409, april 2006.
[rfc4952] klensin, j. and y. ko, "overview and framework for
internationalized email", rfc 4952, july 2007.
[rfc5234] crocker, d. and p. overell, "augmented bnf for syntax
specifications: abnf", std 68, rfc 5234, january 2008.
yao & mao experimental [page 18]
rfc 5336 eai smtp extension september 2008
[rfc5248] hansen, t. and j. klensin, "a registry for smtp
enhanced mail system status codes", bcp 138, rfc 5248,
june 2008.
[rfc5335] abel, y., ed., "internationalized email headers",
rfc 5335, september 2008.
[rfc5337] newman, c. and a. melnikov, ed., "internationalized
delivery status and disposition notifications",
rfc 5337, september 2008.
7.2. informative references
[downgrade] fujiwara, k. and y. yoneya, "downgrading mechanism for
email address internationalization", work in progress,
july 2008.
[emailaddr] klensin, j., "internationalization of email addresses",
work in progress, july 2005.
[rfc0974] partridge, c., "mail routing and the domain system",
rfc 974, january 1986.
[rfc2033] myers, j., "local mail transfer protocol", rfc 2033,
october 1996.
[rfc2821bis] klensin, j., "simple mail transfer protocol", work
in progress, july 2008.
[rfc3030] vaudreuil, g., "smtp service extensions for
transmission of large and binary mime messages",
rfc 3030, december 2000.
[rfc3207] hoffman, p., "smtp service extension for secure smtp
over transport layer security", rfc 3207,
february 2002.
[rfc4954] siemborski, r., ed. and a. melnikov, ed., "smtp service
extension for authentication", rfc 4954, july 2007.
yao & mao experimental [page 19]
rfc 5336 eai smtp extension september 2008
appendix a. material updating rfc 4952
rfc 4952, the overview and framework document covering this set of
extensions for internationalized email, was completed before this
specification, which specifies a particular part of the protocol set.
this appendix, which is normative, contains material that would have
been incorporated into rfc 4952 had it been delayed until the work
described in the rest of this specification was completed. this
material should be included in any update to rfc 4952.
a.1. conventional message and internationalized message
o a conventional message is one that does not use any extension
defined in this document or in the utf-8 header specification
[rfc5335], and which is strictly conformant to rfc 2822 [rfc2822].
o an internationalized message is a message utilizing one or more of
the extensions defined in this specification or in the utf-8
header specification [rfc5335], so that it is no longer conformant
to the rfc 2822 specification of a message.
a.2. lmtp
lmtp [rfc2033] may be used as the final delivery agent. in such
cases, lmtp may be arranged to deliver the mail to the mail store.
the mail store may not have utf8smtp capability. lmtp needs to be
updated to deal with these situations.
a.3. smtp service extension for dsns
the existing draft standard regarding delivery status notifications
(dsns) [rfc3461] is limited to ascii text in the machine readable
portions of the protocol. "international delivery status and
disposition notifications" [rfc5337] adds a new address type for
international email addresses so an original recipient address with
non-ascii characters can be correctly preserved even after
downgrading. if an smtp server advertises both the utf8smtp and the
dsn extension, that server must implement eai dsn [rfc5337] including
support for the orcpt parameter.
a.4. implementation advice
in the absence of this extension, smtp clients and servers are
constrained to using only those addresses permitted by rfc 2821. the
local parts of those addresses may be made up of any ascii
characters, although some of them must be quoted as specified there.
it is notable in an internationalization context that there is a long
history on some systems of using overstruck ascii characters (a
yao & mao experimental [page 20]
rfc 5336 eai smtp extension september 2008
character, a backspace, and another character) within a quoted string
to approximate non-ascii characters. this form of
internationalization should be phased out as this extension becomes
widely deployed, but backward-compatibility considerations require
that it continue to be supported.
a.5. applicability of smtp extension to additional uses
among other protocol changes, the smtp extension allows an optional
alternate address to be supplied with the mail and rcpt commands.
for the purposes of this set of specifications, this alternate
address only has meaning when the primary address contains utf-8
characters and the message is downgraded. while it may be tempting
to consider the alternate address as a general-purpose second-chance
address to be used whenever the primary address is rejected, such
behavior is not defined here. this restriction allows for future
extensions to be developed which create such a general-purpose
second-chance address, although no specific work on such an extension
is currently anticipated. note that any such extension needs to
consider the question of what the [rfc0974] sequencing rules mean
when different possible servers support different sets of esmtp
options (or, in this case, addresses). the answer to this question
may also imply updates to [rfc2821].
authors' addresses
jiankang yao (editor)
cnnic
no.4 south 4th street, zhongguancun
beijing
phone: 86 10 58813007
email: yaojk@cnnic.cn
wei mao (editor)
cnnic
no.4 south 4th street, zhongguancun
beijing
phone: 86 10 58812230
email: maowei_ietf@cnnic.cn
yao & mao experimental [page 21]
rfc 5336 eai smtp extension september 2008
full 尊龙凯时app copyright statement
尊龙凯时app copyright (c) the ietf trust (2008).
this document is subject to the rights, licenses and restrictions
contained in bcp 78, and except as set forth therein, the authors
retain all their rights.
this document and the information contained herein are provided on an
"as is" basis and the contributor, the organization he/she represents
or is sponsored by (if any), the internet society, the ietf trust and
the internet engineering task force disclaim all warranties, express
or implied, including but not limited to any warranty that the use of
the information herein will not infringe any rights or any implied
warranties of merchantability or fitness for a particular purpose.
intellectual property
the ietf takes no position regarding the validity or scope of any
intellectual property rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. information
on the procedures with respect to rights in rfc documents can be
found in bcp 78 and bcp 79.
copies of ipr disclosures made to the ietf secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the ietf on-line ipr repository at
http://www.ietf.org/ipr.
the ietf invites any interested party to bring to its attention any
尊龙凯时app copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. please address the information to the ietf at
ietf-ipr@ietf.org.