Mac OS X Server: How and When to Use repairDB for Mail Database Maintenance

In some situations, you may need to use a mail database repair utility that is accessible via the command line.
Under most circumstances, the Mac OS X Server mail server automatically detects mail database issues and automatically runs a repair utility to correct them. In some situations, the issues are not detected and repair does not happen automatically.

To run repairDB:

The repair utility runs. The status of the utility is reported in: Upon completion of the database repair the following lines appears in AppleMailServer.Repair.log:

Now, you need to kill the MailService process and restart mail service:

Published Date: Feb 17, 2012