How to automatically delete emails marked as spam by SpamAssassin?

Spam Box

You can enable Spam Box from the SpamAssassin configuration screen in cPanel, and regularly check the spam box for any false positives. You can clear (empty) that spam box from cPanel if it only gets spam. You will need to regularly clear the spam box or it can fill up your hosting space.


Filter Spam Marked Emails

Login to your cPanel, go to Mail and then Email Filter screen. Create a filter rule like this:

Select "Any header" that "contains" the string "X-Spam-Level: *****" (without quotes)

The result is this:

$message_headers contains "X-Spam-Level: *****"

Each * represents SpamAssassin score. 5 is a default value for SpamAssassin to consider that email a spam. 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is an email auto responder?

Email auto responders will automatically send a customized auto response (that you compose) to...

What is an Email POP account?

You configure a "private" email account for one or many users who will be receiving and sending...

What is email forwarding?

Email forwarding is a feature which forwards an email sent to an address within your domain to...

How do I setup a SPAM Block/Filtering system?

Our cPanel has a built in feature, which allows you to block these email messages in a multitude...