The default limit on the number of incoming messages that mayed by queued by your SMTP (Simple Mail Transfer Protocol) server is 100000 (One hundred thousand). When this limit is reached, no additional incoming messages are accepted by SMTP.

Using REG.EXE built into Windows XP and Windows Server 2003, or REG.EXE installed from the Windows 2000 Support Tools on the CD-ROM, I have scripted MaxSMTPQue.bat to set limit on the number of SMTP messages that may be queued.

The syntax for using MaxSMTPQue.bat is:

MaxSMTPQue NumbMsg ComputerName1 \[ComputerName2 ... ComputerNameN\]

Where NumbMsg is the limit you want to set, and each ComputerNameX is the NetBIOS name of a SMTP server you wish to configure.

MaxSMTPQue.bat contains:

@echo off
If \{%2\}<h1><a name="_echo_Syntax_MaxSMTPQue_NumbMsg_ComputerName1_ComputerName2_ComputerNameN_amp_goto_EOF_setlocal_ENABLEDELAYEDEXPANSION_set_wrk_1_shift_set_wrk_wrk_#_set_wrk_wrk_lz_if_wrk_0_1_NEQ_0_goto_setNumb_set_wrk_wrk_1_goto_lz_setNumb_set_wrk_wrk_#_if_wrk_EQU_echo_Syntax_MaxSMTPQue_NumbMsg_ComputerName1_ComputerName2_ComputerNameN_amp_endlocal_amp_goto_EOF_set_a_NumbMsg_wrk_set_a_CutOff_NumbMsg_100_set_a_CutOff_CutOff_90_echo_loop_if_1_">\{\} @echo Syntax: MaxSMTPQue NumbMsg ComputerName1 \[ComputerName2 ... ComputerNameN\]&goto :EOF
set wrk=%1
set wrk=%wrk:"=%#
set wrk=%wrk:,=%
if "%wrk:~0,1%" NEQ "0" goto setNumb
set wrk=%wrk:~1%
goto lz
set wrk=%wrk:#=%
if "%wrk%" EQU "" @echo Syntax: MaxSMTPQue NumbMsg ComputerName1 \[ComputerName2 ... ComputerNameN\]&endlocal&goto :EOF
set /a NumbMsg=%wrk%
set /a CutOff=%NumbMsg% / 100
set /a CutOff=%CutOff% * 90
if \{%1\}</a></h1>\{\} endlocal&goto :EOF
set computer=%1
set computer=%computer:"=%
set computer=%computer:\=%
@echo REG ADD "\\%computer%\HKLM\SOFTWARE\Microsoft\Exchange\MailMsg" /V MaxMessageObjects /T REG_DWORD /F /D %NumbMsg%
REG ADD "\\%computer%\HKLM\SOFTWARE\Microsoft\Exchange\MailMsg" /V MaxMessageObjects /T REG_DWORD /F /D %NumbMsg%
@echo REG ADD "\\%computer%\HKLM\SOFTWARE\Microsoft\Exchange\MailMsg" /V MessageObjectsInboundCutoffCount /T REG_DWORD /F /D %CutOff%
REG ADD "\\%computer%\HKLM\SOFTWARE\Microsoft\Exchange\MailMsg" /V MessageObjectsInboundCutoffCount /T REG_DWORD /F /D %CutOff%
goto loop