Microsoft KB Archive/906557

= How to use the Mfcmapi.exe utility to view and work with messages in the SMTP TempTables in Exchange 2000 Server and in Exchange Server 2003 =

Article ID: 906557

Article Last Modified on 10/25/2007

-

APPLIES TO


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

-





SUMMARY
''This article describes how to use the Mfcmapi.exe utility to view and work with messages in the Simple Mail Transfer Protocol (SMTP) TempTables in Microsoft Exchange 2000 Server and in Exchange Server 2003. The Mfcmapi.exe utility user interface can display all the folders and subfolders that are in any message store. It can also display any address book that is loaded in a profile.''



INTRODUCTION
There are several scenarios in which you may have to use the Mfcmapi.exe utility to view and work with messages in the SMTP TempTables in Exchange 2000 Server and in Exchange Server 2003. These scenarios include the following:  Messages that are stuck in the TempTable block some or all SMTP traffic. Messages are delivered multiple times. This scenario may occur when the information store is restarted or when the computer is restarted. No users can browse the Internet after the SMTP service is started. This scenario may occur when a large outgoing message that is sent to several recipients becomes stuck in the SMTP queue. You see slow mail flow in Exchange. Messages that are awaiting directory lookup seem to be backing up. No information is logged in the Application event log about any problem with the SMTP transport. The administrator receives unusual non-delivery reports (NDRs). For example, the administrator receives an NDR that is similar to the following:

From: System Administrator

To: User Subject:?

Undeliverable: Your message did not reach some or all of the intended recipients. The following recipient(s) could not be reached: user@domain.com on 6/26/2001 12:00 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. 

If you increase diagnostics logging for MSExchangeTransport in Exchange System Manager, the following event may be logged in the Application event log:

Event 4004

Source MsExchangeTransport

Categorization Failed. The error message is &quot;.

Note The option to increase diagnostic logging for MSExchangeTransport appears in the properties of the  object in Exchange System Manager.

If you use the Regtrace utility to capture a trace of procedure calls, the following error may be captured:

EcGetProps failed with not found error for smtptemptbldata3

  Mail cannot be received or sent, and Event 7011 is recorded in the System log for each Microsoft Internet Information Services (IIS) service. These services include RESvc, NntpSvc, IMAP4Svc, IISADMIN, W3SVC, and SMTPSVC. Event Type: Error

Event Source: Service Control Manager

Event Category: None

Event ID: 7011

Description: Timeout (30000 milliseconds) waiting for a transaction response from the ...(Name of the IIS Service) </li></ul>

<div class="moreinformation_section">

MORE INFORMATION
To use the Mfcmapi.exe utility to view and work with messages in the SMTP TempTables in Exchange 2000 Server and in Exchange Server 2003, use one of the following methods.

Note Currently, the only version of the Mfcmapi.exe utility that is approved for use is version 5.0.18.1978. Delete any earlier versions of this utility. Earlier versions of this utility may cause performance issues in Exchange 2000 Server and in Exchange Server 2003.

Note There is one TempTable for each SMTP virtual server. For example, TempTable#1 corresponds to SMTP virtual server 1, and TempTable#2 corresponds to SMTP virtual server 2. In the following methods, change the TempTables according to the Exchange Server configuration.

When you delete an SMTP virtual server, the TempTable that is associated with the SMTP virtual server is not deleted. Additionally, the contents of the associated TempTable are not deleted. If you add and then remove an SMTP virtual server, you must manually delete the TempTable that is associated with the SMTP virtual server.

Warning If you use the Mfcmapi.exe utility incorrectly, serious problems may occur that may require that you reinstall Microsoft Exchange Server. Serious problems may also occur that require that you restore Microsoft Exchange Server. Microsoft cannot guarantee that problems that result from using the Mfcmapi.exe utility incorrectly can be resolved. Use the Mfcmapi.exe utility at your own risk.

Method 1: Use the Mfcmapi.exe utility to clear the SMTP TempTables in Exchange 2000 Server and in Exchange Server 2003
Warning If you delete the SMTP TempTables, all incoming and outgoing messages are cleared from the TempTables at the same time.

Note For information about how to try to recover a message, see Method 2. <ol> Stop the SMTP service, and then double-click Mfcmapi.exe.</li> Click OK to close the About Mfcmapi dialog box.</li> Click Session, and then click Logon and Display Stores.</li> Log on by using an Administrator account. If the MAPI profile is unavailable, create one.</li> Click MDB, and then click Get Mailbox Table.</li> Confirm the server name, and then click OK.</li> Double-click the object SMTP  mailbox.

