Exchange 2007 mailbox not getting purged after 30-day retention expires
Every day during online maintenance when disconnected mailboxes are purged from the system, one particular mailbox day after day causes a couple of errors in the event log and fails to be purged. Our mailbox retention period is set to the default of 30 days, and this particular mailbox has been in the disconnected state for almost 60 days. All other mailboxes are purged normally once they hit the 30-day mark.We are running Exchange 2007 SP1 w/ rollup 2.Here are the two event IDs:Event Type: ErrorEvent Source: MSExchangeIS Mailbox StoreEvent Category: General Event ID: 1203Date: 9/19/2008Time: 1:26:27 AMUser: N/AComputer: MBX01Description:Failed to delete the mailbox of /O=ORG1/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=User1 with error 0x3f0. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.------------------------Event Type: ErrorEvent Source: MSExchangeIS Mailbox StoreEvent Category: General Event ID: 10001Date: 9/29/2008Time: 1:03:28 AMUser: N/AComputer: MBX01Description:The folder with folder ID 1-127DA00472 could not be deleted. Additional information: 0x3f0. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.-----------------------------Is there a way to manually remove a disconnected mailbox from the database?Thanks,Aaron
September 30th, 2008 7:22pm

Hi Aron, You can remove it manually with Remove-Mailbox command $Temp = Get-MailboxStatistics | Where{$_.DisplayName -eq User Name} Remove-Mailbox -Database DataBase Name -StoreMailboxIdentity $Temp.MailboxGuid References: Remove-Mailbox http://technet.microsoft.com/en-us/library/aa995948(EXCHG.80).aspx Cant see Deleted Mailbox in Disconnected Mailbox under RecipientConfiguration http://exchangeshare.wordpress.com/2008/04/27/cant-see-deleted-mailbox-in-disconnected-mailbox-under-recipient-configuration/
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2008 7:48pm

Thanks for the response. Unfortunately, when I try to remove the disconnected mailbox manually (btw, I used instructions according to this blog: http://msmvps.com/blogs/andersonpatricio/archive/2007/10/08/removing-disconnected-mailboxes-in-exchange-server-2007.aspx), I get the same two events in the app log. for some reason, perhaps due to corruption in the mailbox, the system will not let me delete the mailbox. any other ideas?Thanks again,Aaron
September 30th, 2008 8:16pm

Hello Aaron, Looks like mailbox has some corruptions. Create a new user, attach this disconnected mailbox to it. Move the user fromdatabase to new database (this will skip the corruption if any) and then delete the user and try to remove mailbox manually.
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2008 8:38pm

have you tried this first? Clean-MailboxDatabase http://technet.microsoft.com/en-us/library/bb124076(EXCHG.80).aspx also,if a user is not already disconnected you can usethe remove-mailbox with the "-Permanent $true " optionhttp://technet.microsoft.com/en-us/library/aa995948(EXCHG.80).aspx
October 1st, 2008 9:42pm

I finally figured out how to solve this problem:As explained in the thread above, after creating a dummy user and trying to reconnect the corrupted mailbox, I got the error about duplicate legacyExchangeDN names because the "good" mailbox with the same name as the corrupted mailbox was active in the system. To get around this, I had to disable the good mailbox temporarily. Once it was disabled, I could then reconnect the corrupted mailbox to the dummy account and log on to it with Outlook in online mode. Once in there, I found that there was a folder under the Deleted Items folder that had a subfolder, which in turn had a subfolder, which in turn had a subfolder, etc., etc. all the way down to over 400 subfolders nested within each other, all empty. Trying to hard delete (shift+delete) the top-level folder failed with some sort of corruption error, so I had to drill down about 100 folder levels, press delete (not shift+delete), which then moved that folder and everything below it to the same level as the first-level folder. I had to repeat that process several times before it would finally let me hard delete all 400+ folders. Then, magically, the corruption was gone and I was able to permanently delete the corrupted mailbox. Once the corrupted mailbox was gone, I then reconnected the good mailbox to the original user and we're all happy now.Perhaps the fun I had will help someone in the future. :-)Aaron
Free Windows Admin Tool Kit Click here and download it now
October 2nd, 2008 12:22am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics