Transport agent code samples for Exchange 2013
Find information about the sample transport agents that are available for Exchange 2013.
Last modified: January 13, 2014
Applies to: Exchange Server 2013
You can use the APIs that are included in Exchange Server 2013 to develop agents that extend transport functionality. This article provides information about the sample agents that are available to help you to learn how to extend transport behavior programmatically. The sample agents include the source code for each component.
The following table lists the sample agents for Exchange 2013.
|
Sample name |
Description |
|---|---|
|
This agent responds to the OnEndOfData and OnSubmittedMessage events and sends the incoming message to an out-of-process server that asynchronously examines the message and returns a modified version. |
|
|
This agent responds to the OnSubmittedMessage and OnRoutedMessage events, captures bandwidth usage for specified recipients, and logs the bandwidth usage information to a text file. |
|
|
This agent filters scripts out of email messages by determining the format of the incoming message and deciding if filtering must occur. If filtering is needed, the content is converted to HTML, filtered, and then converted back to the source format. |
|
|
This agent responds to the OnEndOfData event, and asynchronously logs the message to a file on the local hard disk. |
|
|
Exchange 2013: Build a transport agent that blocks senders temporarily |
This agent responds to the OnEndOfHeaders and OnRcptCommand events and determines whether the message sender has previously sent messages to the Front End Transport service. If the sender has not previously sent a message to the Front End Transport service, the sender is added to a list of senders, and the message is rejected with a response that tells the client to try again later (also known as graylisting). If the sender is in the list of previous senders, the agent does not reject the message. |
|
Exchange 2013: Build a Mailbox server logging transport agent |
This agent responds to the OnRoutedMessage transport pipeline event and synchronously logs the message to a file on the local hard disk. |
|
This agent responds to the OnEndOfHeaders event and read and modify X-headers in messages. |