RFC 3464//RFC 1894からの変更点

RFC 3464//RFC 1894からの変更点

  Network Working Group                                           K. Moore
 -Request for Comments: 1894                       University of Tennessee
 -Category: Standards Track                                   G. Vaudreuil
 -                                                  Octel Network Services
 -                                                            January 1996
 +Request for Comments: 3464                       University of Tennessee
 +Obsoletes: 1894                                             G. Vaudreuil
 +Category: Standards Track                            Lucent Technologies
 +                                                            January 2003

+Copyright Notice + + Copyright (C) The Internet Society (2003). All Rights Reserved.

This memo defines a Multipurpose Internet Mail Extensions (MIME) content-type that may be used by a message transfer agent (MTA) or electronic mail gateway to report the result of an attempt to deliver a message to one or more recipients. This content-type is intended as a machine-processable replacement for the various types of delivery status notifications currently used in Internet electronic mail.

 
Because many messages are sent between the Internet and other
messaging systems (such as X.400 or the so-called 
"Local Area Network (LAN)-based" systems), 
the Delivery Status Notification (DSN)
protocol is designed to be useful in a multi-protocol messaging
environment.  To this end, the protocol described in this memo
provides for the carriage of "foreign" addresses and error codes, in
addition to those normally used in Internet mail.  Additional
attributes may also be defined to support "tunneling" of foreign
notifications through Internet mail.

Any questions, comments, and reports of defects or ambiguities in this specification may be sent to the mailing list for the NOTARY working group of the IETF, using the address <notifications@cs.utk.edu>. Requests to subscribe to the mailing list should be addressed to <notifications-request@cs.utk.edu>. Implementors of this specification are encouraged to subscribe to the mailing list, so that they will quickly be informed of any problems which might hinder interoperability.

NOTE: This document is a Proposed Standard. If and when this protocol is submitted for Draft Standard status, any normative text (phrases containing SHOULD, SHOULD NOT, MUST, MUST NOT, or MAY) in this document will be re-evaluated in light of implementation experience, and are thus subject to change.

「Table of Contents」追加

Document Conventions

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 BCP 14, RFC 2119 [RFC2119].

+ (b) It must provide enough information to allow message senders (or + the user agents) to unambiguously associate a DSN with the + message that was sent and the original recipient address for + which the DSN is issued (if such information is available), even + if the message was forwarded to another recipient address. + + (c) It must be able to preserve the reason for the success or failure + of a delivery attempt in a remote messaging system, using the + "language" (mailbox addresses and status codes) of that remote + system. + + (d) It must also be able to describe the reason for the success or + failure of a delivery attempt, independent of any particular + human language or of the "language" of any particular mail + system. + + (e) It must preserve enough information to allow the maintainer of a + remote MTA to understand (and if possible, reproduce) the + conditions that caused a delivery failure at that MTA. + + (f) For any notifications issued by foreign mail systems, which are + translated by a mail gateway to the DSN format, the DSN must + preserve the "type" of the foreign addresses and error codes, so + that these may be correctly interpreted by gateways.

 
-(b) It must provide enough information to allow message senders (or the
-    user agents) to unambiguously associate a DSN with the message that
-    was sent and the original recipient address for which the DSN is
-    issued (if such information is available), even if the message was
-    forwarded to another recipient address.
-
-(c) It must be able to preserve the reason for the success or failure of
-    a delivery attempt in a remote messaging system, using the
-    "language" (mailbox addresses and status codes) of that remote
-    system.
-
-(d) It must also be able to describe the reason for the success or
-    failure of a delivery attempt, independent of any particular human
-    language or of the "language" of any particular mail system.
-
-(e) It must preserve enough information to allow the maintainer of a
-    remote MTA to understand (and if possible, reproduce) the conditions
-    that caused a delivery failure at that MTA.
-
-(f) For any notifications issued by foreign mail systems, which are
-    translated by a mail gateway to the DSN format, the DSN must
-    preserve the "type" of the foreign addresses and error codes, so
-    that these may be correctly interpreted by gateways.

Each of these MTAs may provide information that which is useful in a DSN:

