Article ID: 837851 - Last Review: November 30, 2007 - Revision: 4.6 How to configure an Internet Information Services SMTP virtual server to archive or to remove messages in an Exchange Server 2003 test environmentOn This PageSUMMARYTo configure a Microsoft Internet Information Services (IIS) Simple Mail Transfer Protocol (SMTP) server as the end-point of a message route in a test environment, you must configure the following settings on your computer that is running Microsoft Windows Server 2003, Microsoft Windows XP Professional, or Microsoft Windows 2000 Server:
INTRODUCTIONThis article describes how to configure a Microsoft IIS SMTP
server as the end-point of a message route in a test environment. You can use
this SMTP server to archive or to remove e-mail messages in your test
environment or to track message statistics. Configure the SMTP server in Internet Information ServicesMicrosoft Windows Server 2003, Microsoft Windows XP Professional, and Microsoft Windows 2000 Server include a SMTP server as part of Microsoft Internet Information Services. This SMTP server is the same protocol engine that Microsoft Exchange Server uses. You can install and configure the SMTP server to accept mail for the domains that you use in your test environment. To do this, follow these steps:Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
Configure a message removal event sinkIf you do not want to archive e-mail messages in the Drop folder, create an event sink to automatically delete the messages that are sent to the Drop folder. Event sinks are programs that are used to modify the behavior of the SMTP virtual server. For additional information about how to create an event sink, see the "REFERENCES" section of this article. The following example contains an event sink that marks for deletion any message that is called and then aborts calls to any other event sinks:Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Example
Configure performance countersYou can use the Performance Monitor tool (Perfmon.msc) to monitor the performance of the IIS SMTP server. To do this, use the built-in counters for the SMTP Server performance object. Use the Messages Received Total performance counter to track the total number of messages that have been submitted to the SMTP virtual server. You can also use the SMTP Server performance object to track bytes and averages. To reset these counters, stop and then restart the SMTP virtual server instance by using the Internet Information Services (IIS) Manager tool.Configure the event sink to remove messages from any domainWarning This is an advanced configuration setting that you must restrict to a test environment. If you enable this configuration setting on a production computer, remote users may be able to use the SMTP server as an open relay. For additional information about how to help prevent mail relaying on your SMTP virtual server, see the "REFERENCES" section of this article.If you do not want to archive e-mail messages, and if you do not want to configure the DeleteMsg.vbs event sink for a particular domain, you can configure the SMTP server as an open relay to accept mail for all domains. The event sink will then delete the messages as they arrive, preventing those messages from being delivered to their destination. To do this, follow these steps:
REFERENCES For additional information, click the following article number
to view the article in the Microsoft Knowledge Base: 303708
(http://support.microsoft.com/kb/303708/
)
HOW TO: Create or delete a Microsoft SMTP service domain in Windows 2000
For more information about how to create event
sinks, visit the following MSDN Web site:http://msdn2.microsoft.com/en-us/library/ms526206.aspx
(http://msdn2.microsoft.com/en-us/library/ms526206.aspx)
For more information about how to register or to un-register SMTP
event sinks, visit the following MSDN Web site: http://msdn2.microsoft.com/en-us/library/ms526620.aspx
(http://msdn2.microsoft.com/en-us/library/ms526620.aspx)
For additional information about how to help prevent e-mail
relaying, click the following article number to view the article in the
Microsoft Knowledge Base: 324281
(http://support.microsoft.com/kb/324281/
)
HOW TO: Prevent mail relay in the IIS SMTP virtual server in Windows Server 2003
APPLIES TO
| Article Translations
|
Back to the top
