

When to use global vs per-mailbox
| Use Global filters when | Use Email Filters when |
|---|---|
| You want the rule to apply to every address on the account | The rule applies to one mailbox only |
| You’re blocking obvious spam patterns (subject lines, senders) | You’re sorting your inbox into folders |
| You’re enforcing organization-wide policy | The owner of the mailbox sets their own rules |
Create a rule
Build the condition
Pick a header (From, Subject, To, Body, etc.), a comparison (contains, matches regex, begins with), and the value to match.Add multiple conditions if needed. Combine them with And (all must match) or Or (any can match).
Pick the action
Common actions:
- Discard message — silently drop the mail. Sender doesn’t know.
- Redirect to email — forward to another address.
- Fail with message — bounce with a custom error.
- Deliver to folder — drop into a specific IMAP folder (e.g.
INBOX.Spam). - Pipe to a program — hand off to a script (advanced).
Tips
- Test before you trust. A wrong condition can silently discard legitimate mail. The Filter Test box on the same page lets you paste a real message and check what would happen.
- Order matters. Filters are evaluated top-down. Use the up/down arrows to reorder when one rule depends on another (e.g. a “tag as spam” rule before a “discard if tagged” rule).
- Regex carefully. Filter rules support regex on headers and body. Powerful, but easy to over-match. Prefer “contains” or “begins with” when you can.

