none
Exchange mailbox size different from Outlook mailbox size RRS feed

  • Question

  • I have a large mailbox that i'm trying to move and some problems with.  This mailbox is accessed via a terminal server so cached exchange mode is disabled where the mailbox is primarily accessed.  I do however have about a half dozen users that view this a secondary mailbox in Outlook.  All of those users have cached mode enabled.

    Currently when I run a get-mailboxstatistics it shows the TotalItemSize as 1.18GB but it also says the TotalDeletedItemSize as 17.3GB.  Obviously moving this 18+GB mailbox is having some issues. 

    I updated the deleted item retention to on retain 3 days of deleted items but is there a way to force Exchange to process that?  Is that even the answer to this bloated deleted item folder?

    I should probably add that this mailbox (and five others) run 24/7 on a terminal server processing a non-stop flow of inbound emails with construction related picture attachments.  So they handle a very large volume of large picture attachments.  These mailboxes get bloated very quickly but the users that manage them are instructed to only maintain one week of deleted items.  One week of deleted items is typically 1GB or less. 

    Any ideas on who to manually purge that retained data? 

    Monday, October 22, 2012 7:37 PM

Answers

  • Is the 17.3 GB in the recoverable items folder?  Verify with: Get-MailboxFolderStatistics

    If so, you can purge following:

    http://technet.microsoft.com/en-us/library/ff678798.aspx

    Clean Up the Recoverable Items Folder

    • Marked as answer by CCaldwell Monday, October 22, 2012 8:28 PM
    Monday, October 22, 2012 8:13 PM
    Moderator
  • Hi 

    you can check this mailbox for recoverableitems size like below:

    Get-Mailboxstatistics -Database "MXDB01" | select displayname, @{expression = {$_.TotalDeletedItemSize.Value.ToMB()}; label="TotalDeletedItemSize"} | where {$_.TotalDeletedItemSize -gt 100}

    this will list all of mailboxes in MXDB01 database which have recoverableitems size grater than 100MB

    you can also purge this recoverableitems like below:

    Set-AdServerSettings -ViewEntireForest $True

    $mbxs = Get-Mailboxstatistics -Database MXDB01 | select displayname, @{expression = {$_.TotalDeletedItemSize.Value.ToMB()}; label="TotalDeletedItemSize"} | where {$_.TotalDeletedItemSize -gt 100}
    foreach ($mbx in $mbxs){
     Search-Mailbox -Identity $mbx.DisplayName -searchQuery "Received:< $('2012-10-03') or Sent:< $('2012-10-03')" -SearchDumpsterOnly -DeleteContent -Force:$TRUE
    }

    if you don's specify dates for received and sent you will purge whole dumpster. 

    date format depends on region and country settings

    also you can disable calendar versioning for mailbox like below:

    Set-Mailbox -Identity "JSmith" -CalendarVersionStoreDisabled:$true
    Start-ManagedFolderAssistant -Identity "JSmith"

    it will take some time to remove recoveryitems calendar item. 

    When you have Exchange 2010 SP2 it's common problem with growing databases a specially because of issue with CalendarVersioning

    you can read more here how to purge deleted items from database:

    Exchange 2010 Database size growing problem

    • Proposed as answer by Remigiusz_Sz Tuesday, October 23, 2012 7:20 AM
    • Marked as answer by CCaldwell Tuesday, October 23, 2012 11:41 AM
    Monday, October 22, 2012 8:32 PM

All replies

  • Is the 17.3 GB in the recoverable items folder?  Verify with: Get-MailboxFolderStatistics

    If so, you can purge following:

    http://technet.microsoft.com/en-us/library/ff678798.aspx

    Clean Up the Recoverable Items Folder

    • Marked as answer by CCaldwell Monday, October 22, 2012 8:28 PM
    Monday, October 22, 2012 8:13 PM
    Moderator
  • Thanks!  That's exactly what I was looking for. 

    Monday, October 22, 2012 8:28 PM
  • Hi 

    you can check this mailbox for recoverableitems size like below:

    Get-Mailboxstatistics -Database "MXDB01" | select displayname, @{expression = {$_.TotalDeletedItemSize.Value.ToMB()}; label="TotalDeletedItemSize"} | where {$_.TotalDeletedItemSize -gt 100}

    this will list all of mailboxes in MXDB01 database which have recoverableitems size grater than 100MB

    you can also purge this recoverableitems like below:

    Set-AdServerSettings -ViewEntireForest $True

    $mbxs = Get-Mailboxstatistics -Database MXDB01 | select displayname, @{expression = {$_.TotalDeletedItemSize.Value.ToMB()}; label="TotalDeletedItemSize"} | where {$_.TotalDeletedItemSize -gt 100}
    foreach ($mbx in $mbxs){
     Search-Mailbox -Identity $mbx.DisplayName -searchQuery "Received:< $('2012-10-03') or Sent:< $('2012-10-03')" -SearchDumpsterOnly -DeleteContent -Force:$TRUE
    }

    if you don's specify dates for received and sent you will purge whole dumpster. 

    date format depends on region and country settings

    also you can disable calendar versioning for mailbox like below:

    Set-Mailbox -Identity "JSmith" -CalendarVersionStoreDisabled:$true
    Start-ManagedFolderAssistant -Identity "JSmith"

    it will take some time to remove recoveryitems calendar item. 

    When you have Exchange 2010 SP2 it's common problem with growing databases a specially because of issue with CalendarVersioning

    you can read more here how to purge deleted items from database:

    Exchange 2010 Database size growing problem

    • Proposed as answer by Remigiusz_Sz Tuesday, October 23, 2012 7:20 AM
    • Marked as answer by CCaldwell Tuesday, October 23, 2012 11:41 AM
    Monday, October 22, 2012 8:32 PM
  • Even better....thanks for the script!
    Monday, October 22, 2012 8:34 PM