+ + Ideally, the DSN will contain the address of each recipient as + originally specified to the Original MTA by the sender of the + message. + + This version of the address is needed (rather than a forwarding + address or some modified version of the original address) so that + the sender may compare the recipient address in the DSN with the + address in the sender's records (e.g., an address book for an + individual, the list of subscribers for a mailing list) and take + appropriate action. + + Similarly, the DSN might contain an "envelope identifier" that was + known to both the sender's user agent and the Original MTA at the + time of message submission, and which, if included in the DSN, can + be used by the sender to keep track of which messages were or were + not delivered. + + + If a message was (a) forwarded to a different address than that + specified by the sender, (b) gatewayed to a different mail system + than that used by the sender, or (c) subjected to address rewriting + during transmission, the "final" form of the recipient address + (i.e., the one seen by the Reporting MTA) will be different than + the original (sender-specified) recipient address. Just as the + sender's user agent (or the sender) prefers the original recipient + address, so the "final" address is needed when reporting a problem + to the postmaster of the site where message delivery failed, + because only the final recipient address will allow her to + reproduce the conditions that caused the failure.

 
 
-+ Ideally, the DSN will contain the address of each recipient as
-  originally specified to the Original MTA by the sender of the message.
-  This version of the address is needed (rather than a forwarding
-  address or some modified version of the original address) so that the
-  sender may compare the recipient address in the DSN with the address
-  in the sender's records (e.g. an address book for an individual, the
-  list of subscribers for a mailing list) and take appropriate action.
-
-  Similarly, the DSN might contain an "envelope identifier" that was
-  known to both the sender's user agent and the Original MTA at the time
-  of message submission, and which, if included in the DSN, can be used
-  by the sender to keep track of which messages were or were not
-  delivered.
-
-+ If a message was (a) forwarded to a different address than that
-  specified by the sender, (b) gatewayed to a different mail system than
-  that used by the sender, or (c) subjected to address rewriting during
-  transmission, the "final" form of the recipient address (i.e. the one
-  seen by the Reporting MTA) will be different than the original
-  (sender-specified) recipient address.  Just as the sender's user agent
-  (or the sender) prefers the original recipient address, so the "final"
-  address is needed when reporting a problem to the postmaster of the
-  site where message delivery failed, because only the final recipient
-  address will allow her to reproduce the conditions that caused the
-  failure.

nature of the mail transport system (where responsibility for delivery of a message to its recipients may be split among several MTAs, and delivery to any particular recipient may be delayed), multiple DSNs may be still be issued in response to a single message submission.

The per-message fields are described in section 2.2. The per-recipient fields are described in section 2.3.

           delivery-status-content =  per-message-fields 1*
                                     ( CRLF per-recipient-fields )

The per-message fields are described in section 2.2. The per-recipient fields are described in section 2.3.

each additional line with a SPACE or HTAB. Text which that appears in

2.1.2 "*-type" sub-fields

Several DSN fields consist of a "-type" sub-field, followed by a semicolon, followed by "*text". For these fields, the keyword used in the address-type, diagnostic-type, or MTA-name-type sub-field indicates the expected format of the address, status-code, or MTA-name which follows.

The "-type" sub-fields are defined as follows:

Some fields of a DSN apply to all of the delivery attempts described by that DSN. At most, these fields may appear at most once in any DSN. These fields are used to correlate the DSN with the original message transaction and to provide additional information which may be useful to gateways.

The optional Original-Envelope-Id field contains an "envelope identifier" which that uniquely identifies the transaction during which

If such an envelope identifier was present in the envelope which that accompanied the message when it arrived at the Reporting MTA, it SHOULD be supplied in the Original-Envelope-Id field of any DSNs issued as a result of an attempt to deliver the message. Except when a DSN is issued by the sender's MTA, an MTA MUST NOT supply this field unless there is an envelope-identifier field in the envelope which that accompanied this message on its arrival at the Reporting MTA.

A DSN describes the results of attempts to deliver, relay, or gateway a message to one or more recipients. In all cases, the Reporting-MTA is the MTA which that attempted to perform the delivery, relay, or gateway operation described in the DSN. This field is required.

