Email filters (also called mailbox rules) automatically organize, move, or delete emails based on conditions like sender, subject line, or keywords. They help keep your inbox clean and ensure important messages don't get lost.
Steps
1. Log in to cPanel
- Visit your hosting provider's cPanel login page and sign in with your username and password.
2. Navigate to Email Filters
- From the cPanel Home, locate the Email section.
- Click on Email Filters (or Filters or Mailbox Rules).
3. Add a New Filter
- Click the Create Filter or Add Filter button.
4. Name Your Filter
- Filter name: Enter a descriptive name (for example, "Newsletter" or "Spam Rule"). This helps you identify it later.
5. Choose the Email Account
- Email account: Select which email address the filter will apply to. If you manage multiple accounts, choose the correct one.
6. Set Filter Conditions
- Choose the criteria that trigger the filter. Most cPanel filters offer options like:
- From: Filter by sender email address (for example, all mail from sender@example.com).
- To: Filter by recipient (useful for shared accounts or mailing lists).
- Subject: Filter by words or phrases in the subject line.
- Body: Filter by content within the email message.
- Match condition: Select how to match:
- Contains: Matches if the field contains the text you enter.
- Does not contain: Matches if the field does NOT contain the text.
- Exact match: Matches only if the field is exactly the text you specify (case-insensitive).
- Begins with / Ends with: Matches if the field starts or ends with specific text.
7. Set the Filter Action
- Choose what happens when the filter condition is met:
- Deliver to folder: Move the email to a specific folder (create custom folders in your email client first).
- Discard: Automatically delete the email (use with caution).
- Stop processing: Stop checking other filters and apply this action only.
- Forward: Send the email to another address (useful for routing to a team member).
- Mark as read: Automatically mark matching emails as read (helpful for newsletters).
- Reply with message: Send an automated reply (similar to autoresponders).
8. Save the Filter
- Click the Create or Save button.
- The filter is now active and will apply to incoming emails.
Common Filter Examples
| Purpose | Condition | Action |
|---------|-----------|--------|
| Organize newsletters | From contains "newsletter@example.com" | Move to "Newsletters" folder |
| Block spam keywords | Subject contains "Buy now" | Discard |
| Route urgent emails | Subject contains "URGENT" | Move to "Important" folder |
| Separate invoices | From contains "billing@vendor.com" | Move to "Invoices" folder |
| Auto-reply to mailing lists | To contains "list@company.com" | Send automatic reply |
Tips & Notes
- Order matters: Filters are applied in the order they appear. If an earlier filter discards an email, later filters will not process it.
- Be specific: Use clear, unique keywords to avoid accidentally filtering legitimate emails.
- Create folders first: Before moving emails to custom folders, create them in your email client or Webmail.
- Test your rules: After creating a filter, check that emails meeting the condition are handled correctly.
- Case-insensitive: Most filter conditions ignore uppercase and lowercase, so
Newsletter@Example.commatchesnewsletter@example.com. - Multiple conditions (if supported): Some systems allow AND/OR logic; check your cPanel version or contact support.
- Review old filters: Periodically check inactive filters that may no longer be needed.
Managing Filters
- View all filters: The email filters list shows all active rules for each account.
- Edit a filter: Click the Edit button to change conditions or actions.
- Disable a filter: Some systems allow you to disable (rather than delete) a filter temporarily.
- Delete a filter: Click the Delete button to remove a filter you no longer need.
- Duplicate a filter: If you need a similar rule, create a new one based on the original.
Troubleshooting
- Filter not working? Verify the email account is correct and the condition matches the exact text in incoming emails (check capitalization and spacing).
- Emails disappeared? If you set a "Discard" action, check your Trash or Spam folder first, then review the filter condition to ensure it is not too broad.
- Too many filters slowing email down? Some systems may slow performance with hundreds of filters. Delete unnecessary rules.
- Filters not applying to old emails: Filters typically only apply to new incoming mail. To organize old emails, move them manually or recreate the filter on a fresh account.
Next Steps
Combine filters with other email tools:
- Use Autoresponders to auto-reply to certain senders.
- Set up Forwarders to redirect specific emails to other addresses.
- Create Spam filtering rules to protect against unwanted mail.