Microsoft KB Archive/247958

= How to Change the Path Used by the SMTP Service for the NTOP =

Article ID: 247958

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q247958



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SUMMARY
When you install the Windows NT 4.0 Option Pack (NTOP), the root directory of the Default Web Site is Inetpub\Wwwroot. During setup, in the Inetpub folder, the Mailroot subdirectory is created with the following subfolders used by the SMTP service:
 * BadMail


 * Drop


 * MailBox


 * PickUp


 * Queue


 * Route


 * SortTemp

If you move the Inetpub directory to another drive or folder and delete the original Inetpub directory, when you restart your Web server, the folders for the SMTP Service are re-created in the Inetpub directory.



MORE INFORMATION
To configure the SMTP service to use the new root directory, you must change the path information in the metabase. To manually make the changes necessary to the metabase, use MetaEdit from the IIS Resource Kit or programmatically use ADSI APIs. To do this, perform the following steps:  Edit the metabase and open LM/SMTPSVC. Edit ID 36930 to reference the new SortTemp directory. Open LM/SMTPSVC/1/QueueDirectory and edit the string to reference the new folder. Open LM/SMTPSVC/1/PickupDirectory and edit the string to reference the new folder. Open LM/SMTPSVC/1/DropDirectory and edit the string to reference the new folder Open LM/SMTPSVC/1/BadMailDirectory and edit the string to reference the new folder.</li> Open LM/SMTPSVC/1/RoutingSources and edit the multisz to reference the new folder.</li> Open LM/SMTPSVC/1/Root/MailBox/Path and edit the string to reference the new folder.</li> From the command prompt or services, stop the IIS Admin Service using the following command:

net stop IISADMIN

</li> For the changes to take effect, restart the Web Publishing Service using the following command:

net start W3SVC

</li></ol>

<div class="references_section">