“Help! My messages are missing!” Here’s what comes next…

At least once a week, a Remedy ticket pops into my queue from a user frantically requesting a restore of missing messages from their mailbox.  Sometimes this is warrented, as both Entourage and Outlook operating in cached mode are somewhat notorious for eating messages. However, a restore is usually overkill, as the messages are usually not as “missing” as the end-user might believe at first blush.  This is an important point, as restoring the contents of an individual mailbox from backup is a non-trivial, time-consuming task.

So how is one to know if a restore is actually warranted?  There are several steps that an Exchange end-user can take to on their end (or that their desktop support personnel could walk them through) to try to recover their missing e-mail before ever having to get their friendly, neighborhood Exchange administrator involved. Here is a handy-dandy checklist which might help.

Deleted Item Recovery

When a message is deleted in Exchange, it does not go away immediately.  First, the message goes to the “Deleted Items” folder, where it remains until such time as that folder is emptied. (Client software can be configured to automatically empty Deleted Items upon logging out.)  If the missing items are still there, great. Just drag them back where they belong. But if the Deleted Items folder has been emptied, all is not lost. When the Deleted Items folder is emptied, the messages within it actually get shuffled into another, hidden folder referred to as a dumpster. Items are retained in the dumpster for a period specified by the Exchange administrators on a database by database basis. (In the case of AEMS, deleted item retention is set for 14 days.)

During this retention window, items can be retrieved from the dumpster using the “Recover Deleted Items” feature found in Outlook and OWA Premium. (Alas, this leaves Mac and Linux users out in the cold until Exchange 2010 is deployed with its lovely cross-browser support for OWA Premium.  Until then, seek a coworker’s PC, or use a Windows Terminal Server or a VM. I know, it isn’t fair, but relief is at least in sight.) In Outlook, highlight the Deleted Items folder, then go to the Tools menu and select “Recover Deleted Items….”  In OWA Premium, click Options, then click “Deleted Items.”

It is important to note that EACH FOLDER in an Exchange mailbox has its own hidden dumpster folder.  The procedure above only works for recovering items that were deleted by way of the Deleted Items folder.  In cases where the user has shift-deleted a message, that message will have bypassed the Deleted Items folder and would be sent directly to the dumpster associated with whatever folder the message was in.  (This also holds true for messages deleted via IMAP or POP, as those protocols generally bypass the Deleted Items folder.)  In that case, it is necessary to use Outlook to access the dumpster for the appropriate folder by selecting the folder in question, then choosing “Recover Deleted Items….” from the Tools menu.  (OWA Premium only exposes the dumpster associated with the Deleted Items folder.)

Make Sure the Messages Are Actually Missing

If the preceding step doesn’t do the trick, it doesn’t hurt to actually verify that messages are really missing.  They may merely be misplaced by a long-forgotten rule or a sloppy click-drag.  The following steps are designed to check for these issues.

Try Different Clients

Try viewing the mailbox multiple ways to rule out a problem with the client.  Especially try using Outlook Web Access (OWA), as this will present the most authoritative look into the mailbox, free from problems introduced by client software.

  • If the messages show up in OWA, but do not show up with, for example, Outlook or Entourage, then the messages are actually in the mailbox, but the client software is not displaying them properly, perhaps due to a corrupted local cache. Rebuild your client profile (preferably not in cached mode in the case of Outlook), and all should be right in the world.  Another reason that Outlook might not show the mailbox as it really is might be that you’ve been tinkering with custom views (View -> Current View), which might restrict what messages get shown.
  • If messages do not show up in OWA, but do show up on the client, the messages are not actually in the mailbox.  The most common cause for this is that the Outlook profile has been accidentally configured to deliver the mail to a local PST file rather than to a mailbox.  In this case, you are in luck. Simply fix this profile setting, then drag your mail from the PST back up to the server.

Search, Search, Search….

You would be suprised how often it turns out that a user has accidentally dragged their messages off into a different folder without realizing it.  If you know the subject of one of your missing messages, nose around for it using the search feature of your client.  Search the entire mailbox, not just where you think the messages should be.  If you having any PST files (personal folders), don’t forget to check there.

Check Rules and Auto-Archiving

Sometimes a mailbox rule will intercept and shuffle around messages in ways that were not intended. Double check your rules for one which might be doing something unanticipated.  Auto-archiving can also sneak up on you.  If all of your messages from prior to a certain date have suddenly gone AWOL, check to see if Auto-Archive might have tucked them away into an archive file.

