SMTP ShieldsUp Protocol Sink

SMTP ShieldsUp Protocol Sink

The ShieldsUp sink example, demonstrates how to implement a simple protocol event sink for the SMTP service. Specifically, this example highlights the following:

  • Implementing an OnInBoundCommand event sink for the SMTP protocol command "EHLO" transmitted by clients over the network.
  • Using the Server Extension Objects (SEO) to register the sink event binding with the SMTP service.
  • Using the IPersistPropertyBag interface to receive binding properties when the sink is notified of an event.
  • Using the IEventIsCacheable SEO interface to signal to the event dispatcher that the sink object can and should be cached for subsequent events.

The following topics contain the code for the ShieldsUp sink example.