Microsoft KB Archive/188298

= PRB: IMS Custom Routing DLL may Drop Mail =

Article ID: 188298

Article Last Modified on 3/4/2004

-

APPLIES TO


 * Microsoft Exchange Development Kit 5.5
 * Microsoft Exchange Server 5.5 Service Pack 1
 * Microsoft Exchange Server 5.5 Service Pack 2

-



This article was previously published under Q188298



SYMPTOMS
The Exchange Server Internet Mail Service (IMS) when configured to use a custom routing DLL may drop mail if the definition and implementation of the rcRouteInboundMail uses _stdcall.



CAUSE
For this call, the Exchange server is expecting the caller to cleanup the stack that requires the called DLL to use the _cdecl calling convention. The sample routing DLL uses a _cdecl calling convention that properly reroutes SMTP mail.



MORE INFORMATION
The sample routing DLL is called Imcext.dll and is found on the Exchange SDK as well as the "Microsoft BackOffice Resource Kit: Part One" compact disc. Searching the Microsoft Developer Network on "IMC Sample Extension" returns more information on this sample.