Note that the Reporting-MTA is not necessarily the MTA which actually issued the DSN. For example, if an attempt to deliver a message outside of the Internet resulted in a non-delivery notification which was gatewayed back into Internet mail, the Reporting-MTA field of the resulting DSN would be that of the MTA that originally reported the

+ sender's environment recipient's environment + ............................ .......................................... + : : + (1) : : (2) + +-----+ +--------+ +--------+ +---------+ +---------+ +------+ + | | | | | | |Received-| | | | | + | |=>|Original|=>| |->| From |->|Reporting|-->|Remote| + | user| | MTA | | | | MTA | | MTA |<No| MTA | + |agent| +--------+ |Gateway | +---------+ +----v----+ +------+ + | | | | | + | | <============| |<-------------------+ + +-----+ | |(4) (3) + +--------+ + : : + ...........................: :......................................... + + Figure 2. DSNs in the presence of gateways + + (1) message is gatewayed into recipient's environment + (2) attempt to relay message fails + (3) reporting-mta (in recipient's environment) returns non-delivery + notification + (4) gateway translates foreign notification into a DSN

 
    The mta-name portion of the Reporting-MTA field is formatted
-   according to the conventions indicated by the mta-name-type subfield.
-   If an MTA functions as a gateway between dissimilar mail environments
-   and thus is known by multiple names depending on the environment, the
-   mta-name subfield SHOULD contain the name used by the environment
-   from which the message was accepted by the Reporting-MTA.
+   according to the conventions indicated by the mta-name-type
+   sub-field.  If an MTA functions as a gateway between dissimilar mail
+   environments and thus is known by multiple names depending on the
+   environment, the mta-name sub-field SHOULD contain the name used by
+   the environment from which the message was accepted by the
+   Reporting-MTA.

+ For gateways into Internet mail, the MTA-name-type will normally be + "dns", and the mta-name will be the Internet domain name of the + gateway.

    If the message was received from an Internet host via SMTP, the
-   contents of the mta-name subfield SHOULD be the Internet domain name
+   contents of the mta-name sub-field SHOULD be the Internet domain name
    supplied in the HELO or EHLO command, and the network address used by
    the SMTP client SHOULD be included as a comment enclosed in
-   parentheses.  (In this case, the MTA-name-type will be "smtp".)
+   parentheses.  (In this case, the MTA-name-type will be "dns".)
 
    The mta-name portion of the Received-From-MTA field is formatted
-   according to the conventions indicated by the MTA-name-type subfield.
+   according to the conventions indicated by the MTA-name-type sub-
+   field.

The address-type sub-field indicates the type of address expected by the reporting MTA in that context. Recipient addresses obtained via SMTP will normally be of address-type "rfc822".

