How to delete junk email rules by using MFCMAPI in an Exchange Server environment

This article describes how to manually delete junk email rules by using the Microsoft Exchange Server MAPI (MFCMAPI) tool in an Exchange Server environment.

Original KB number:   2860406

How to delete a junk email rule

Note

If you permanently delete a junk email rule, you cannot recover any addresses that appear in the Junk Email Filter Lists. Make sure that you export the lists before you delete the junk email rule.
For more information about how to export addresses from the Junk Email Filter Lists, see Export addresses from the Junk Email Filter Lists.

To delete a junk email rule, follow these steps:

  1. As an administrator, create a new mail profile by using Outlook in online mode.

    For more information about how to create and configure a mail profile, see Create an Outlook profile.

  2. Export the list of addresses that contain safe senders and blocked senders to a text (.txt) file.

  3. Download MFCMAPI from MFCMAPI.

    Note

    Only an Exchange administrator who has full permissions of a mailbox can use the MFCMAPI tool to remove a junk email rule.

  4. Close all Outlook clients that access the mailbox. Otherwise, the MFCMAPI tool can't correctly delete the junk email rule.

  5. Use the MFCMAPI tool to delete the junk email rule. To do this, follow these steps:

    1. Open MFCMAPI.

    2. Click the Session tab and select Logon. (The screenshot for this step is listed below).

      Screenshot for selecting Logon from the Session tab

    3. Double-click the default Exchange mailbox store in the list. This is displayed as UserName@DomainName.com. A new MFCMAPI window will open.

    4. Expand Root Container, and then expand Top of Information Store. (The screenshot for this step is listed below).

      The screenshot for expanding Top of Information Store.

      Note

      If you see IPM_SUBTREE in the list, then you are accessing the mailbox by using cached Exchange mode. Exit MFCMAPI and change the mail profile to use online mode.

    5. Under Top of Information Store, select Inbox.

    6. Right-click Inbox and select Open associated contents table. A new MFCMAPI window will open.

    7. Sort the top pane by the Message Class column and locate IPM.ExtendedRule.Message. Only one Inbox will be displayed.

    8. Select IPM.ExtendedRule.Message on the top pane.

    9. In the bottom pane, sort by the Tag column and locate 0x65EB001E. This tag corresponds to the JunkEmailRule value. (The screenshot for this step is listed below).

      Screenshot for sorting Tag column.

    10. After you locate the junk email rule by locating the 0x65EB001E tag, click to select IPM.ExtendedRule.Message again in the top pane.

    11. Right-click IPM.ExtendedRule.Message and select Delete message. The Delete Item window will open.

    12. In the Deletion style drop-down list, select Permanent delete passing DELETE_HARD_DELETE (unrecoverable), and then click OK. (The screenshot for this step is listed below).

      Screenshot for selecting Permanent delete passing DELETE_HARD_DELETE.

    13. IPM.ExtendedRule.Message should disappear from the top pane after the rule is deleted.

    14. Close the first two MFCMAPI windows.

    15. On the final MFCMAPI window, click the Session tab and select Logoff to close the MAPI session. (The screenshot for this step is listed below).

      The screenshot for selecting Logoff.

    16. Close the final MFCMAPI window.

  6. Start Outlook again.

  7. On the Home tab, in the Delete group, click Junk, and then select Junk E-mail Options.

  8. Examine each tab for Safe Senders, Safe Recipients, and Block Senders. No addresses will be displayed in any of the lists. If addresses still appear, then the junk email rule wasn't deleted correctly.

  9. Import email addresses into Junk Email Filter Lists by using the lists that you exported in step 2.

References