Email

Global Email Filters

Updated: 16 February 2024
cPanel Version: 118

The 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

  1. Click on the Create a New Filter button on the Global Email Filters page.
  2. Enter a name for your filter in the Filter Name field.
  3. 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.
  4. 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.
  5. Click on the Create button to save your filter.

Editing a Filter

  1. Locate the filter you want to edit under the Current Filters section.
  2. Click on the Edit link next to the filter name.
  3. Make the desired changes to the filter rules or actions.
  4. Click on the Save button to apply your changes.

Deleting a Filter

  1. Find the filter you want to delete in the Current Filters section.
  2. Click on the Delete link next to the filter name.
  3. 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

  1. Click on Create a New Filter.
  2. Type in a name for your filter in the Filter Name box.
  3. Choose From in the Rules menu. This makes your filter look at the sender's email address.
  4. Pick matches regex from the Operators menu. This lets you compare the sender's email address to a pattern you set.
  5. 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.


External links

Global Email Filters - cPanel Documentation