NOTE: The Reporting MTA is not expected to ensure that the address actually conforms to the syntax conventions of the address-type. Instead, it MUST report exactly the address received in the envelope, unless that address contains characters such as CR or LF which may are not appear allowed in a DSN field.

 
-"failed"     indicates that the message could not be delivered to the
-             recipient.  The Reporting MTA has abandoned any attempts to
-             deliver the message to this recipient.  No further
-             notifications should be expected.
-
-"delayed"    indicates that the Reporting MTA has so far been unable to
-             deliver or relay the message, but it will continue to
-             attempt to do so.  Additional notification messages may be
-             issued as the message is further delayed or successfully
-             delivered, or if delivery attempts are later abandoned.
-
-"delivered"  indicates that the message was successfully delivered to
-             the recipient address specified by the sender, which
-             includes "delivery" to a mailing list exploder.  It does
-             not indicate that the message has been read.  This is a
-             terminal state and no further DSN for this recipient should
-             be expected.
-
-"relayed"    indicates that the message has been relayed or gatewayed
-             into an environment that does not accept responsibility for
-             generating DSNs upon successful delivery.  This action-
-             value SHOULD NOT be used unless the sender has requested
-             notification of successful delivery for this recipient.
-
-"expanded"   indicates that the message has been successfully delivered
-             to the recipient address as specified by the sender, and
-             forwarded by the Reporting-MTA beyond that destination to
-             multiple additional recipient addresses.  An action-value
-             of "expanded" differs from "delivered" in that "expanded"
-             is not a terminal state. Further "failed" and/or "delayed"
-             notifications may be provided.
-
-             Using the terms "mailing list" and "alias" as defined in
-             [4], section 7.2.7:  An action-value of "expanded" is only
-             to be used when the message is delivered to a multiple-
-             recipient "alias".  An action-value of "expanded" SHOULD
-             NOT be used with a DSN issued on delivery of a message to a
-             "mailing list".
-
-   NOTE ON ACTION VS. STATUS CODES:  Although the 'action' field might
-   seem to be redundant with the 'status' field, this is not the case.
-   In particular, a "temporary failure" ("4") status code could be used
-   with an action-value of either "delayed" or "failed".  For example,
-   assume that an SMTP client repeatedly tries to relay a message to the
-   mail exchanger for a recipient, but fails because a query to a domain
+   "failed"    indicates that the message could not be delivered to the
+               recipient.  The Reporting MTA has abandoned any attempts
+               to deliver the message to this recipient.  No further
+               notifications should be expected.
+
+   "delayed"   indicates that the Reporting MTA has so far been unable
+               to deliver or relay the message, but it will continue to
+               attempt to do so.  Additional notification messages may
+               be issued as the message is further delayed or
+               successfully delivered, or if delivery attempts are later
+               abandoned.
+
+   "delivered" indicates that the message was successfully delivered to
+               the recipient address specified by the sender, which
+               includes "delivery" to a mailing list exploder.  It does
+               not indicate that the message has been read.  This is a
+               terminal state and no further DSN for this recipient
+               should be expected.
+
+
+   "relayed"   indicates that the message has been relayed or gatewayed
+               into an environment that does not accept responsibility
+               for generating DSNs upon successful delivery.  This
+               action-value SHOULD NOT be used unless the sender has
+               requested notification of successful delivery for this
+               recipient.
+
+   "expanded"  indicates that the message has been successfully
+               delivered to the recipient address as specified by the
+               sender, and forwarded by the Reporting-MTA beyond that
+               destination to multiple additional recipient addresses.
+               An action-value of "expanded" differs from "delivered" in
+               that "expanded" is not a terminal state.  Further
+               "failed" and/or "delayed" notifications may be provided.
+
+   Using the terms "mailing list" and "alias" as defined in [DRPT],
+   section 7.2.7: An action-value of "expanded" is only to be used when
+   the message is delivered to a multiple-recipient "alias".  An
+   action-value of "expanded" SHOULD NOT be used with a DSN issued on
+   delivery of a message to a "mailing list".
+
+       NOTE ON ACTION VS. STATUS CODES: Although the 'action' field
+       might seem to be redundant with the 'status' field, this is not
+       the case.  In particular, a "temporary failure" ("4") status code
+       could be used with an action-value of either "delayed" or
+       "failed".  For example, assume that an SMTP client repeatedly
+       tries to relay a message to the mail exchanger for a recipient,
+       but fails because a query to a domain name server timed out.
-   name server timed out.  After a few hours, it might issue a "delayed"
-   DSN to inform the sender that the message had not yet been delivered.
-   After a few days, the MTA might abandon its attempt to deliver the
-   message and return a "failed" DSN.  The status code (which would
-   begin with a "4" to indicate "temporary failure") would be the same
-   for both DSNs.
-
-   Another example for which the action and status codes may appear
-   contradictory:  If an MTA or mail gateway cannot deliver a message
-   because doing so would entail conversions resulting in an
-   unacceptable loss of information, it would issue a DSN with the
-   'action' field of "failure" and a status code of 'XXX'.  If the
-   message had instead been relayed, but with some loss of information,
-   it might generate a DSN with the same XXX status-code, but with an
-   action field of "relayed".
+       After a few hours, it might issue a "delayed" DSN to inform the
+       sender that the message had not yet been delivered.  After a few
+       days, the MTA might abandon its attempt to deliver the message
+       and return a "failed" DSN.  The status code (which would begin
+       with a "4" to indicate "temporary failure") would be the same for
+       both DSNs.
+
+       Another example for which the action and status codes may appear
+       contradictory: If an MTA or mail gateway cannot deliver a message
+       because doing so would entail conversions resulting in an
+       unacceptable loss of information, it would issue a DSN with the
+       'action' field of "failure" and a status code of 'XXX'.  If the
+       message had instead been relayed, but with some loss of
+       information, it might generate a DSN with the same XXX status-
+       code, but with an action field of "relayed".
    The per-recipient Status field contains a transport-independent
