How to Set Up Spam Filtering (Spam Assassin)


Note: This guide is designed for VPS and Dedicated servers. Our Personal, Business, Professional and Reseller hosting plans include Spam Experts. Click here for a guide on using Spam Experts to filter your mail.


Step 1 - Log into cPanel and click on Spam Filters.

371662c93616b999036df54fe297f5bbe6ad219e?t=318af339405cf37de7e4108649cfd901


Step 2 - Turn on "Process New Emails". When turned on, email detected as spam will still come through to the inbox, but will have [SPAM] added to the front of the email's title. 5 is the default value for this threshold.

cee7306a7c2de7c353f6ea90acef1e827a4663f8?t=b641f0eb6451b6293f6b15df8cdd4057

Step 3 - (Optional) To have Spam automatically deleted, click on the Automatically Delete New Spam option. You can Configure Auto-Delete settings to set the threshold at which suspected spam will be deleted. 10 is the default value for this threshold.

e4a73f18d6b73c6f2732454491b17c8c84fe6434?t=3165ea89f0f3a0fbb0ab068206bd4596


Step 4 - Navigate to Email Filters.

e82b1beb8d2ce1de6295ebfdc8f94819d577a54e?t=e6e23769e8f613d839c7857ff33e12bf


Step 5 - Select Manage Filters.

6b72b07442424b153dbf0765f4c7970b994faa94?t=c991c8c6b69ff4b14c16848cab352d47


Step 6 - Select Create a New Filter.

f1a1a539f7620745a6839bb5c28bb320a3e432d2?t=bc9ae8be5dd5fd631ee2b924db0d9aee

Step 6 - Add an email filter using the settings in the picture below, then select Save. This will direct all emails with a Spam score of 5 or higher into a separate Spam Folder.

99f9652e1ddea34109ce8fd76eebb62824b87e86?t=367321de7c9de635592720bd149f9445


You can also Whitelist or Blacklist email accounts here. If you're not receiving expected emails, or you have high priority clients, you may want to Whitelist them. You can blacklist any emails you want to block.


To access this menu, click on Show Additional Configurations.

8b33d4da2d3919e6c423804ecf37cabb17d3d671?t=cbc2974912bd5948c04e618fbe47e3fd

Click on either the Whitelist or Blacklist option.

c310997e0f8cf8723e9ce84c0801e35f28b9bb02?t=763943d9eca5f37c20e102210cf78983

To add a new item to the list:
(1) Click on + Add A New.
(2) Add in the email you want to Whitelist/Blacklist.
(3) Click Update.

9c1c405bbc2326c0c60cc87c6173a393f08f98fe?t=559556ba91b4b2dc0f6508f9af102966


Thank you for your feedback on this article.