How to enable SpamAssassin

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

  1. Log in to cPanel.
  2. Open Email → Spam Filters.

Spam Filters en Correo electrónico de cPanel

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

Activar el procesamiento de correos y la carpeta de spam

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

  1. On the same screen, open the additional settings.

Configuraciones adicionales del filtro de spam

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

Lista blanca de correos y dominios permitidos

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

Lista negra de correos y dominios bloqueados

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.

  • activar filtro spam cpanel, configurar filtro de spam, control spam, recibo mucho spam, recibo mucho spam aplicar filtro, spamassassin
  • 22 Users Found This Useful
Was this answer helpful?

Related Articles

How to delete messages using WebMail

This article explains how to view and delete messages in Roundcube, and how to delete them from...

Webmail - Unable to access my messages

This article explains why Webmail might not let you view or save messages, and how to check your...

How to save copies of sent messages using Webmail

This article explains how to save a copy of sent messages in Roundcube, the hosting's current...

Catch-all mailbox (Default Address)

This article explains what a catch-all mailbox is and how to enable or disable it using cPanel's...

How to reduce unsolicited email

This article gathers practices to reduce spam entering inboxes: disabling the default address,...