Note In this step,  represents the name of the Exchange Server. represents the GUID.</li> Expand Root Container, and then click TempTable# .

Note  represents the number that corresponds to the TempTable.</li> Right-click the TempTable#  object, and then click Delete Folder.</li> Click to select the Hard Deletion check box, and then click OK.</li> Confirm that the TempTable folder has been deleted. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> On the Hierarchy Table menu, click Refresh View.</li> Expand Root Container. Verify that the TempTable# folder does not appear.</li></ol> </li> Quit the Mfcmapi.exe utility.</li> Start the SMTP service. When you start this service, a new TempTable is created.</li></ol>

Method 2: Use the Mfcmapi.exe utility to delete individual stuck or corrupted messages in Exchange 2000 Server and in Exchange Server 2003
<ol> Stop the SMTP Service.</li> <li>Double-click Mfcmapi.exe.</li> <li>Click OK to close the About Mfcmapi dialog box.</li> <li>Click Session, and then click Logon and Display Stores.</li> <li>Log on by using an Administrator account. If the MAPI profile is unavailable, create one.</li> <li>Click MDB, and then click Get Mailbox Table.</li> <li>Confirm the server name, and then click OK.</li> <li>Double-click the object SMTP  mailbox.

Note In this step,  represents the name of the Exchange Server. represents the GUID.</li> <li>Expand Root Container, and then expand the TempTable#  folder.</li> <li>Right-click each subfolder that is labeled #0 through #19, and then select Open Contents Table to examine stuck or corrupted messages. To irretrievably delete messages, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Right-click the message, and then click Delete Message.</li> <li>Click Permanent delete passing DELETE_HARD_DELETE (unrecoverable), and then click OK.</li></ol>

You can delete multiple messages at the same time. To do this, press the CTRL key or the SHIFT key, click individual messages or a range of messages, and then follow steps a and b.</li></ol>

Note Each TempTable contains 20 subfolder that are labeled #0 through #19. All message content is located in the subfolders. You can inspect and manipulate messages on a subfolder basis.

Method 3: Use the Mfcmapi.exe utility to save messages so that you can examine them later
<ol> <li>Stop the SMTP Service.</li> <li>Double-click Mfcmapi.exe.</li> <li>Click OK to close the About Mfcmapi dialog box.</li> <li>Click Session, and then click Logon and Display Stores.</li> <li>Log on by using an Administrator account. If the MAPI profile is unavailable, create one.</li> <li>Click MDB, and then click Get Mailbox Table.</li> <li>Confirm the server name, and then click OK.</li> <li>Double-click the SMTP  mailbox.

Note In this step,  represents the name of the Exchange Server. represents the GUID.</li> <li>Expand Root Container.</li> <li>Right-click the MTS-OUT subfolder, click Create Subfolder, and then name the new folder &quot;Recovery.&quot;</li> <li>Expand TempTable# .</li> <li>Select subfolders #0 through #19.</li> <li>Right-click the range of folders that you selected, and then click Copy.</li> <li>Right-click the Recovery folder, and then click Paste.</li> <li>Click to select the Paste folder contents only check box, and then click OK.</li> <li>Click to select the Move Messages check box, and then click OK.</li> <li>Confirm that the table from which you moved folders is empty. Examine the PR_CONTENT_COUNT row and the PR_CONTENT_UNREAD row.</li> <li>Repeat steps 12 through 15 for all the folders that appear under the appropriate TempTable.</li> <li>Right-click the TempTable in which you have been working, and then click Delete Folder.</li> <li>In the Delete Selected Folder dialog box, click to select the Hard Deletion check box, and then click OK.</li> <li>Confirm that the TempTable folder has been deleted. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the Hierarchy Table menu, click Refresh View.</li> <li>Expand Root Container. Verify that the TempTable folder does not appear.</li></ol> </li> <li>Restart the SMTP service. This rebuilds the TempTable object.</li> <li>Follow steps 12 through 15 to move the message from the Recovery folder to the subfolder under the appropriate TempTable folder.</li></ol>

Note For Exchange 2000 Server, you must grant the administrator's mailbox Send As and Receive As rights on the mailbox store. Otherwise, you cannot access the SMTP mailbox from the administrator's mailbox profile.

Additional query words: mfc;Mfcmapi; XADM; temptable; mfcmappy temp table

Keywords: kbhowto KB906557

-

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

© Microsoft Corporation. All rights reserved.