Global Email Filters
Updated: 16 February 2024The Global Email Filters feature in cPanel allows you to manage email filters for all of your email accounts. This tool is handy when you want to ensure all incoming mail is handled uniformly, regardless of the specific email account it's sent to. This tutorial will guide you on how to create, edit, delete, and create a wildcard redirect using the Global Email Filters menu in cPanel.
Note:
To learn how to set up email filters in cPanel, check out our Guide to Email Filters
Accessing the Global Email Filters Menu
To access the Global Email Filters menu, log in to your cPanel account. In the Email section, click on the Global Email Filters icon.
Creating a Filter
- Click on the Create a New Filter button on the Global Email Filters page.
- Enter a name for your filter in the Filter Name field.
- Select a rule from the Rules dropdown menu. For example, you can set a rule to filter emails with a specific word in the subject or body.
- In the Actions field, define what should happen when an email meets your rule. You can choose to discard the message, redirect it to another email, etc.
- Click on the Create button to save your filter.
Editing a Filter
- Locate the filter you want to edit under the Current Filters section.
- Click on the Edit link next to the filter name.
- Make the desired changes to the filter rules or actions.
- Click on the Save button to apply your changes.
Deleting a Filter
- Find the filter you want to delete in the Current Filters section.
- Click on the Delete link next to the filter name.
- Confirm your decision in the popup window by clicking the Delete Filter button.
Creating a Wildcard Redirect
Setting up a wildcard redirect means all emails that fit a certain pattern will be sent to a new address.
Important:
Unlike forwarders that send emails to both the original and new address, redirects only send emails to the new address. For example, if you redirect an email from sample-email@example.com to correct-sample-email@example.com, it will only show up in correct-sample-email@example.com
- Click on Create a New Filter.
- Type in a name for your filter in the Filter Name box.
- Choose From in the Rules menu. This makes your filter look at the sender's email address.
- Pick matches regex from the Operators menu. This lets you compare the sender's email address to a pattern you set.
- Type your pattern into the Criteria text box. This pattern is what decides which emails get redirected.
Remember to Test Your Filters
After creating, editing, or deleting a filter, it's a good idea to send a test email to verify the filter is working as expected.
Be Careful with Wildcard Redirects
While wildcard redirects can be useful, they can also cause confusion if not managed properly. Be sure to only use them when necessary and always monitor the redirected emails for important messages.