Search Our Database

How to automatically sort Emails by using Email Filters in cPanel

Last updated on |

Introduction

Email filters in cPanel can automatically sort, delete, redirect, or reject incoming messages for an individual email account based on rules you define — such as sender, subject line, or keywords. This is useful for keeping promotional mail out of your Inbox, routing messages from specific senders into dedicated folders, forwarding inquiries to another address, or bouncing unwanted mail back to its sender. This guide shows cPanel users how to set up each of these automatic actions from the Email Filters interface.

 

Prerequisite

  • Access to your cPanel login page.
  • An active email account in your cPanel.

 

Step-by-Step Guide

Step 1: Log in to cPanel

  • Access and log in to your cPanel account using your username and password.
    Log in to cPanel

 

Step 2: Open Email Filters

  • In the Home page, under Email, click Email Filters.
    Email Filters icon in cPanel

 

Step 3: Select the Email Account

  • In the Filters by Users table, locate the email account for which you want to create the filter. Click Manage Filters next to that email account.
    Filters by Users table in cPanel

 

Step 4: Create a New Filter

  • Click Create a New Filter.
    Create a New Filter page
  • Configure the filter:
    -> Filter’s Name: The label for your filter (e.g., Block Promo Emails).
    -> Rules: Conditions that trigger the filter (like sender, subject, or keywords).
    -> Actions: What happens when the rules match (like discard, redirect, or move email).
  • Each Rules and Actions field includes a dropdown menu. Click the + or – icon to add or remove rules and actions; use AND or OR to decide how multiple rules apply together. Click Create.
    Filter rules and actions configuration

 

  • The final step is to choose the Action the filter performs. Expand a section below for the action you want.
Move Emails to a Folder (Inbox, Archive, Drafts, Junk, Sent, Spam, or Trash)
Important Note⚠️: The order of email filters matters. If you want this filter to override other filters (like spam filters), drag and drop it to a higher position in the Current Filters list so it runs first.
  • Under Actions, select Deliver to Folder from the dropdown menu.
    Deliver to Folder action in email filter
  • Click Browse and select the destination folder: INBOX, Archive, Drafts, Junk, Sent, Spam, or Trash.
    Browse and select destination folder
Delete Unwanted Emails
Important Note⚠️: Discarded emails are permanently deleted and cannot be recovered. Make sure your filter criteria are accurate to avoid losing important messages.
  • Under Actions, select Discard Message from the dropdown menu.
    Discard Message action in email filter
Redirect Emails to Another Address
Important Note⚠️: When you use “Redirect to Email,” the original message is forwarded to the specified address, and a copy is also delivered to the original recipient’s inbox.
  • Under Actions, select Redirect to Email from the dropdown menu.
    Redirect to Email action in email filter
  • Enter the destination email address in the text field. For example: “abc@gmail.com.”
    Enter destination email address in Redirect to Email action
Reject Emails with a Custom Error Message
Important Note⚠️: The sender will receive this message as a bounce notification explaining why their email was rejected. Keep your error message professional and clear.
  • Under Actions, select Fail with message from the dropdown menu.
    Redirect to Email action in email filter
  • In the text field that appears, enter your custom error message that will be sent back to the sender. For example: “This email address does not accept unsolicited messages.”
    Fail with message action in email filter

 

Conclusion

By following this guidance, you can automatically sort, delete, redirect, or reject emails using Email Filters in cPanel, keeping your inbox organized and ensuring messages are handled according to your preferences. Always test your filters to ensure they work as expected and do not accidentally affect legitimate emails.

 

If you encounter any issues or require further assistance, please reach out to our support team at support@ipserverone.com.

 

Article updated on 18 November 2026 by Johnny