Create cpanel User/Account Level Filtering to get rid of the Spam mail

The following guide shows you how to get rid of spam emails in your cPanel:

  1. Open your email client or webmail to get your email header

Email Customer

After getting the email you may need to check the source "Return-Path" referring to the instructions below to see the email client header.

The example below is a spam email coming from therefore it may be necessary to delete the email.


After getting the email header (Roundcube, Horde or Squirrelmail) you can check the source "Return-Path".

  1. After that, login to your cPanel by accessing the URL: http://cpanel.domainname/ or http://domainname:2083/ and click on "Filter Leveling" or "User Level Filtering" on your cPanel main screen.

  1. In the "From" and "Contains" Rules or Create a "Rule" that you want to discard email spam.

  1. In this step you need to enter the spam mail "Return-Path" like the example above in the spam email header section is and click "Create".

Notes: Account filtering means the same as user-level filtering, with the difference that the filters created here are applied globally to the entire cPanel account.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.