Email

How to Block Unwanted Emails in cPanel

Introduction

Sometimes spam emails get through filtering software and end up in your inbox. If spam continues you could block unwanted emails using cPanel.

What you’ll need

Before you begin this guide you’ll need the following:

  • Access to cPanel account
  • Email address created via cPanel

Step 1 — Navigating to Apache SpamAssassin

Once you have successfully logged in your cPanel account, click on Apache SpamAssassin in Email section.

SpamAssasin location

Click on Configure Apache SpamAssassin.

SpamAssasin configuration button

Step 2 — Blocking unwanted email accounts

Once you are in Apache SpamAssassin configuration page you will notice multiple ways how to block spam emails.

Blacklist

  1. You can block specific email address, for example, email@exampleA.com . This way all emails sent from email@exampleA.com would be blocked bu emails sent from anotherEmail@exampleA.com would still reach your inbox.
  2. You can also use a pattern to block all emails coming from a specific domain name. In this example all email addresses that ends in @exampleB.com would be blocked including email@exampleB.com and anotherEmail@exampleB.com .

When you have blocked all unwanted addresses click Save at the bottom of the page to save your changes.

Save

If entered addresses were correctly formatted you will receive a confirmation that changes have been saved.

Saved

From now on all emails that are coming from email addresses that are in the blacklist will be blocked.

If you are getting spammed from various of different email accounts and different domain names you can also decrease the required_score field value. This way mail filtering would be more strict. However, note that with stricter rules you risk of missing valid emails as well which could be incorrectly identified as spam so the safest bet would be to keep score value at default 5.

Conclusion

You have just learned how to block unwanted emails from reaching your inbox using few simple steps.

Add Comment

Click here to post a comment

It's time to switch to a faster hosting for free.

No worries, it's one-click-easy to cancel at any time during your free trial.

  • FREE Domain Name
  • FREE Website Migration
  • 24/7 Professional Support
  • + much more

Join thousands of subscribers worldwide

and get awesome deals & the newest tutorials to your email

Please wait...

Thank you for sign up!