This documentation is archived and is not being maintained.

CDOSYS SMTP/NNTP Event Sinks

Exchange Server 2003

CDOSYS SMTP/NNTP Event Sinks

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release. This topic provides information about using CDOSYS SMTP/NNTP Event Sinks to develop messaging applications.

Introduction

The Microsoft® Windows® 2000 Simple Mail Transfer Protocol (SMTP) and Network News Transfer Protocol (NNTP) services provide an architecture for the addition of customized software that responds to events. Applications can use CDOSYS to respond to messages as they are received by the SMTP and NNTP services.

Caveats

CDOSYS event sinks do not have all the capabilities of the SMTP transport event sinks, but CDOSYS event sinks are easier to develop.

Functional Criteria

Criteria CDOSYS SMTP/NNTP Event Sinks
Application Domain The event sink features of CDOSYS are typically used in applications that append disclaimers or other notices to e-mail sent through your server, archive messages, detect and discard unsolicited bulk mailings, detect and discard inappropriate newsgroup postings, check inbound messages for viruses, forward and filter messages automatically, and so on.
Major Objects Applications that use SMTP and NNTP event sinks implement COM classes having the appropriate Microsoft Collaboration Data Objects (CDO) event interfaces. Event interfaces are available for SMTP OnArrival events and NNTP OnPostEarly, OnPost, and OnPostFinal events.
Data access model When the event sinks are fired, they receive the message being processed inside a CDO.Message object. The message parts are represented as a hierarchy of objects with methods and properties.
Threading Models For better performance, the COM classes created as event sinks should be set to support apartment-style multithreading.
Application Architectures CDOSYS SMTP/NNTP event sinks run on the computer where the message is being processed. Applications that use CDOSYS event sinks might have a GUI application to configure how the event sinks operate, and to provide information to the user or administrator about message handling activities.
Remote Usage CDOSYS SMTP/NNTP event sinks must run on the computer where mail is being processed and cannot be used in COM+ applications.
Transactions No.
Management Capabilities CDOSYS does not generate Windows 2000 Event Log entries, and no performance counters are available to measure it. Windows Event log entries and performance counters can be built into SMTP event sinks to provide additional management and monitoring capabilities.
Availability Currently shipping in all versions of Microsoft Windows 2000, Windows XP, and Windows Server™ 2003. No changes are anticipated at this time.

Development Criteria

Criteria CDOSYS SMTP/NNTP Event Sinks
Languages and Tools CDOSYS can be used with any COM/Automation-compatible languages as well as with non-COM languages such as C/C++.
Managed Implementation CDOSYS is an unmanaged component. Use of CDOSYS is supported under the COM Interoperability layer of Visual Studio .NET and the .NET Framework.
Scriptable CDOSYS event sinks can be implemented by using scripts.
Test/Debug Tools No special debugging tools are needed to debug applications that use CDOSYS. For particularly difficult protocol-interaction issues, a network monitoring utility may prove helpful, but is typically not required.
Expert Availability Even beginning developers can easily use CDOSYS SMTP/NNTP event sinks, and many Microsoft and third-party Web sites and communities are available.
Available Information CDOSYS is covered in several Microsoft and third-party books. For more information about CDOSYS, see About CDO for Windows 2000 Online link on MSDN.
Developer/Deployment Licensing No special licenses are needed for using CDOSYS. Depending on configuration, your systems may require access to an additional SMTP/NNTP server to transport messages to their destination.

Security Criteria

Criteria CDOSYS SMTP/NNTP Event Sinks
Design-Time Permissions Creating CDOSYS SMTP/NNTP event sinks requires that the developer be permitted to register COM components on the local machine where e-mail is processed. This permission is usually granted by way of allowing the developer to install software. If the developer is not working on a production server, the possibility that unencrypted sensitive information will be available on that computer is lower. Permitting development work on production e-mail servers is not recommended.
Setup Permissions Because unencrypted sensitive information may be flowing through the production e-mail server, use care when granting permission to install software. It is recommended that deployment to the production servers be performed by administrators.
Run-Time Permissions CDOSYS SMTP/NNTP event sinks run in the same process as IIS, and share the same security credentials as that service account. This may affect what resources the event sink can access.
Built-in Security Features SMTP event sinks provide no built-in security features. If an event sink changes a message after the user has digitally signed it, the accompanying digital signature will be invalid. SMTP event sinks cannot apply disclaimers or access the body of S/MIME and other encrypted messages when the encryption keys are unavailable.
Security Monitoring Features CDOSYS event sinks provide no built-in security monitoring features. CDOSYS event sinks can create Windows Event Log entries as needed.

Deployment Criteria

Criteria CDOSYS SMTP/NNTP Event Sinks
Server Platform Requirements CDOSYS is available on Microsoft® Windows® 2000, Windows XP, and Windows Server™ 2003. CDOSYS SMTP/NNTP even sinks require IIS to be configured, and the messages that trigger the events must be processed by the local SMTP/NNTP service.
Client Platform Requirements CDOSYS is available on Windows 2000, Windows XP, and Windows Server 2003.
Deployment Methods There are no special requirements for application installation, beyond verifying that the computer is running one of the operating systems that include CDOSYS.
Deployment Notes On systems where Exchange 2000 or Exchange 2003 is installed, the CDOSYS components are replaced by CDO for Exchange 2000 Server (CDOEX), which provides additional functionality over CDOSYS. CDOEX is described separately. Applications that use CDOSYS SMTP/NNTP events should not be installed on Exchange back-end servers.
Show: