
Configuring NDRs to be Copied to a Mailbox
You can control which NDRs are copied to a mailbox by specifying which Delivery Status Notification (DSN) codes you want to monitor. A DSN code is the code that is returned by the receiving server to the sending server when delivery of a message fails. This code indicates why the delivery of the message failed. Each DSN code is associated with a DSN message. This DSN message, which includes a user-friendly explanation of why the delivery failed, is included in the NDR that is sent back to the sender of the original message.
On a Hub Transport server, NDRs are copied to the mailbox that is associated with the Microsoft Exchange Recipient. On Edge Transport servers, NDRs are copied to the external postmaster address. For more information, see the "Copying Internal NDRs to a Mailbox" and "Copying External NDRs to a Mailbox" sections earlier in this topic.
To configure the DSN codes that you want to monitor, you must do the following:
-
On one Hub Transport server, use the GenerateCopyOfDSNFor parameter on the Set-TransportConfig cmdlet or use the Exchange Management Console to configure the DSNs that you want to monitor. When you configure the monitored DSNs on one Hub Transport server, the configuration is replicated to all the other Hub Transport servers in the Exchange organization.
Note: |
|---|
|
In Microsoft Exchange Server 2007 Service Pack 1 (SP1), you can also use the Exchange Management Console on a Hub Transport server to configure the DSNs that you want to monitor.
|
-
On each Edge Transport server in the Exchange organization, configure the DSNs that you want to monitor by using the GenerateCopyOfDSNFor parameter on the Set-TransportConfig cmdlet.
By default, the following DSN codes are monitored:
| 5.4.8 | 5.2.4 |
| 5.4.6 | 5.2.0 |
| 5.4.4 | 5.1.4 |
For more information about DSN codes and NDRs, see Understanding Non-Delivery Reports.
Note: |
|---|
|
Even though the DSN codes in the previous list are monitored by default, the associated NDRs aren't copied to the Microsoft Exchange Recipient or to the external postmaster address if no mailbox is assigned to the Microsoft Exchange Recipient or to the external postmaster address. By default, no mailbox is assigned to the Microsoft Exchange Recipient or to the external postmaster address.
|

To use the Exchange Management Console on a Hub Transport server to configure the monitored DSN codes in Exchange 2007 SP1
-
Open the Exchange Management Console.
-
In the console tree, click Organization Configuration, and then click Hub Transport.
-
In the result pane, click the Global Settings tab.
-
In the action pane, click the Properties link that is directly under Transport Settings.
-
Click the Message Delivery tab. In the DSN area, do one of the following:
-
To add a DSN code, enter the 3-digit DSN code as x.y.z, and then click Add.
-
To edit an existing DSN code, select the DSN code, and then click Edit. Modify the DSN as necessary, and then press Enter.
-
To remove an existing DSN code, select the DSN code, and then click
.
-
When you are finished, click OK.
Note: |
|---|
|
You can only use the Exchange Management Console to configure the list of monitored DSNs on a Hub Transport server. On an Edge Transport server, you must use the Set-TransportConfig cmdlet in the Exchange Management Shell.
|

To use the Exchange Management Shell on a Hub Transport server or Edge Transport server to configure the monitored DSN codes in Exchange 2007 SP1 or the release to manufacturing (RTM) version of Exchange 2007
-
Run the following command:
|
Set-TransportConfig -GenerateCopyOfDSNFor <DSN1, DSN2, DSN3, ...> |
For example, to specify DSN codes 5.4.8, 5.4.6, 5.7.1 and 5.7.2, run the following command:
|
Set-TransportConfig -GenerateCopyOfDSNFor 5.4.8, 5.4.6, 5.7.1, 5.7.2 |
If you want to modify the default list of DSNs that are configured on the GenerateCopyOfDSNFor parameter, first note the DSN codes that you want to keep. Every time that you configure the GenerateCopyOfDSNFor parameter, you must reenter the previously configured DSN codes in addition to adding any additional DSN codes.