Custom Transport Agent: How do I collect NDRs and all other undeliverables in Exchange 2010 from the Postmaster?

Posted by makerofthings7 on Server Fault See other posts from Server Fault or by makerofthings7
Published on 2013-11-13T15:51:47Z Indexed on 2013/11/13 15:58 UTC
Read the original article Hit count: 251

I'm trying to collect all NDRs in a single mailbox for all invalid recipients, and anything that fails for any reason.

I have a custom transport agent, that I've written myself that appears here:

[PS] C:\Windows\system32>Get-TransportAgent

Identity                                           Enabled         Priority
--------                                           -------         --------
Transport Rule Agent                               True            1
Text Messaging Routing Agent                       True            2
Text Messaging Delivery Agent                      True            3
Routing Rule Agent                                 True            4  ****

Sometimes when I run get-messagetrackinglog I get failures like this below

RunspaceId              : 4ecc61fb-13b9-4506-b680-577222c9bf21
Timestamp               : 10/14/2013 12:42:42 PM
ClientIp                :
ClientHostname          : Exchange1
ServerIp                :
ServerHostname          :
SourceContext           : Routing Rule Agent
ConnectorId             :
Source                  : AGENT
EventId                 : FAIL
InternalMessageId       : 4416
MessageId               : <[email protected]>
Recipients              : {[email protected]}
RecipientStatus         : {}
TotalBytes              : 4542
RecipientCount          : 1
RelatedRecipientAddress :
Reference               :
MessageSubject          : review CGRC due diligence.
Sender                  : [email protected]
ReturnPath              : [email protected]
MessageInfo             :
MessageLatency          :
MessageLatencyType      : None
EventData               :

How can I collect the NDRs in a single mailbox for review? I have already set the following command but it is of no effect

[PS] C:\>set-TransportConfig -JournalingReportNdrTo [email protected] -ExternalPostmasterAddress [email protected]

© Server Fault or respective owner

Related posts about exchange-2010

Related posts about smtp