Microsoft KB Archive/258748

= How to set a limit on the number of SMTP messages in queues =

Article ID: 258748

Article Last Modified on 10/25/2007

-

APPLIES TO

 Microsoft Windows Server 2003, Standard Edition (32-bit x86), when used with:  Microsoft Exchange Server 2003 Standard Edition

 Microsoft Exchange Server 2003 Enterprise Edition  Microsoft Windows 2000 Server, when used with:  Microsoft Exchange Server 2003 Standard Edition

 Microsoft Exchange Server 2003 Enterprise Edition</li></ul>

 Microsoft Exchange 2000 Server Standard Edition</li></ul>

 Microsoft Exchange 2000 Enterprise Server</li></ul> </li> Microsoft Internet Information Services 5.0, when used with:  Microsoft Windows 2000 Server</li></ul>

 Microsoft Windows 2000 Advanced Server</li></ul>

 Microsoft Windows 2000 Datacenter Server</li></ul> </li> Microsoft Internet Information Services 6.0</li> Microsoft Internet Information Services 6.0, when used with:  <li>Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems</li></ul>

<ul> <li>Microsoft Windows Server 2003, Enterprise x64 Edition</li></ul>

<ul> <li>Microsoft Windows Server 2003, Standard Edition (32-bit x86)</li></ul>

<ul> <li>Microsoft Windows Server 2003, Standard x64 Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q258748

<div class="notice_section">

Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry

<div class="summary_section">

INTRODUCTION
If you want to limit the number of Simple Mail Transfer Protocol (SMTP) messages that may be queued on a server that is running Microsoft Windows Server 2003 or Microsoft Windows 2000 SMTP Server, you can use the  registry key. If the limit is reached, no additional incoming messages are accepted by SMTP.

<div class="moreinformation_section">

MORE INFORMATION
If Microsoft Exchange is not installed on the computer, you can install the SMTP protocol in Internet Information Services (IIS).

Note By default, the SMTP service is installed with Windows Server 2003 and Windows 2000.

To install the SMTP protocol in IIS, follow these steps.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
 * 1) Click Start, and then click Control Panel.
 * 2) Click Add or Remove Programs, and then click Add/Remove Windows Components.
 * 3) Click Internet Information Services (IIS), and then click Details.
 * 4) Click to select the SMTP Service check box, and then click OK.
 * 5) Click Next, and then click Finish.

To set a limit on the number of SMTP messages that can be queued, follow these steps:
 * 1) Click Start, click Run, type regedit, and then click OK.
 * 2) Expand HKEY_LOCAL_MACHINE, expand Software, expand Microsoft, and then expand Exchange.
 * 3) Right-click the Exchange key, and then click New Key.
 * 4) Type MailMsg.
 * 5) Right-click this new key, and then click New DWORD Value.
 * 6) Right-click the new value, click Rename, and then type MaxMessageObjects.
 * 7) Right-click the value, click Modify, and then set the value to the maximum number of messages that you want to be in queues at any time. The default (if the key is not present) is 100,000, which is the suggested limit.

The  key refers to the maximum number of mail messages that the system can allocate. When that number of messages is in a queue on the server, additional incoming messages that come in through the SMTP protocol are refused with a 4xx (temporary) error.

The actual number of mail messages that is allocated is 90 percent of, up to a limit of 90,000.

To increase the number of objects greater than 90,000, set the  registry key to the value that you want. Do not set the  value for more than 90 percent of the   key because additional messages are created during message processing for DSN generation and content conversion.

Keywords: kbinfo KB258748

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.