-   status code which indicates the delivery status of the message to
-   that recipient.  This field MUST be present for each delivery attempt
+   status code that indicates the delivery status of the message to that
+   recipient.  This field MUST be present for each delivery attempt
    which is described by a DSN.
    For a "failed" or "delayed" recipient, the Diagnostic-Code DSN field
    contains the actual diagnostic code issued by the mail transport.
    Since such codes vary from one mail transport to another, the
-   diagnostic-type subfield is needed to specify which type of
+   diagnostic-type sub-field is needed to specify which type of
    diagnostic code is represented.
    code, the Diagnostic-Code field is provided to retain the latter
    information.  Such information may be useful in a trouble ticket sent
    to the administrator of the Reporting MTA, or when tunneling foreign
-   nondelivery reports through DSNs.
+   non-delivery reports through DSNs.

+5. Normative References

 
+   [DRPT]    Moore, K., "SMTP Service Extension for Delivery Status
+             Notifications", RFC 3461, January 2003.
 
+   [DSN]     Moore, K. and G. Vaudreuil, "An Extensible Message Format
+             for Delivery Status Notifications", RFC 1894, January 1996.
 
+   [HOSTREQ] Braden, R. (ed.), "Requirements for Internet Hosts -
+             Application and Support", STD 3, RFC 1123, October 1989.
 
+   [MIME1]   Freed, N. and N. Borenstein, "Multipurpose Internet Mail
+             Extensions (MIME) Part One: Format of Internet Message
+             Bodies", RFC 2045, November 1996.
 
+   [MIME3]   Moore, K., "MIME (Multipurpose Internet Mail Extensions)
+             Part Three: Message Header Extensions for Non-ASCII Text",
+             RFC 2047, November 1996.
 
+   [REPORT]  Vaudreuil, G., "The Multipart/Report Content Type for the
+             Reporting of Mail System Administrative Messages", RFC
+             3462, January 2003.
 
+   [RFC822]  Crocker, D., "Standard for the format of ARPA Internet Text
+             Messages", STD 11, RFC 822, August 1982.

+ [SMTP] Postel, J., "Simple Mail Transfer Protocol", STD 10, RFC + 821, August 1982.

+ [SMTPDUP] Partridge, C., "Duplicate Messages and SMTP", RFC 1047, + February 1988.

 
+   [STATUS]  Vaudreuil, G., "Enhanced Mail System Status Codes", RFC
+             3463, January 2003.
 
