This article explains how to enable the spam filter in cPanel so that new messages with a high score are marked, how to move them out of the inbox, and how to allow or block senders.
What is it for?
The filter uses SpamAssassin. It reviews each new email and assigns a score to it. If that score reaches the threshold, the message is marked. With the factory settings the threshold is 5, and [possible spam] may appear in the subject line. From this screen you can:
- Enable or disable the analysis of new emails.
- Move marked items to the spam folder, out of the inbox.
- Add senders to the whitelist or blacklist.
Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. Then go to Email → Spam Filters.
Enable the filter
- Log in to cPanel.
- Open Email → Spam Filters.

- Enable processing for new emails.
- Also enable moving new spam to a separate folder (Spam Box). Those messages go to the spam folder and stop showing in the inbox.

The filter only reviews messages that arrive after enabling it. A score lower than 5 marks more emails. A higher one marks fewer. It is best to leave it at 5 unless you already know how the score is calculated.
Important: the whitelist and blacklist apply to the entire account. If you add an email or a domain, the change applies to all mailboxes, including those of additional domains. Do not enable automatic deletion if you do not want to lose those messages: what is deleted this way cannot be recovered. The calculated score options are for those who are already familiar with SpamAssassin.
Whitelist and Blacklist
- On the same screen, open the additional settings.

- Go to Whitelist (Emails Always Allowed) for senders that must always get through.
- Add a complete mailbox or a domain.

- Go to Blacklist (Emails Never Allowed) for senders you do not want to receive.
- Add a complete mailbox or a domain.

In Roundcube, when marking a message as Not spam, that sender is moved to the whitelist. When marking it as Spam, it goes to the blacklist. You can select multiple messages together and they are added at once.
Tool documentation can be found at spamassassin.apache.org.
Common issues
- A valid email arrives as [possible spam]: add that mailbox or domain to the whitelist, or mark it as Not spam in Roundcube.
- Spam keeps entering the inbox: confirm that processing is enabled and that Spam Box is enabled. The filter does not re-review messages that were already in the mailbox.
- I blocked a domain and stopped receiving other emails: the list applies to the entire account. If you loaded a broad domain, like that of an email provider, remove it from the blacklist.
- I changed the score and now almost everything is marked, or nothing is marked: return the threshold to 5.
- One mailbox's list affected the others: this is the behavior of this screen. The exception applies to all mailboxes in the account.
If the filter cannot be enabled, an allowed sender remains marked, or extra mail was blocked, open a ticket from the client portal or consult the site's online chat.
