SpamAssassin and automatically delete emails with cPanel hosting

With cPanel server web hosting plans and spamassassin enabled you have an option to automatically delete all emails that get a spam score of 5 or more. To do this just follow the cPanel manual:

1. Log in to your cPanel web hosting account
2. Click on Email link and then Spam Assassin
3. Click on Enable Spam Assassin
4. Click on Email link then Spam Assassin
5. Click on Configure (required to rewrite subjects)
6. For the value of rewrite_header subject put ***SPAM***
7. Then click on Email link -> Spam Filters
8. In the dropdown box there Block mails when choose the Subject and also Contains
9. IN the new box add ***SPAM***
10. For the Destination box just type Discard. (this is equal to emails to be deleted)

After finishing this setting for Spam Assassin in cPanel any email message scored 5 or more will be automatically marked with a subject of ***SPAM***

This email filter will delete any email with the word ***SPAM*** in the subject line.

Apart this spamassassin and cPanel web hosting filters you can also use a filter in your Outlook email client or other email program and just skip steps 7 to 10 and do the filtering part on your computer, but that way you will need to download all of the email spam. That's why it is better the email spam to be marked as spam by spamassassin and deleted on a cPanel server level.

  • 54 Users Found This Useful
Was this answer helpful?

Related Articles

421 Unexpected failure

If when sending e-mail from your web hosting, and receive the following error message: 421,...

A copy of the email logs

For shared and reseller hosting plans: We can provide you the e-mail logs for a domain. You...

How to check and send email

E-mail servers are configured to match your domain for an additional convenience. This applies to...

Checking email trough browser (webmail)

Each web hosting account has three different mail clients – Horde, SquirrelMail and RoundCube....

How to create an email account

Create an e-mail account is done very simple with just few mouse clicks.Steps:1. Enter in the web...