Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to re-create STM File in Exchange 2000/2003


Author: Yuval Sinay MVP

View products that this article applies to.

Symptoms

When you run eseutil /P command or eseutil /mh, you may get error that indicate that the *.STM file doesn't match the *.EDB file that�resides on the server.
Usually, in this case,�the Information Store service cannot mount the local mail/public store.

↑ Back to the top


Cause

There a few reasons for *.STM file corruption:

a. Antivirus software periodically scanning the *.EDB or/and *.STM file.

b. The *.EDB or/and *.STM size increases significantly.

c. Hardware problem.

↑ Back to the top


Resolution

By using the instructions in this guide may lose important data, and therefore should be only used as a last resorts. It is recommend that you backup the databases before implement these instructions.�Always consider using�a valid backup instead�of these instructions.

The amount of the data that you may lose depends on your mail client�software - �If everybody uses Outlook (MAPI protocol), then there will be very little user data in the .STM file. You may lose some in transit messages that haven't been delivered yet. If clients connect via POP3 or IMAP then most of their stuff will be in the .STM file, and its loss will be catastrophic to them. If clients use Outlook Web Access, messages will be in the .EDB file, but attachments sent will be in the .STM file.


1. Stop any antivirus software on the server.

2. Stop "Microsoft Exchange System Attendant" service.

���� Note: This stage�prevent from users to use the server.

3. �Go to "Start" -> "Run" and write "Regedit" and press on "Enter" button.

4. Navigate to:

��� [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\VirusScan]

����In the right side of the screen change the value of "Enable" from 1 to 0.

5. Run eseutil /mh command to verity the need to recreate of the *.STM file:

������ eseutil /mh "C:\Program Files\Exchsrvr\MDBDATA\priv1.edb"

������ eseutil /mh "C:\Program Files\Exchsrvr\MDBDATA\pub1.edb"

��� Note: If the *.EDB files reside in other locations, you may need to change the path to this files in eseutil /mh sentence.

6. Run eseutil /p /createstm command to create of the *.STM file:

������������If the�private mailbox�store *.STM file may need to recreate, please�use the following command:

������������eseutil /p /createstm "C:\Program Files\Exchsrvr\MDBDATA\priv1.edb"

�������If the public store *.STM file may need to recreate, please�use the following command:

����� eseutil /p /createstm "C:\Program Files\Exchsrvr\MDBDATA\pub1.edb"

7. Go to "Start" -> "Run" and write "Regedit" and press on "Enter" button.

8. Navigate to:

��� [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\VirusScan]

����In the right side of the screen change the value of "Enable" from�0 to 1.

9. Start "Microsoft Exchange System Attendant" service.

10. Open Exchange "System Manager". Navigate�to the problematic mailbox store/Public store.

11.�Run "mailbox cleanup agent" on each mailbox store and choose "reconnect all mailboxes".

12. Optional: Open the problematic mailbox store/Public store, right click on the mailbox store/Public store and choose "properties".
�������� Press on "Database" tab and mark the checkbox "This database can be overwritten by a restore".

13. Mount the mailbox store/Public store.

�� Note: If you Start "Microsoft Exchange System Attendant" service in phase 9, the mailbox store/public store should
��������������� be mount automatically.

14. Start the antivirus software that was stop in phase 1.

15. Make full backup to the Exchange databases and the local server.

↑ Back to the top


More information

XADM: Exchange 2000 Server Eseutil Command Line Switches
http://support.microsoft.com/default.aspx?scid=kb;EN-US;317014

How to use Eseutil to test transaction log files for damage in Exchange 2000 Server and in Exchange Server 2003
http://support.microsoft.com/default.aspx?scid=kb;EN-US;248122

XADM: Exchange and Antivirus Software
http://support.microsoft.com/default.aspx?scid=kb;[LN];328841

XADM: Ramifications of Running the ESEUTIL /P or EDBUTIL /D /R Command
http://support.microsoft.com/?id=259851

Preview: Exchange Server 2003 Disaster Recovery Planning Guide
http://www.microsoft.com/downloads/details.aspx?FamilyId=784BBEA2-28DD-409A-8368-F9914E993B28&displaylang=en

↑ Back to the top


Properties

COMMUNITY SOLUTIONS CONTENT DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

↑ Back to the top


Community solutions content disclaimer

Microsoft corporation and/or its respective suppliers make no representations about the suitability, reliability, or accuracy of the information and related graphics contained herein. All such information and related graphics are provided "as is" without warranty of any kind. Microsoft and/or its respective suppliers hereby disclaim all warranties and conditions with regard to this information and related graphics, including all implied warranties and conditions of merchantability, fitness for a particular purpose, workmanlike effort, title and non-infringement. You specifically agree that in no event shall Microsoft and/or its suppliers be liable for any direct, indirect, punitive, incidental, special, consequential damages or any damages whatsoever including, without limitation, damages for loss of use, data or profits, arising out of or in any way connected with the use of or inability to use the information and related graphics contained herein, whether based on contract, tort, negligence, strict liability or otherwise, even if Microsoft or any of its suppliers has been advised of the possibility of damages.

↑ Back to the top


Keywords: KB555146, kbhowto, kbpubmvp, kbpubtypecca

↑ Back to the top

Article Info
Article ID : 555146
Revision : 1
Created on : 6/22/2004
Published on : 6/22/2004
Exists online : False
Views : 338