Rules and Filters

Open the Rules page

  1. Open the user menu (top right) and choose Administration.
  2. In the sidebar, under Rules, click Rules.

The page has two sections: Exclusion Rules and Retention Rules.

Exclusion rules

Matching mail is not archived (Skip archiving).

  1. Under Exclusion Rules, click Add Rule.
  2. Optional: Rule name (optional), e.g. "Skip marketing newsletters".
  3. Set Conditions.
  4. Click Create.
  • Rules are checked from top to bottom. The first match wins.
  • Drag a rule by its handle to change the order.
  • Excluded mail is not stored and cannot be recovered later.

Retention rules

Matching mail is kept for the given days. See Retention Policies.

  • The longest matching period wins. Order does not matter.

Conditions

All set conditions must match. Empty conditions are ignored. No conditions: the rule matches All messages.

ConditionInputMatches
Domaine.g. example.com, *.example.comSender domain or any recipient domain
Sendere.g. noreply@*Sender address
Recipiente.g. [email protected]Any recipient address
Has attachmentAny, Yes, NoMail with or without attachments
Is spamAny, Yes, NoMail marked as spam or not
Size-, Size >, Size <, in MBMessage size

Wildcards

  • * at the start, end or both: *.example.com, noreply@*, *invoice*.
  • No *: exact match.
  • Case does not matter.
  • Sender: mail with a display name ("Shop [email protected]") does not match noreply@* yet. Use *noreply@*, or a Domain condition.

Manage rules

  • Click the pencil icon to edit, then Save.
  • Click the trash icon to delete. Confirm "Delete this rule?".
  • Use the switch to turn a rule off without deleting it.

Limits

  • Rules apply to mail archived after the change. Already archived mail is not changed.
  • The Default rule of the retention section cannot be deleted.