Search

Looking for a Microsoft Solution Provider ?

Contact Ascend ITS.

What is my IP ?

Your are connected to this site from 38.107.179.230
Follow us on Twitter
IIS SMTP and Exchange Registry Settings PDF Print E-mail
Written by Administrator   
Tuesday, 08 December 2009 02:40
To configure Microsoft's IIS SMTP (which is also the base for Microsoft Exchange 2000 and 2003) you can use about five different approaches.
  • IIS Management Interface
  • ADSI
  • WMI
  • Edit the Metabase
  • Edit the registry

As in most cases the IIS Management Interface doesn't provide all the options you need, you have to go on to more abstract ways.

When you use ADSI or WMI, you're actually editing the Metabase. It's very useful for writing scripts and other automated processes, but not so much for an initial config. In the last case you would rather want to use Notepad to edit the Metabase by hand.

The Metabase has a lot of settings (and combination of settings) which are not enabled in the IIS Management Interface. For example, you are able to set (a different) smarthost address per local domain by applying a different RouteAction. Or you could simply add a wildcard domain like *.com

But then there are always some "little" things that you still can't configure using all those approaches mentioned above. This is where the Registry comes in. The registry can set some additional start-up parameters on the SMTPSVC Service. This service is the main service for IIS SMTP and is also used by Exchange 2000 and 2003.

Because I couldn't find an exhaustive list of the available Registry settings anywhere on the net, I decided to present you one here. There might be some more. If so, please comment me on that and I'll add them to the list. Also, please tell me about any errors on this page.

Also know that all these settings work for IIS SMTP even though mosts sites tell you they only work for Exchange systems

 

pathHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMTPSVC\Queuing\
keynameMaxDSNSize
typeREG_DWORD
valuesize in bytes
descriptionA system administrator may specify a size limit for original messages that will be attached to the NDR message. Messages that are larger the the limit specified will not be attached to the NDR message. When set to 0, the original message is not sent along at all.
applies toIIS SMTP, Exchange 2000/2003
more infohttp://support.microsoft.com/default.aspx?scid=kb;en-us;555231
pathHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMTPSVC\Queuing\
keynameGlitchRetrySeconds
typeREG_DWORD
valuenumber of seconds
descriptionTo retry an outbound connection after beeing greylisted, set this key to the appropriate time-to-wait. Greylisting is a spam-pervention measurement where the first connection attempt is dropped and the second connection may pass after waiting several seconds.
applies toIIS SMTP, Exchange 2000/2003
more infohttp://technet.microsoft.com/en-us/library/aa998772.aspx
pathHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMTPSVC\Parameters\
keynameTarpitTime
typeREG_DWORD
valuenumber of seconds
descriptionTo tarpit every failure response to a connected client (4xx and 5xx responses) set this value to the appropriate time-to-wait. Tarpitting is an email address harvesting prevention measurement. By enabling tarpitting it takes too long to harvest email addresses on your server because every bad-guessed address takes a number of seconds to wait.
applies toIIS SMTP, Exchange 2000/2003
more infohttp://support.microsoft.com/kb/899492
pathHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMTPSVC\Queuing\
keynameZombieDomainEntryThreshold
typeREG_DWORD
valuenumber of messages
descriptionTo prevent your queue beeing stuffed by messages to zombie domains, you can define a threshold. When this threshold is reached for any domain, mail will no longer be queued for that domain.
applies toIIS SMTP, Exchange 2000/2003
more infohttp://support.microsoft.com/kb/910932
pathHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMTPSVC\Queuing\
keynameMaxBadMailFolderSize
 typeREG_DWORD
 valuesize in kilobytes (-1 is no limit)
keynameBadMailSyncPeriod
 typeREG_DWORD
 valuetime in minutes (not specified is 12 hours)
descriptionTo prevent your badmail directory from growing indefinately, you can set a maximum size to your badmail directories (goes for all virtual server instances). This is a hard maximum and not a circular buffer. It just stops putting in more badmails. IIS checks once in a while to see if there is some free space again. This time is set by the BadMailSyncPeriod key.
applies toIIS SMTP, Exchange 2000/2003
more infohttp://msexchangeteam.com/archive/2004/07/20/188856.aspx
pathHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMTPSVC\Queuing\
keynameMsgHandleThreshold
 typeREG_DWORD
 valuenumber of filehandles
keynameMsgHandleAsyncThreshold
 typeREG_DWORD
 valuenumber of filehandles
keynameFileCacheMaxHandles
 typeREG_DWORD
 valuenumber of filehandles
descriptionLarge SMTP systems with queue sizes over 1000 messages can have problems with the filesystem and with memory. To increase the queue size, set the both thresholds to a size over 1000 (the default value). Set them both to the same size. To reduce memory used by the handle cache, set the FileCacheMaxHandles to any size below 800 (the default value).
applies toIIS SMTP, Exchange 2000
more infohttp://searchexchange.techtarget.com/news/article/0,289142,sid43_gci959619,00.html
pathHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\
keynamePoolThreadLimit
 typeREG_DWORD
 valuenumber of threads (-1 or 0xFFFFFFFF is unlimited) 
pathHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMTPSVC\Queuing\
keynameMaxPercentPoolThreads
 typeREG_DWORD
 valuepercentage (90% is default)
keynameAdditionalPoolThreadsPerProc
 typeREG_DWORD
 valuepercentage (90% is default)
descriptionPoolThreadLimit is a hard limit that includes all IIS pool threads.
MaxPercentPoolThreads limits the percentage of ATQ threads that the SMTP service can use. The recommended setting is 90/( 2*Number of SMTP virtual server instances ).
AdditionalPoolThreadsPerProc determines additional pool threads per processor that the Inetinfo process creates when the SMTP service is started. The recommended setting is ((9/(MaxPercentPoolThreads/100))–4)/2
applies toIIS SMTP, Exchange 2000
more infohttp://technet.microsoft.com/en-us/library/bb123978.aspx

Bookmark with:

Deli.cio.us    Digg    reddit    Facebook    StumbleUpon    Newsvine