Skip to content

Mail rules and out of office

Mail rules sort a mailbox's incoming mail automatically, and an out-of-office reply answers senders while you're away. Both run on the mail server, so they work whether or not a mail app is open, and both belong to a single mailbox.

Before you start

  • A mailspace that has finished setting up. If it hasn't, see Verifying your domain.
  • At least one mailbox — see Managing mailboxes.
  • A role that can make changes in the workspace.
  • A mailspace that isn't scheduled for deletion. Until you restore it, nothing here can be changed.
  • Mailspace in your workspace sidebar. If it's missing, get in touch.

Create a rule

  1. Open the mailbox's rules. In the mailspace, choose Settings → Mail Rules, then click Manage rules on the mailbox's row.

  2. Click New Rule.

  3. Name it. Rule name is required, for example Sort newsletters.

  4. Choose the match type. Match ALL conditions (the default) or Match ANY condition.

  5. Add conditions. Each is a field, a comparison and a value. Use Add condition for more. To match any of several values, separate them with commas.

    Field Matches against
    From, To, Cc the sender and recipients
    Subject the subject line
    Body the message text (contains and is only)

    The comparisons are contains, does not contain, is, is not, starts with, ends with and matches. With matches, * stands for any run of characters.

  6. Add actions. A rule can do more than one thing. Use Add action for more.

    Action Effect
    Move to folder files the message into a folder instead of the inbox (pick one, or New folder…)
    Forward to address sends a copy to another address
    Mark as read delivers it already read
    Star flags it
    Delete discards it
  7. Decide whether it ends there. Turn on Stop processing to skip the rules below this one whenever it matches.

  8. Check it. In plain words shows the rule as a sentence.

  9. Click Create rule.

Delete keeps nothing

A rule with the Delete action discards the message on arrival. It is never delivered, and the sender isn't told. Prefer Move to folder unless you're sure. Mail logs show what a rule has been catching.

To edit a rule, choose Edit rule in its row's ⋮ menu, then Save changes.

Order, pause and delete rules

Rules run from top to bottom, in the order listed. In each row's ⋮ menu:

  • Move up / Move down changes the order.
  • Turn off / Turn on pauses a rule without deleting it.
  • Delete rule removes it. Mail it already filed stays where it is.

You can also reach a mailbox's rules from the Mailboxes list: open the row's ⋮ menu and choose Mail rules.

If a mailbox's rules were set up outside the dashboard, the rules page says so and shows them read-only. Manage it here instead replaces that setup with the rules shown, and anything the rule builder can't show is lost.

Set up an out-of-office reply

  1. Open the mailbox's reply. In the Mailboxes list, open the row's ⋮ menu and choose Out of office. Each mailbox has one reply; you edit it rather than adding a second.

  2. Check the mailbox named at the top of the page.

  3. Switch on Auto-reply. You can save with it off to keep the wording ready.

  4. Set a date range, if you like. Start date and End date are whole days in UTC; replies stop after the end date. Leave them empty to reply for as long as Auto-reply is on.

  5. Write the reply in Subject and Message body. Both start filled in; edit them.

  6. Add a formatted version, if you like, with Send a formatted (HTML) version. Recipients whose mail app can't show it see the plain text. Switching it off again removes the formatted version.

  7. Click Save changes.

Replies are sent even if one of the mailbox's rules files or deletes the message.

To pause a reply, turn Auto-reply off; the wording is kept. To remove it, click Remove reply on the same page. This can't be undone. The mailbox's rules aren't affected.

Next steps

  • Give a mailbox its first rule, such as newsletters into a folder.
  • Check Mail logs after a rule goes live.
  • To reach several people, use an alias or a group instead of a forwarding rule.
  • Set an out-of-office reply with a date range before the person leaves, so it starts and stops on its own.