Rules and Filters
Open the Rules page
- Open the user menu (top right) and choose Administration.
- 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).
- Under Exclusion Rules, click Add Rule.
- Optional: Rule name (optional), e.g. "Skip marketing newsletters".
- Set Conditions.
- 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.
| Condition | Input | Matches |
|---|---|---|
| Domain | e.g. example.com, *.example.com | Sender domain or any recipient domain |
| Sender | e.g. noreply@* | Sender address |
| Recipient | e.g. [email protected] | Any recipient address |
| Has attachment | Any, Yes, No | Mail with or without attachments |
| Is spam | Any, Yes, No | Mail marked as spam or not |
| Size | -, Size >, Size <, in MB | Message 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.