Delete Corrupted Mail rules from Exchange 2007 mailbox

Sometimes when mail rules are deleted from Outlook before they are disabled they can remain in the system without being listed from the ‘Rules and alerts’ list.

The following steps detail how to fix these corrupt / stale / hidden or missing rules.

You will need to be logged on as the user which has the faulty mail rule and run the utility

Please note: The MAPI Editor used in this process is a dangerous tool. It needs to be used with care and only used as instructed as below. Failing to do so could result in the mailbox being completely unusable.

  1. First you will need to backup any existing rules the user would like to keep:
    1. Open Outlook
    2. Select the ‘Tools’ menu
    3. Click on ‘Rules and Alerts’
    4. Click on ‘Options’
    5. Click on ‘Export Rules’ and save the file to a safe place.
    6. Close Outlook
  2. Download the Microsoft Exchange Server MAPI Editor utility from http://mfcmapi.codeplex.com
  3. Run ‘MFCMapi.exe’ and click on the ‘OK’ button.
  4. Select the ‘Session’ menu and then ‘Logon and Display Store Table’
  5. Click on ‘OK’ to open the mail profile
  6. Under ‘Display Name’ double click on the users mailbox. For example ‘Mailbox – Builder, Bob’
  7. A new window will open, expand ‘Root Container’
  8. Expand ‘Top Information store’
    1. Please note: If you see ‘IPM_SUBTREE’ you will need to disable Outlook cache mode before continuing.
      Wrong:
    2. Correct:

  9. Right click on ‘Inbox’ and select ‘Open Associated Contents Table’
  10. Under ‘Message Class’ locate any ‘IPM.Rule.Message’ and select the line and then press the delete button on the keyboard.
  11. For each delete line select ‘Permanent delete passing DELETE_HARD_DELETE (unrecoverable)’ and then ‘Ok’
  12. Once each of the ‘IPM.Rule.Message’ lines are delete the inbox will be clean from corrupted, hidden or stale rules.
  13. You can now import the rules which were backed up in steps 1-6.
    1. Open Outlook
    2. Select the ‘Tools’ menu
    3. Click ‘Rules and Alerts’
    4. Click ‘Options’
    5. Click ‘Import Rules’ and open the file which was saved earlier.

Was this article helpful?

Related Articles