Mailbox Purge: Difference between revisions

(New page: Messages are purged by a thread that runs in the server process. The purge thread continuously iterates all the mailboxes that are in memory and purges them, one at a time. Mailboxes not...)
 
(Adding Article Footer and Category)
Line 20: Line 20:


There is one safeguard in place.  If ''zimbraMailMessageLifetime'' is set to less than 30 days, an interval of 30 days is used.  All other attributes don't have a safeguard.
There is one safeguard in place.  If ''zimbraMailMessageLifetime'' is set to less than 30 days, an interval of 30 days is used.  All other attributes don't have a safeguard.
{{Article Footer|ZCS 5.0.x|8/11/2008}}
[[Category:Mailbox]]

Revision as of 23:27, 19 September 2008

Messages are purged by a thread that runs in the server process. The purge thread continuously iterates all the mailboxes that are in memory and purges them, one at a time. Mailboxes not in memory are not purged, to avoid the I/O cost of swapping in a mailbox only to purge it. The assumption is that if a mailbox is not in memory, it's not receiving mail and has less of a need to be purged. Bug 20720 was filed for the issue of guaranteed purging of mailboxes.

Purge thread activity is throttled by the zimbraMailPurgeSleepInterval server attribute. This value specifies the amount of time that the purge thread sleeps between subsequent purges. If the interval is set to 0, purging is turned off. The default value is "1m" (one minute).

The retention policy is specified by two sets of attributes on an account. The user retention policy set is set by the user and stored as duration attributes on the account:

  • zimbraPrefInboxReadLifetime
  • zimbraPrefInboxUnreadLifetime
  • zimbraPrefSentLifetime
  • zimbraPrefJunkLifetime
  • zimbraPrefTrashLifetime

The system retention policy is set by the administrator. It allows the administrator to specify a site-level retention policy that overrides the user policy. These attributes are also at the account/COS level, but not modifiable by the end user:

  • zimbraMailTrashLifetime
  • zimbraMailSpamLifetime
  • zimbraMailMessageLifetime

When a mailbox is purged, all attributes are considered. In cases where there's both a system and user-level policy is specified for the same folder, the shorter interval is used.

There is one safeguard in place. If zimbraMailMessageLifetime is set to less than 30 days, an interval of 30 days is used. All other attributes don't have a safeguard.

Verified Against: ZCS 5.0.x Date Created: 8/11/2008
Article ID: https://wiki.zimbra.com/index.php?title=Mailbox_Purge Date Modified: 2008-09-19



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search