Export (0) Print
Expand All

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.

Table 1. Transport agent samples

Sample name

Description

Exchange 2013: Build an antivirus transport agent

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.

Exchange 2013: Build a bandwidth logging transport agent

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.

Exchange 2013: Build a body conversion transport agent

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.

Exchange 2013: Build an SMTP logging transport agent

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.

Exchange 2013: Build an X-header transport agent

This agent responds to the OnEndOfHeaders event and read and modify X-headers in messages.

Show:
© 2014 Microsoft