Skip to content

Retention Policies

Retention policies define how long archived emails are kept before they become eligible for automatic deletion. Each policy targets a specific set of emails using condition rules and specifies a retention period in days.

Go to Compliance > Retention Policies in the sidebar.

Creating a Policy

Click Create Policy and fill in the following fields:

  • Name -- A descriptive name for the policy (e.g., "Legal Hold - 7 Years").
  • Priority -- Determines evaluation order when multiple policies exist. Higher priority policies are evaluated first.
  • Retention Period -- The number of days an email must be retained from its ingestion date.
  • Ingestion Scope -- Defines which ingested emails the policy applies to.
  • Condition Rules -- One or more rules that an email must match for the policy to apply.

Condition Rules

Each rule consists of a field, an operator, and a value. Multiple rules can be combined using AND or OR logic.

Supported Fields

FieldDescription
senderThe email sender address
recipientThe email recipient address
subjectThe email subject line
attachment_typeThe MIME type of any attachment

Supported Operators

OperatorDescription
equalsExact match
not_equalsDoes not exactly match
containsValue appears anywhere in the field
not_containsValue does not appear in the field
starts_withField begins with the value
ends_withField ends with the value
domain_matchMatches the domain portion of an email address
regex_matchMatches a regular expression pattern

Editing a Policy

Select an existing policy from the list and click Edit. All fields can be modified. Changes take effect on the next lifecycle worker run.

Deleting a Policy

Select a policy and click Delete. Removing a policy does not retroactively delete any emails -- it only stops the policy from governing future retention decisions.

Policy Simulator

The policy simulator lets you test your condition rules against archived emails without affecting any data. Use it to verify that a new or modified policy targets the correct set of messages before saving.

Multiple Matching Policies

When an email matches more than one retention policy, max-duration-wins logic applies: the policy with the longest retention period determines the effective retention date. This ensures that the most conservative retention requirement is always honored.