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.

  • 39 Users Found This Useful
Was this answer helpful?

Related Articles

SMTP, POP3 and IMAP email settings and ports

QHoster email services support the following email standards SMTP, POP3, IMAP, and WebMail. Here...

How to repair cPanel invalid maildir size error

If you experience this error message "Invalid Maildirsize File" when attempting to try and change...

What is the path to sendmail

Path to sendmail on every web hosting server is: /usr/sbin/sendmail  

421 Unexpected failure

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

How to check and send email

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