Microsoft KB Archive/290290

= XIMS: Cannot Send Mail After Re-Installing the IIS SMTP Service =

PSS ID Number: 290290

Article Last Modified on 12/11/2003

-

The information in this article applies to:


 * Microsoft Exchange 2000 Server
 * Microsoft Exchange 2000 Enterprise Server
 * Microsoft Exchange Server 2003 Enterprise Edition
 * Microsoft Exchange Server 2003 Standard Edition

-



This article was previously published under Q290290





IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
After you re-install the Simple Mail Transfer Protocol (SMTP) service or re-install Internet Information Services (IIS) on a Microsoft Windows 2000-based computer, mailboxes on that server may no longer be able to send and receive mail from each other.

If there are other servers in the routing group, those servers can send mail to each other, but not to or from the server that is experiencing this issue. If a user attempts to send mail to a mailbox on the server that is experiencing this issue, the user receives a non-delivery report (NDR) that is similar to the following NDR:

-Original Message-

From: System Administrator

Sent: Tuesday, February 20, 2001 6:04 PM

To: Ops, Global

Subject: Undeliverable: Test Message

Your message did not reach some or all of the intended recipients.

Subject: Test Message

Sent: 2/20/2001 6:04 PM

The following recipient(s) could not be reached:

Ops, Global on 2/20/2001 6:04 PM

The e-mail system was unable to deliver the message, but did not report a specific reason. Check the address and try again. If it still fails, contact your system administrator.

server.domain.com #5.0.0

If there is an SMTP connector on the Exchange 2000 server that is experiencing this issue, the following error message may be logged in the System log:

Event: 4000

Source: smtpsvc

Description: Message delivery to the remote domain &quot; adatum.com' failed. The error message is unable to bind to the destination server in dns.

Your mail may also seem to disappear. If you check the Exchsrvr\Mailroot\Vsi 1\Badmail folder, you should find the missing mail messages. In this case, the reason that mail cannot be delivered is often C0040557 (0xC0040557). You can verify that this is the cause of the issue by connecting to the server that is experiencing this issue as follows:
 * 1) Open a command prompt window, and then type TELNET SERVERNAME 25.
 * 2) Type CTRL+], and then type SET LOCAL_ECHO.
 * 3) Press the ENTER key once to return to the telnet session.
 * 4) Type EHLO, and then press the ENTER key.

The session looks like the following session:

220 server.domain.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.1600 ready at Wed, 21 Feb 2001 10:00:18 -0500 ehlo 250-server.domain.com Hello [192.168.10.5] 250-TURN 250-ATRN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250 OK

The following additional command verbs for the SMTP service in Microsoft Exchange 2000 Server or Microsoft Exchange Server 2003 are not present:

250-X-EXPS GSSAPI NTLM LOGIN 250-X-EXPS=LOGIN 250-AUTH GSSAPI NTLM LOGIN 250-AUTH=LOGIN 250-XEXCH50 250-X-LINK2STATE



CAUSE
This issue can occur if the SMTP service for Windows 2000 has been re-installed, but the Exchange Server SMTP service extensions have not been restored.



RESOLUTION
To resolve this issue:  Make sure that the SMTP service is installed. If the Windows 2000 service pack files are not on the computer, you may have to reapply the service pack. Verify that the SMTP service is the correct service pack version (Windows 2000 Service Pack 1 [SP1] or later) by checking the properties of Smtpsvc.dll in the following folder:

%SystemRoot%\System32\Inetsrv

 Re-install Exchange Server by running Setup and choosing the REINSTALL option. This backfills any missing files and metabase entries and does not affect the Exchange Server computer settings or mailboxes. Reapply any Exchange Server service packs or hotfixes.</li></ol>

In some situations, you might also need to follow the steps in the following Microsoft Knowledge Base article:

277770 XADM: Event 7000 Occurs When Attempting to Start Exchange Service

If SMTP was the only IIS component that was reinstalled, then for Exchange 2000 SP2 or later you can use the SMTP Reinstall Tool (Smtpreinstall.exe) to restore the missing Exchange 2000 ESMTP verbs and the Exchange 2000 versions of the files. Smtpreinstall.exe is in the \Server\Support\Utils\i386 folder on the Exchange 2000 SP2 or later CD. Run Smtpreinstall.exe in place of the earlier Steps 3 and 4.

To run Smtpreinstall.exe:
 * 1) Copy Smtpreinstall.exe to the \Exchsrvr\Bin folder.
 * 2) Run Smtpreinstall.exe from that folder.
 * 3) Restart the computer when you receive the prompt.

<div class="moreinformation_section">

MORE INFORMATION
Microsoft strongly recommends that you perform regular metabase backups. You can do so by choosing the System State backup option with your backup program. You can also do so by right-clicking the server in Internet Service Manager. If you have a good metabase backup, you can restore that backup instead of using the steps in the &quot;Resolution&quot; section of this article.

The Windows 2000 SMTP service is a key underlying component of Exchange 2000. If you uninstall IIS or SMTP, the bindings and registrations that Exchange Server requires are removed. For this reason, you should not remove and re-install IIS on an Exchange Server computer, except in extreme cases. IIS stores its configuration in a enhanced registry-like binary hive called the metabase. If you are running IIS, it is strongly recommended that you back up the metabase.

If your SMTP service is removed unexpectedly, check to make sure that the Exchange Server 5.5 MSExchangeIMC key does not exist on the Exchange 2000 or later computer.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To check for the MSExchangeIMC key: <ol> Start Registry Editor (Regedt32.exe).</li> Locate the following key in the registry:

HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Services\MSExchangeIMC

</li> If MSExchangeIMC key exists, delete it to prevent SMTP from being removed unexpectedly.</li> Quit Registry Editor.</li></ol>

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

294804 SMTP Is Removed When You Upgrade to Windows 2000 Service Pack 1 or Service Pack 2

Additional query words: exch2kp2w remove

Keywords: kberrmsg kbExchange2000SP2Fea kbprb KB290290

Technology: kbExchange2000EntServ kbExchange2000Search kbExchange2000Serv kbExchange2000ServSearch kbExchangeSearch kbExchangeServ2003Ent kbExchangeServ2003Search kbExchangeServ2003St

-

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

© 2004 Microsoft Corporation. All rights reserved.