Make Your Inbox Happy With cPanel Email Spam Filters


By Tim Brown

cPanel Email Spam Filter IconHave you recently been informed that you are the recipient of millions of dollars, if only you could get them from the Prince of Nigeria’s bank account to yours? Has your better half found your male enhancement supplement email? All jokes aside, everyone hates spam emails. At the very least, spam has a negative impact on productivity. And at the worst, it exposes your computer to potential harmful viruses.

Your web hosting and service provider do what they can, such as market leaders Bluehost and iPage but spam keeps seeping through. If you are tired of having what equates to wet paper bags as your only line of defense, you can create your own cPanel spam filter to keep the junk mail at bay. There are two ways to set up your cPanel spam filtering. You can use cPanel’s Apache SpamAssassin or you can manually create custom filters. 

Visit BlueHost

cPanel Email Anti-Spam Filter

Apache SpamAssassin

Apache SpamAssassin comes with your cPanel; however, some hosting services have it disabled when your account is initiated. To create the filter, make sure that SpamAssassin is enabled and open the global filters interface. From there, you can set a spam score threshold.

SpamAssassin automatically gives every inbound email a spam score based on characteristics associated with junk email. Any email with a spam score higher than your threshold will be deleted. This is easy to do, yet not Fort Knox-level security. For example iPage has a premium spam filter and unique email options.

Visit iPage

Manual Filters

If you really want to feel secure, you can create your own series of custom cPanel anti-spam filters. In just a few quick steps, you’ll be as spam-free as a vegetarian menu. It is wise to set up multiple filters—at least one for keywords and one or two from email senders. From inside cPanel, access your account-level filtering and find the “Edit Filters for All Mail” tool. Click “Create a Filter” then “Edit.” Give this filter a name, such as “Keywords.” From there, you can establish the filter’s parameters. Choose “Subject” from the rules dropdown menu and “contains” from the sub-dropdown menu. In the text box, type in the keyword that you wish to filter for, set the action to discard the email, and save it. Then, using that same form, create additional filters for other keywords.

To stop emails from specific senders, go back to the “Create a Filter” page and start a new filter. Name this one “Blocked Email Addresses.” From the rules dropdown, select “From.” For a general sender filter, select “ends with” from the sub-dropdown menu and, in the text box, type in the domain name that you wish to block (e.g."”). That will stop all emails from anyone at from getting through. To block a specific sender, select “equals” in the sub-dropdown menu and type the entire email address in the text box (e.g.

For better or worse, these filters are going to keep those notifications about unclaimed funds from reaching your inbox. But, with the added productivity, maybe you’ll be able to get enough work done to earn your own millions.

Click here to learn more about the best website hosting providers available. 

Advertising Disclosure

This site is a free online resource that strives to offer helpful content and comparison features to its visitors. Please be advised that the operator of this site accepts advertising compensation from companies that appear on the site, and such compensation impacts the location and order in which the companies (and/or their products) are presented, and in some cases may also impact the rating that is assigned to them. To the extent that ratings appear on this site, such rating is determined by our subjective opinion and based on a methodology that aggregates our analysis of brand market share and reputation, each brand's conversion rates, compensation paid to us and general consumer interest. Company listings on this page DO NOT imply endorsement. We do not feature all providers on the market. Except as expressly set forth in our Terms of Use, all representations and warranties regarding the information presented on this page are disclaimed. The information, including pricing, which appears on this site is subject to change at any time.

Best Web Hosting Companies

Must Reads