Microsoft Internet Security and Acceleration Server 2000

Add SMTP Content Filtering Using the IFWXDataFilter Interface

The data filter in this example looks for a string (configurable) in the SMTP message. The firewall attaches a new instance of the data filter to every inbound TCP connection to Port 25 (monitoring the fwx_AcceptedConnection event on this port).

You will need to take the following steps:

  1. Create a COM Object that Implements the IFWXDataFilter Interface
  2. Add the Definition and Implementation of IFWXDataFilter Methods
  3. Attach the data filter
  4. Implement the IFWXIOCompletion Interface
  5. Implement the _CloseSockets and _GetSockets Functions
  6. Perform Data Pumping