Sdílet prostřednictvím


Transport Agent Development Solutions

You can use the APIs that are included in Exchange Server 2010 to develop agents that extend transport functionality. The Exchange 2010 Transport Agents SDK includes functional sample applications that show you how to extend transport behavior programmatically. The sample applications are installed with the SDK and include the source code for each component. You can download the Exchange 2010 Transport Agents SDK from the Microsoft Download Center.

This section provides information about each sample application, including the following:

  • An overview of the sample application.

  • How to navigate the application source code.

  • How to set up the sample application.

  • How to use the sample application.

Note

The sample applications that are installed with this SDK are intended for instructional purposes and are not meant to be installed in a production environment.

In This Section

Antivirus Sample Application - This sample 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 of the message.

Bandwidth Logging Sample Application - This sample shows you how to create an agent that responds to the OnSubmittedMessage and OnRoutedMessage events, captures bandwidth usage for specified recipients, and logs the bandwidth usage information to a text file.

Body Conversion Sample Application - This sample shows you how to filter scripts out of e-mail messages. The application does this 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.

Edge Transport Logging Sample Agent - This sample shows you how to create an agent that responds to the OnEndOfData protocol event, and asynchronously logs the message to a file on the local hard disk.

Greylisting Sample Agent - The Greylisting sample agent responds to the OnEndOfHeaders and OnRcptCommand events and determines whether the message sender has previously sent messages to the Exchange Server 2010 computer that has the Edge Transport server role installed. If the sender has not previously sent a message to the Edge Transport server, 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. If the sender is in the list of previous senders, the agent does not reject the message.

Hub Transport Logging Sample Agent - This sample shows you how to create an agent that responds to the OnRoutedMessage transport pipeline event and synchronously logs the message to a file on the local hard disk.

XHeader Sample Application - This sample shows you how to respond to the OnEndOfHeaders event and read and modify X-headers in messages.