+   [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
+             Requirement Levels", BCP 14, RFC 2119, March 1997.
 
+6. Acknowledgments
 
+   The authors wish to thank the following people for their reviews of
+   early drafts of RFC 1894, of which this document is a revision, and
+   their suggestions for improvement:  Eric Allman, Harald Alvestrand,
+   Allan Cargille, Jim Conklin, Peter Cowen, Dave Crocker, Roger Fajman,
+   Ned Freed, Marko Kaittola, Steve Kille, John Klensin, John Gardiner
+   Myers, Mark Nahabedian, Julian Onions, Jacob Palme, Jean Charles Roy,
+   and Gregory Sheehan.

+ final-log-id-field = "Final-Log-ID" ":" *text

+Appendix C - Guidelines for use of DSNs by mailing list exploders

    When forwarding a message to list subscribers, the mailing list
-   exploder should always set the envelope return address (e.g. SMTP
+   exploder should always set the envelope return address (e.g., SMTP
    MAIL FROM address) to point to a special address which is set up to
-   received nondelivery reports.  A "smart" mailing list exploder can
-   therefore intercept such nondelivery reports, and if they are in the
+   receive non-delivery reports.  A "smart" mailing list exploder can
+   therefore intercept such non-delivery reports, and if they are in the
    DSN format, automatically examine them to determine for which
    recipients a message delivery failed or was delayed.
    might depend on the type of error.  On the other hand, a "user
-   unknown" error which persisted for several days could be considered a
+   unknown" error that persisted for several days could be considered a
    reliable indication that address were no longer valid.
 
-8. Appendix - IANA registration forms for DSN types
+Appendix D - IANA registration forms for DSN types

+ (a) The proposed address-type name.

 
+   (b) The syntax for mailbox addresses of this type, specified using
+       BNF, regular expressions, ASN.1, or other non-ambiguous language.
 
+   (c) If addresses of this type are not composed entirely of graphic
+       characters from the US-ASCII repertoire, a specification for how
+       they are to be encoded as graphic US-ASCII characters in a DSN
+       Original-Recipient or Final-Recipient DSN field.
 
+   (d) [optional] A specification for how addresses of this type are to
+       be translated to and from Internet electronic mail addresses.
 
+IANA registration form for diagnostic-type
 
+   A registration for a DSN address-type MUST include the following
+   information:
 
+   (a) The proposed diagnostic-type name.
 
+   (b) A description of the syntax to be used for expressing diagnostic
+       codes of this type as graphic characters from the US-ASCII
+       repertoire.
 
+   (c) A list of valid diagnostic codes of this type and the meaning of
+       each code.
 
+   (d) [optional] A specification for mapping from diagnostic codes of
+       this type to DSN status codes (as defined in [5]).
 
+IANA registration form for MTA-name-type
 
+   A registration for a DSN MTA-name-type must include the following
+   information:
 
+   (a) The proposed MTA-name-type name.
 
+   (b) A description of the syntax of MTA names of this type, using BNF,
+       regular expressions, ASN.1, or other non-ambiguous language.

 
+   (c) If MTA names of this type do not consist entirely of graphic
+       characters from the US-ASCII repertoire, a specification for how
+       an MTA name of this type should be expressed as a sequence of
+       graphic US-ASCII characters.
 
-9. Appendix - Examples
+Appendix E - Examples
    Invalid address - nair_s
-   %DIR-E-NODIRMTCH, No matching Directory Entry found
+   %DIR-E-NODIRMTCH, No matching Directory Entry
+   Entry found

+ MIME-Version: 1.0

    From: <postmaster@nsfnet-relay.ac.uk>
    Message-Id: <199407092338.TAA23293@CS.UTK.EDU>
    Received: from nsfnet-relay.ac.uk by sun2.nsfnet-relay.ac.uk
-             id <g.12954-0@sun2.nsfnet-relay.ac.uk>;
-   Sun, 10 Jul 1994 00:36:51 +0100
+           id <g.12954-0@sun2.nsfnet-relay.ac.uk>;
+           Sun, 10 Jul 1994 00:36:51 +0100

+Appendix F - Changes from RFC 1894 + + Changed Authors contact information + + Updated required standards boilerplate + + Edited the text to make it spell-checker and grammar checker + compliant + + Updated references to point to later, more mature documents, changed + reference enumeration scheme. + + Fixed paragraph numbering on page 20 + + Fixed Delayed DSN example + + Added Table of Contents + + Moved Appendices to the end of the document + + Changed the MTA-name-Type for gateways into Internet mail, the + MTA-name-type from "SMTP" to "dns".

+Full Copyright Statement + + Copyright (C) The Internet Society (2003). All Rights Reserved. + + This document and translations of it may be copied and furnished to + others, and derivative works that comment on or otherwise explain it + or assist in its implementation may be prepared, copied, published + and distributed, in whole or in part, without restriction of any + kind, provided that the above copyright notice and this paragraph are + included on all such copies and derivative works. However, this + document itself may not be modified in any way, such as by removing + the copyright notice or references to the Internet Society or other + Internet organizations, except as needed for the purpose of + developing Internet standards in which case the procedures for + copyrights defined in the Internet Standards process must be + followed, or as required to translate it into languages other than + English. + + The limited permissions granted above are perpetual and will not be + revoked by the Internet Society or its successors or assigns. + + This document and the information contained herein is provided on an + "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING + TASK FORCE DISCLAIMS 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. + +Acknowledgement + + Funding for the RFC Editor function is currently provided by the + Internet Society.

License

RFCのライセンス

メモ