Client Login

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.

Or

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.

Note: In the new cPanel release coming up soon, the headers may change. So please check the headers of a spam marked message and create the filter from your control panel appropriately.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read