Article ID: 282780 - Last Review: October 28, 2006 - Revision: 4.2 XCON: MTA Database Format and StructureThis article was previously published under Q282780 On This PageSUMMARY
This article describes the most important features of the Microsoft Exchange Server message transfer agent (MTA) database and their relationship to each other. This information is useful to complete successful MTA disaster recovery.
MORE INFORMATION
The MTA is made up of a service, static files, and a flat file database. The service is displayed as "Microsoft Exchange Message Transfer Agent" in the Services tool. In Task Manager, the service is displayed as "Emsmta.exe". The following registry hive stores many of the settings for the MTA:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeMTA
The MTA static files tell the MTA how to handle various message formats and communication methods. These files also include the configuration files, logs, and event messages. These files are called "static" because they do not change during normal operation of the MTA. These files are periodically updated with service packs and hotfixes, and they should never be modified or deleted. The following registry hive contains the location of the static files:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeMTA\Parameters\MTA Run Directory
The following registry hive contains the MTA database location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeMTA\Parameters\MTA database path
The MTA database is made up of core files (which are required for starting the MTA), queue files, and message files. All MTA database files have a file name pattern of DBnnnnnn.DAT, where nnnnnn is a hexadecimal number.The first 38 database files (Db000001.dat to Db000026.dat) are the core database files. They are core files because the MTA does not start if these files are not present, or if one or more of these files is corrupted. NOTE: To determine if the core database files have been corrupted, check the file size. If the file is 0 bytes in size, it has been corrupted. The core database files have not changed since Exchange Server 5.5 was shipped; therefore, you can replace these files in a disaster recovery scenario by copying the same files from the Exchange Server installation CD-ROM and by removing the Read-only attribute from the copied files. These files are located in the following folders:
The Exchange Server MTA makes a distinction between secured and non-secured outbound queues. Non-secured queues exist only in memory when the MTA is running. Messages queued to a non-secured queue may be rerouted if the connector or server to which it is queued is not accepting delivery. Examples of non-secured queues are:
Alternatively, secured queues are represented as files in the MTA database. After messages are routed to a secured queue, they are not rerouted by the MTA. In fact, the MTA considers messages routed to secured queues as successfully delivered. Even if you shut down the MTA and restart it, you cannot force the MTA to reevaluate messages that have been queued to a secured queue. Examples of secured queues are:
How to Identify Secured QueuesTo identify .dat files that are secured queues, run the following command:mtacheck /v /f mtacheck.log After you run this command, open Mtacheck.log, and look for mention of queues at the beginning of the log. The following text is an example of an Mtacheck.log file:
Checking queue XAPIWRKQ (id 01000020) Checking queue OOFINFOQ (id 01000025) Checking queue REFDATQ (id 01000026) Checking queue MTAWORKQ (id 01000027) Checking queue /O=ORG/OU=SITE/CN=CONFIGURATION/CN=CONNECTIONS/CN=MS MAIL CONNECTOR (EXSERV1) (id 0100002C) Checking queue /O=ORG/OU=SITE/CN=CONFIGURATION/CN=SERVERS/CN=EXSERV1/CN=MICROSOFT DXA (id 0100002F) Checking queue /O=ORG/OU=SITE/CN=CONFIGURATION/CN=CONNECTIONS/CN=INTERNET MAIL CONNECTOR (EXSERV1) (id 0100002D) Starting object integrity checks Checking object 03000002 - OK, on queue 01000026 Checking object 0A000003 - OK, on queue 01000020 Checking object 0B000004 - OK, on queue 01000020 Checking object 0B000005 - OK, on queue 01000020 Checking object 0C000006 - OK, on queue 01000020 Checking object 0C000007 - OK, on queue 01000020 Checking object 06000008 - OK, on queue 01000020 Checking object 06000009 - OK, on queue 01000020 Checking object 0600000A - OK, on queue 01000020 Checking object 0600000B - OK, on queue 01000020 Checking object 0600000C - OK, on queue 01000020 Checking object 0600000D - OK, on queue 01000020 Checking object 0600000E - OK, on queue 01000020 Checking object 0600000F - OK, on queue 01000020 Checking object 06000010 - OK, on queue 01000020 Checking object 06000011 - OK, on queue 01000020 Checking object 06000012 - OK, on queue 01000020 Checking object 06000013 - OK, on queue 01000020 Checking object 06000014 - OK, on queue 01000020 Checking object 06000015 - OK, on queue 01000020 Checking object 09000016 - OK, on queue 01000020 Checking object 09000017 - OK, on queue 01000020 Checking object 09000018 - OK, on queue 01000020 Checking object 09000019 - OK, on queue 01000020 Checking object 0900001A - OK, on queue 01000020 Checking object 0900001B - OK, on queue 01000020 Checking object 0600001C - OK, on queue 01000020 Checking object 0600001D - OK, on queue 01000020 Checking object 0600001E - OK, on queue 01000020 Checking object 0600001F - OK, on queue 01000020 Checking object 06000021 - OK, on queue 01000020 Checking object 06000022 - OK, on queue 01000020 Checking object 06000023 - OK, on queue 01000025 Checking object 09000024 - OK, on queue 01000025 Database clean, no errors detected.
The Db000001.dat file has special significance. This file represents a queue that has knowledge of all the queues, both secure and non-secure, on this MTA. You should be careful to preserve the Db000001.dat file because if you lose this file, all messages in the secured queues may be lost. Relationship of Files in the MTA Database
| Article Translations
|

Back to the top
