Fighting Spam with Email Filters and SpamAssassin in cPanel

Category: E-Mail  •  Est. reading time: 3 minutes

Junk mail is a fact of life, but you do not have to just live with it. cPanel gives you two tools: a spam scanner called SpamAssassin that catches junk automatically, and email filters that let you set your own rules. Here is how to use both.

Turn On SpamAssassin

  1. Log in to cPanel and open Spam Filters (sometimes shown as Apache SpamAssassin) in the Email section.
  2. Switch on the spam filter. You can also enable Spam Box, which quietly moves suspected junk into a separate folder instead of your inbox.
  3. Adjust the spam threshold if you like. A lower number is more aggressive.

Create Your Own Email Filters

Filters let you act on messages based on the sender, subject, or content, so you can send known junk straight to the trash or sort messages into folders. cPanel offers two levels:

Account-level filters apply to every email account on your domain. Find them under Global Email Filters. Use these to block a spammer for everyone at once.

User-level filters apply to a single mailbox. Find them under Email Filters, pick the account, and manage its rules.

Creating, Editing, and Deleting a Filter

  1. On the filters page, click Create a New Filter.
  2. Set the condition (for example, “From contains” a spammer’s address) and the action (like Discard or move to a folder).
  3. Save it. To change or remove a rule later, use the Edit or Delete buttons next to it.

A word of caution: a filter that discards mail does so silently, with no bounce. Test a new rule against a harmless condition first, so you do not accidentally delete messages you actually wanted.

Drowning in spam? We can dial in your filters and spam settings so your inbox stays clean. Reach us at support@allydrez.com or 1-321-209-2004.