Check PST Files

Several ways in which messages might get shoved into PST files have already been mentioned.  Leave no stone unturned.  See if your wayward messages might be lurking locally.  Remember that PST files are local to your specific computer. If you use Outlook on multiple computers, you’ll need to check for PST files on all of them. (And, for the record, Microsoft does not officially support accessing PSTs via a network share. That is bad, bad, bad.)

Okay, Maybe DO You Need a Restore

If you’ve worked your way through all of these scenarios and are still unable to find your missing e-mail, then perhaps a restore is in order.  When you submit your restore request, be sure to provide your best estimate of a date and approximate time when the missing items were actually known to be in your mailbox.  Your Exchange admins will need that info in order to determine from which backup the restore needs to be taken. The dates that you received the messages don’t help here (“All of my mail older than six months is gone!”).  We need to know when the messages were there.  Also keep in mind that backups are generally only kept for a finite amount of time.  They take up storage space.  For AEMS, backups are only retained for two weeks.  If you come to us with a restore request a month after the messages went missing, we can’t help you.

Fixing the “Unable to activate send-on-behalf-of list” Error

(This is a repeat from my personnal blog, but relevant enough to my AEMS customers that I felt it appropriate to repost here.)

This MS Exchange Team Blog article (as well as this follow-up) go into great detail about the history of this notorious error, but erroneously claims that it only occurs in muli-domain environments.  We have the issue here, and we have a single-domain forest.

The short version is that Exchange Server 2003 SP2 introduced changes in the security model for the delegate-setting process which, combined with updates on the client end, result in the following error when a user attempts to modify delegates:

The Delegates settings were not saved correctly. Unable to activate send-on-behalf-of list. You do not have sufficient permission to perform this operation on this object.

This error does not occur for all mailboxes, and we’ve found neither rhyme nor reason for when it does, but there is a fix.

  • For Outlook 2003 users apply this patch, then perform the registry modifications described here.
  • For Outlook 2007 users apply this patch, then perform the registry modifications described here.

Exchange Rules Quotas

Over the years, some Exchange users have learned the hard way that there is a limit to how many mailbox rules they can define.  The limit is based upon the cumulative size of all the rules associated with a mailbox, rather than the number of rules.  Under Exchange 2003, mailbox rules were capped at 32KB.  With Exchange 2007, that cap has doubled to 64KB, which generally translates to about 100-150 rules, depending upon how big they are (even the size of the rule name counts towards this).  You know you’ve hit that cap when Outlook gives you an error such as the following:

One or more rules could not be uploaded to Exchange server and have been deactivated. This could be because some of the parameters are not supported or there is insufficient space to store all your rules.

So, what is an Exchange user to do when confronted by this? There are two things to try:

  1. First, try to reduce the total size of your rules. This Microsoft KnowledgeBase article provides excellent tips on how to do so.
  2. If that doesn’t do the trick, contact your friendly neighborhood Exchange administrator (for AEMS users, that means going through the Help Desk) and ask him/her to bump up your rules quota. That’s right, Exchange 2007 added the ability for Exchange administrators to modify this quota on a per-user basis*.

“So,” I hear you cry, “given the availability of the second option, why should I bother with the first?”

That is a perfectly valid question, and one for which I can offer an equally valid response: efficiency.  The more mailbox rules you have, the more processing each message in your mailbox must endure. The more rules you have, the more processing and memory overhead is incurred.  Individually, it doesn’t amount to much, but aggregated over thousands of users, it can mean a noticable impact on performance.  Besides, if you have enough rules that you bump into your rules quota, odds are that there is a way to accomplish what you are trying to do more efficiently.

While we are on the subject of server performance, there are two other things that I should point out that can impact performance, not just for you, but for all users on your server:

  1. Don’t keep to many items in your Inbox.  Delete them or file them into another folder. Having many thousands of items in your inbox will seriously degrade server performance.  Keep the Inbox (and all of the other “default” folders in your mailbox) as lean as you practically can.  This is basic mailbox hygiene.
  2. If you use an Outlook add-in and notice that it seems to slow down your connectivity to the server, please remove it. Odds are that it is impacting the experience of other users as well.  I’ve seen Exchange servers brought to their knees by misbehaving Outlook add-ins. It isn’t pretty.

* A note for other Exchange administrators who might be reading this: You might be wondering how to go about changing the rules quota.  It is quite simple, really:

Set-Mailbox someuser -RulesQuota:128KB