Platform SDK: Exchange Server

Nondelivery Reports

A gateway should generate nondelivery reports whenever message delivery fails. The nondelivery report is returned to the original sender. There are several reasons why message delivery can fail:

Like delivery reports, nondelivery reports can be generated by calling the MAPI method IMAPISupport::StatusRecips. Since nondelivery reports are so important, however, you may want your gateway to generate its own nondelivery reports (messages with the message class REPORT.IPM.Note.NDR). A Microsoft Exchange Server nondelivery report should contain at least the following elements:

The original message and its recipient list are included in the nondelivery report as an embedded message attachment. The properties for the envelope and failed recipient list are described in Nondelivery Report Envelope Properties and Nondelivery Report Failed Recipient List Properties.

The remaining topics in this section present information necessary to generate well-formed nondelivery reports.