XFOR: Mail Queues Grow And Messages Are Not Deleted From Queue (185872)



The information in this article applies to:

  • Microsoft Commercial Internet System 1.0

This article was previously published under Q185872
IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SYMPTOMS

The mail queues in Microsoft Internet Mail Service grow and messages are not deleted from the queue.

CAUSE

The mail queues in Internet Mail Service are single threaded. When the server is under a heavy load, the queues can back up. The following fix adds multithreading to the remote and local queues.

RESOLUTION

To resolve this problem, obtain the following fix by contacting Microsoft Product Support Services.

The fixed Smtpsvc.dll should have the following version number:

5.00.7734 (Intel)
5.00.7734 (Alpha)

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

To install this fix, perform the following steps:
  1. Stop SMTPSVC by performing one of the following:

    • From a command prompt run the following:

      net stop SMTPSVC

      -or-
    • Select the SMTP service in Microsoft Internet Service Manager, click Properties on the menu bar, and then choose Stop Service.
  2. Replace Smtpsvc.dll in your <SystemRoot>\System32\Inetsrv directory with the version of Smtpsvc.dll included in this fix.
  3. Add the following registry keys to HKLM\SYSTEM\CCS\Services\SmtpSvc\Parameters as DWORD values:

    LocalQueueThreads: 1
    RemoteQueueThreads: 4

    NOTE: The maximum number of threads per queue is 64.
  4. Start SMTPSVC by performing one of the following:

    • From a command prompt run the following:

      net start SMTPSVC

      -or-
    • Select the SMTP service in Microsoft Internet Service Manager, click Properties on the menu bar, and then choose Start Service.
After you install this fix, you will need to test the computer with the threads set at various levels. The ideal number of threads depends on your hardware and your goals. Please note that on a single processor computer, setting the threads beyond their defaults may cause a loss of performance; more threads does not necessarily mean more performance.

STATUS

Microsoft has confirmed this to be a problem in Commercial Internet System version 1.0.

A supported fix is now available, but has not been fully regression tested and should be applied only to systems experiencing this specific problem, and that are severely impacted it. Contact Microsoft Technical Support for more information.

Modification Type:MinorLast Reviewed:9/22/2005
Keywords:kbHotfixServer kbQFE kbbug kbfix KB185872