How to create email filters (rules for incoming mail)
On this page
A filter checks each incoming message of one mailbox and moves it to a folder, forwards it or deletes it, before it reaches the inbox. Filters work on the server, so they apply even when no app is open.
Steps
- Log in to the control panel (
https://<server>:2083). - Open Email Accounts in the menu (section Email).
- Click Autoresponder & filters in the row of the mailbox.
- Scroll to Filters.
- When — choose what to look at:
- From contains — the sender's address
- To / Cc contains — the recipient addresses
- Subject contains — the subject line
- Text — the text to look for, for example
newsletter@or[Invoice]. - Then — choose what happens:
- Move to folder — choose the Folder: Junk, Archive or Trash
- Forward to — enter the address in Forward to
- Delete — the message is thrown away
- Click Add filter.
You see Filter added. The filter is listed with its When and Then. To remove it, click Remove.
How filters run
- Filters are checked in the order you added them. The first filter that matches decides; later filters are not checked for that message.
- The spam settings of the mailbox are applied first: mail that counts as spam goes to Junk.
- Matching ignores upper and lower case and finds the text anywhere in the field.
- A missing folder is created when the first message is filed into it.
- Without filters, incoming mail goes to the inbox, and spam to Junk.
Good to know
- A mailbox can have up to 50 filters. The text can be up to 200 characters.
- Forward to sends the message on instead of keeping it in this mailbox.
- Delete cannot be undone. Test with Move to folder → Trash first if you are unsure.
- To change a filter, remove it and add it again.
Common questions
Can a filter check the message body?
No. Filters look at the sender, the recipients (To and Cc) or the subject.
Can I file mail into my own folder?
The folders offered are Junk, Archive and Trash. For your own folders, use the rules in your mail app; they run when the app is open.
Will the autoresponder still reply to filtered mail?
No. When a filter matches, it ends the processing of that message, so no automatic reply is sent.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to set up an autoresponder (out-of-office reply)
Send an automatic reply to incoming mail while you are away, with optional start and end dates and one reply per sender every 1, 3 or 7 days.
- How to change spam settings for a mailbox (Junk, allow, block)
Make the spam filter of one mailbox stricter or more lenient, always allow trusted senders, and always send unwanted senders to the Junk folder.
- How to forward email to another address (forwarders)
Create a forwarder so mail sent to an address on your domain is delivered to another address, such as a Gmail inbox, and how to remove it.