How to filter unwanted e-mail (spam) in cPanel

Last modified: Monday November 27th, 2023

From this article, you will know how to set up an email account to filter messages marked as spam and automatically redirect them to a spam folder.

If you haven’t enabled and configured spam filters yet, read this article first.

Filtering unwanted e-mail (spam)

Once you’ve enabled Spam Filters, it uses scores to mark suspicious messages as spam. You can set up Spam Filters so that these messages are automatically deleted. However, in this case, you can sometimes lose legitimate messages that are mistakenly marked as spam (so-called “false positives”).

Alternatively, you can redirect all messages marked as spam to a separate folder in your account. You can check this folder as needed to ensure that any legitimate messages have not been mistakenly marked as spam.

If you are using a third-party email client application (like Thunderbird or Outlook), you can configure this filtering directly on the client. However, you can achieve the same effect using the email filtering rules defined in cPanel.

Please follow these steps to configure e-mail filtering:

  1. Log in to your email account using webmail or an email client application.
  2. Create a folder and named it Spam.
    If you are using an e-mail client application, you may also need to subscribe to the Spam folder.
  3. Log in to cPanel.
  4. Click Email Filters in the EMAIL section of the cPanel home screen:                                                How to filter unwanted e mail (spam) in cPanel email filters cpanel
  5. Select the account for which you want to add a spam filter and click Manage Filters.
  6. Click Create a New Filter.
  7. Type the filter name in the Filter Name text box. For example, type Spam Filter.
  8. Specify the filter rules under Rules:
    • Change the value in the first list field from “From” to “Spam Status”.
      If the Spam Status option is greyed out and you can’t select it, it means you haven’t enabled spam filters yet. First, you need to enable Spam Filters.
    • Change the value in the second list box from “contains”, to “begin with”.
    • Type Yes in the text box below the two list boxes.
  9. Select Deliver to Folder in the Actions list box.
  10. Click Browse and a list of folders for the e-mail account appears.
  11. Click the Spam folder.
  12. Click Create and cPanel will activate the filtering rule for the account, and messages marked as spam will now be redirected to the Spam folder.
In addition to the rules described in steps 8 and 9 above, there are many other ways to define filter rules. For example, you can define one filter that redirects messages with a score greater than 3 to the Spam folder, and another filter removes messages with a score greater than 7. To do this, use the Spam Score option instead of the Spam Status option.
Looking for an outstanding cPanel-based web hosting provider? Try our web hosting packages with cPanel
Was this article helpful?
Views: 167

10 Years Beehosting!
Celebrate with 70% OFF + FREE Site Transfer.

Facebook Instagram linkedin

Beehosting.pro website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Menu