MS Exchange is a popular email server solution. Any organization that uses MS Exchange Server typically stores hundreds of mailboxes on it. Sometimes, due to Exchange errors and technical faults with the server, the Exchange mailboxes or database (EDB) may get corrupt or damaged.
And fixing such corrupt EDB and mailboxes can take a lot of time and efforts.
But sometimes, even after putting a lot of effort and several hours into it, the EDB or Exchange mailbox corruption cannot be fixed due to the complex nature of the Exchange server environment.
It is in such scenarios that backup of database helps. But in the absence of backup or obsolete backup, a third-party Exchange database repair tool comes into the picture. The Exchange database repair tool helps fix complicated Exchange server issues such as mailbox corruption and bring the mailboxes on the server back online.
In this post, we'll be discussing one such reliable tool, along with some manual methods, for Exchange mailbox repair. But before we head to the solutions, let us understand the root causes that may lead to Exchange mailbox corruption.
'Exchange Mailbox Corruption' or 'Exchange Corruption' means EDB file corruption. EDB is an Exchange Database file, which stores all mail items, such as emails, calendar items, contacts, notes, etc. of an Outlook user on the Exchange server. Any corruption to this file can lead to Exchange server errors, such as EDB dismount or Mailbox corruption.Some common causes behind EDB file corruption or dismount
More often than not, the server displays some symptoms that eventually lead up to corruption. These symptoms appear unexpectedly when you try to perform various operations on the database. Here's a list of some common Exchange error codes that may appear due to mailbox corruption:
Error -515: "JET_errInvalidLogSequence"
Error 1018: "JET_errReadVerifyFailure"
Error 1216: "JET_errAttachedDatabaseMismatch"
Error 1601: "Operation terminated with error -1601 (JET_errRecordNotFound, The key was not found) after 2.354 seconds."
Error 1605: "Operation terminated with error -1605 (JET_errKeyDuplicate, Illegal duplicate key) after xxx.xxx seconds."
Event ID 9175: "The Microsoft Exchange Server computer is not available. Either there are network problems or the Microsoft Exchange Server computer is down for maintenance. The MAPI provider failed."
Exchange Server computer is down for maintenance. The MAPI provider failed."
Exchange Dirty Shutdown Error: "ERROR: database was not shutdown cleanly (dirty shutdown )."
Microsoft offers an Exchange mailbox repair tool called ESEUTIL to perform mailbox repair tasks in Exchange 2007, 2010, 2013, 2016, and 2019.
ESEUTIL stands for Exchange Server Database Utility. It is an executable application that finds and repairs errors in Exchange mailbox, public folder, or transport server queue database. To run ESEUTIL, go to C:\Program Files\Microsoft\Exchange Server\V15\Bin and double-click on eseutil.
The utility can be executed with a number of switches, each performing different functions. The current case of fixing database corruption lies within the scope of ESEUTIL repair mode (ESEUTIL /p).
Enter the following command to repair corrupt EDB,
ESEUTIL /P databasefilename.edb
NOTE: This command runs eseutil in repair mode that corrects corrupted or damaged databases at the page and table levels, but not at the application level.
Once the repair process completes successfully, it is advisable to run an integrity check on the database to ensure that it is consistent. For this, a tool called 'ISInteg' is used as follows:
Once this tool finishes working, you should save all the data into PST files using ExMerge, create a blank database and again use ExMerge to save all the data from PSTs into the newly created database.
Situations Where ESEUTIL Repair Process May Fail
Although the ESEUTIL command-line utility fixes minor corruption issues with the Exchange database, it isn't a reliable and powerful utility.
There are several cases where it may fail to complete the repair process or result in data loss. For instance,
The repair process initiated by executing the ESEUTIL command with the /p switch attempts to repair and validate all system tables and indexes. But, any table, index, or other data that cannot be repaired is discarded. In such a case, the repair process exits with ESE Event ID 500, which indicates that one or more bad pages of data were lost during the repair process. The event also suggests the user run an application-level integrity check on the database since the database might be left in an inconsistent state.
When ESEUTIL fails, it may throw termination errors such as,
Besides the above situation, there are a few other limitations associated with the utility:
EseUtil & Stellar Repair for Exchange Comparison
Method 2: Repair Corrupt Exchange Mailboxes using Stellar Repair for Exchange
Keeping in mind the limitations of ESEUTIL, it is better to use a reliable Exchange repair tool such as Stellar Repair for Exchange. This software overcomes all the limitations of ESEUTIL and features an easy to follow GUI interface to fix Exchange mailbox and database corruption issues. It performs Exchange mailbox repair with the help of robust scanning algorithms that searches for recoverable items within severely corrupted EDB files.
All recovered mailbox items are then restored into a new PST file, which can be imported into MS Outlook. The software also helps you restore deleted mailboxes as well as particular deleted emails. Further, the latest version of the software also allows you to recover Unicode EDB files.
And to top it all, you can save the recovered data in a variety of formats including MSG, EML, RTF, HTML, and PDF.
Below are the steps to repair corrupt Exchange 2019, 2016, 2013, 2013, and 2010 mailbox using this software:
'Quick Scan' is a fast scan while 'Extensive Scan' takes a little more time but yields better results.
You may also export the repaired mailbox to Live Exchange or Office 365. Here are the steps to export the repaired mailbox to Office 365 or Live Exchange:
Method 3: Using new-mailboxrepairrequest Command
New-mailboxrepairrequest is a PowerShell command to repair corrupt Exchange mailboxes. The command fixes corrupt items in the mailbox, such as SearchFolder, AggregateCounts, FolderView, and ProvisionedFolder
Here's how you can run the command new-mailboxrepairrequest to repair Exchange mailboxes.
Once you have repaired the corrupt Exchange mailboxes by using any of the above-mentioned methods, you can run get-mailboxrepairrequest PowerShell command to show current mailbox repair requests status. This will help you identify if the corrupt Exchange mailbox is fixed.
While the above-mentioned solutions help you fix Exchange corruption, it would be best if you can avoid EDB file corruption altogether. Here are some tips that can help you avoid EDB file corruption:
Exchange mailbox corruption may occur due to several reasons. However, most issues with Exchange can be resolved by using proprietary command line tool, i.e. ESEUTIL, and Exchange Admin Center. ESEUTIL is a Microsoft Exchange repair utility, which is located in the Exchange installation directory.
In this post, we have discussed methods to repair corrupt Exchange Mailboxes using the ESEUTIL, PowerShell command, and advance repair tool such as Stellar Repair for Exchange. As ESEUTIL has some limitations, Stellar Repair for Exchange is the best option to repair and recover severely corrupt Exchange mailboxes.
In case of any issue or further help, reach us via Self Help and Support page.
Tips to avoid downtime in Exchange server. Read the helpful reference to spot several culprits that could hinder the health of your mailbox database and corrupt it. Fix all problems in Exchange server like bad Windows update, third-party application insta
How to Fix ‘PST File is not an Outlook Data File’ Error?
This article explains to get back all their old mail and restore the original mail from crashed Exchange server. Explore all technical know-how or the right tools in hand to have a quick recovery with minimal downtime, for the Exchange Admins.
Use latest email header forensic analysis techniques for identification of genuine sender, time, or recipient of the emails. Read this guide also to understand email header fields to verify the trustworthy sender on email platforms like Gmail, Outlook etc
Fix ‘Outlook Repair Tool keeps crashing’ problem in Outlook smoothly. You can also fix the problem manually and by using a professional Outlook Repair Tool. Let’s look at all possible fixes.