Mailbox Quota Calculation

Document ID: 10209

Synopsis

There are 3 main items which count towards the size of a Mailbox (used with quotas). These are: Total .msg files - essentially the emails. Cache files - used by MailSite to optimize p

More Information

Mailbox Quota Calculation

There are 3 main items which count towards the size of a Mailbox (used with quotas). These are:

  • Total .msg files - essentially the emails.
  • Cache files - used by MailSite to optimize performance
  • STC data - additional cached data
By default MailSite uses the total size of .msg files and the total size of the cache files to determine the size of a mailbox.

MailSite 9 and later provide the ability to specify at the server level which components should be used to calculate the size of a Mailbox.

Setting up Quotas

  • To turn on Quotas, open the MailSite Console and Select Server > Quotas > Enable Quota Support and press ok.
  • This dialog also gives you the ability to set up other options connected to quotas such as whether Quota message warnings are copied to a postmaster account.
  • Each Domain can be configured with their own quota limit. To perform this Select the Domain > Domain Properties then set the quota limits.

Including STC Data in the Count

Registry Configuration
WARNING!!
Incorrectly editing the Registry can damage the server, please proceed with care.
  1. Click on the Start button.
  2. Select Run, and enter Regedit
  3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Rockliffe\MailSite\
  4. Create a new DWORD and name it QuotaIncludeSTCFiles
  5. Hit Enter and then set to 1 to include STC data in the count.
  6. OK and Exit out of Regedit
  7. Restart the services

SQL Connector Configuration
  1. Open the SQL Manager to the MailSite Database.
  2. Open the 'MailServerProperties'
  3. Enter the following:
    ServiceName PropertyName ServerRoleId PropType PropIntValue PropStringValue
    MFldrMgr QuotaIncludeSTCFiles 0 4 1 Null
  4. Restart the services.



Include only .msg files in the Count (Ignore Cache files)

Registry Configuration
WARNING!!
Incorrectly editing the Registry can damage the server, please proceed with care.
  1. Click on the Start button.
  2. Select Run, and enter Regedit
  3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Rockliffe\MailSite\
  4. Create a new DWORD and name it QuotaIncludeMetaFiles
  5. Hit Enter and then set to 0 to include just .msg files in the count.
  6. OK and Exit out of Regedit
  7. Restart the services

SQL Connector Configuration
  1. Open the SQL Manager to the MailSite Database.
  2. Open the 'MailServerProperties'
  3. Enter the following:
    ServiceName PropertyName ServerRoleId PropType PropIntValue PropStringValue
    MFldrMgr QuotaIncludeMetaFiles 0 4 0 Null
  4. Restart the services.

As an example, to use only the total .msg files in the quota calculation, QuotaIncludeSTCFiles should be set to 0 (the default) and QuotaIncludeMetaFiles should be set to 0.

Other Information

The quota values are recalculated under the following situations:

  • When a message is delivered to the users' mailbox.
  • When a message is moved or copied (generally via IMAP).
  • When a message is deleted or purged from mailbox.
  • For IMAP each logout command.
  • For POP each logout (and only if the quota has not been calculated in the last 24 hours).

For full system quota checking there is a background process that will check all mailboxes to recalculate their mailbox sizes at least once a week via the SMTPDA service. You can also run the msquota.exe command line to refresh quotas.