Sort and filter incoming email
Filters act on mail as it arrives at the server. They run before you read anything, so they work on every device. Use them to sort mail into folders, forward some of it, or throw away a sender.
Two kinds
| Kind | How to choose it | Applies to |
|---|---|---|
| Mailbox filter | Pick the mailbox in the list beside Filters, then click Show | One mailbox |
| All-mailboxes filter | Leave the list on All mailboxes | Every mailbox on your site |
Both live in Account → Hosting → your site → Email, on the Spam and filters tab. Apps like Outlook and Thunderbird also have their own rules. Those only run on that computer.
Create a filter
- Open Email and go to the Spam and filters tab.
- In Filters, choose the mailbox, or All mailboxes, and click Show.
- Under New filter, give it a Name, such as
Supplier invoices. - Under If, choose part of the message. Under Rule, choose how to match. Type the Text to look for.
- Under Then, choose what happens. Fill in the folder, address or message it asks for.
- Click Add filter.
Each filter has a switch, so you can turn it off without deleting it.
Rule options
| If | Examples |
|---|---|
| From | Sender address |
| Subject | A word in the subject |
| To | Who it was sent to |
| Reply-to | The reply address |
| Body | Words inside the message |
| Any header | Any header line, such as X-Spam-Status |
| Spam score | The spam filter's score, with is above or is below |
| Rule | Meaning |
|---|---|
| is | Exactly this |
| contains | Includes this text |
| doesn't contain | Missing this text |
| begins with, ends with | Start or end of the text |
| matches pattern | A regular expression, for advanced use |
| is above, is below | Numbers, such as the spam score |
Action options
| Then | What it does |
|---|---|
| Move to folder | Files it in a folder of that mailbox. Only offered for a single mailbox |
| Forward to | Sends it to another address, with no copy kept |
| Delete | Deletes it silently |
| Bounce with a message | Rejects it, and the sender gets your message |
| Stop checking other filters | Later filters don't run on it |
Examples
File supplier invoices.
| Rule | Action |
|---|---|
From contains @flour-supplier.example |
Move to folder Suppliers |
Keep spam out of your inbox.
| Rule | Action |
|---|---|
Spam score is above 5 |
Move to folder Junk |
Forward orders after hours. Not available as a schedule. Use a forwarder. See Forward email.
Order
Filters run from top to bottom. Add one that ends in Stop checking other filters to keep a message from matching later ones.
Test it
Send a message that matches the rule from another address, then check the folder. The page has no separate test tool.
If something goes wrong
- The folder isn't in the list. Create it in webmail first, then reload Email.
- Mail disappears. A Delete filter matched. Turn it off or delete it.
- Filter not firing. Check the order and that the rule parts match the message.
- A filter you did not create. Possibly an attacker. See Change an email password.
Still stuck? Ask us and we'll walk you through it.
