User's Disk Usage Doesn't Match Server Properties

This article applies to recent versions of SmarterMail. View articles for SmarterMail 16.x and earlier.
There may be times when the disk usage listed for a user may not exactly match what the properties for the user folder say on the server. This is because SmarterMail manages, and calculates, overall disk usage for a user and domain internally rather than polling the disk. This is to save precious disk i/o. As an email server is already hard on disk i/o, SmarterMail does what it can to preserve as much as possible for the processing of email.

That said, it IS possible to clear out the disk usage data SmarterMail stores, and have it re-calculated to better match what a user's properties say on the disk. After stopping the SmarterMail service, simply delete these files:

  • mailbox.cfg
    • Default install path is C:\SmarterMail\Domains\[domain_name]\Users\[username]\Mail\Inbox
  • root.cfg
    • Default install path is C:\SmarterMail\Domains\[domain_name]\Users\[username]\Mail\
  • Filestore.xml (Applies to SmarterMail 16.x only)
    • Default install path is C:\SmarterMail\Domains\[domain_name]\Users\Media\Filestore\

Once you restart the SmarterMail service, SmarterMail will rebuild these files using information from the disk. Once the files are rebuilt, the disk usage summary for that user will match what it says on disk.