public class DSNMessageHeaders extends Object
| Constructor and Description |
|---|
DSNMessageHeaders(String reportingMta,
String originalMessageId,
DSNStandard.MtaNameType mtaNameType)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
DSNStandard.MtaNameType |
getMtaNameType() |
String |
getOriginalMessageId() |
String |
getReportingMta() |
public DSNMessageHeaders(String reportingMta, String originalMessageId, DSNStandard.MtaNameType mtaNameType)
reportingMta - The reporting Mta messageoriginalMessageId - The original message idmtaNameType - The Mta typepublic String getReportingMta()
RFC 3464 Delivery Status Notifications January 2003
2.2.2 The Reporting-MTA DSN field
reporting-mta-field =
"Reporting-MTA" ":" mta-name-type ";" mta-name
mta-name = *text
The Reporting-MTA field is defined as follows:
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 that attempted to perform the delivery, relay, or gateway
operation described in the DSN. This field is required.
Note that if an SMTP client attempts to relay a message to an SMTP
server and receives an error reply to a RCPT command, the client is
responsible for generating the DSN, and the client's domain name will
appear in the Reporting-MTA field. (The server's domain name will
appear in the Remote-MTA field.)
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
delivery failure, not that of the gateway which converted the foreign
notification into a DSN. See Figure 2.
sender's environment recipient's environment
............................ ..........................................
: :
(1) : : (2)
+-----+ +--------+ +--------+ +---------+ +---------+ +------+
| | | | | | |Received-| | | | |
| |=>|Original|=>| |->| From |->|Reporting|-->|Remote|
| user| | MTA | | | | MTA | | MTA |public String getOriginalMessageId()
a custom header indicating the identifier of the original message
public DSNStandard.MtaNameType getMtaNameType()
An "MTA-name-type" specifies the format of a mail transfer agent name.
Copyright © 2010–2021 The Direct Project. All rights reserved.