To perform a high-level consistency check and repair of the mailboxes database:
reconstruct -m
To perform a consistency check and repair of the primary partition:
reconstruct -p primary -m
Running reconstruct with the -p and -m flags together will not fix lright.db. This is because fixing the lright.db requires scanning the ACLs for every user in the message store. Performing this for every partition is not very efficient. To fix the lright.db run reconstruct -l
To perform a consistency check and repair of an individual user’s mailbox named john:
reconstruct -p primary -u john -m
You should use the -m option when:
One or more directories were removed from the store spool area, so the mailbox database entries also need to be removed.
One or more directories were restored to the store spool area, so the mailbox database entries also need to be added.
The stored -d option is unable to make the database consistent.
If the stored -d option is unable to make the database consistent, you should perform the following steps in the order indicated:
Shut down all servers.
Remove all files in store_root/mboxlist.
Restart the server processes.
Run reconstruct -m to build a new mailboxes database from the contents of the spool area.