Casbay Knowledge Base

Search our articles or browse by category below

How to Block Unwanted Emails?

Last modified: September 30, 2022
Estimated reading time: 1 min

How to Block Unwanted Emails?

Learn how to Block Unwanted Emails and 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 to your cPanel account, click on Apache SpamAssassin in the Email section.

Navigating to Apache SpamAssassin

After that, click on Configure Apache SpamAssassin.

Configure Apache SpamAssassin

Step 2 — Blocking unwanted email accounts

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

Email accounts

1. You can block specific email address, for example, [email protected]. This would block all messages sent by [email protected] from being sent by another [email protected].

2. You can also use a pattern to block all emails coming from a specific domain name. In this instance, all email addresses ending in @exampleB.com, including [email protected] and [email protected], would be blocked.

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

Save block unwanted emails

In this instance, all email addresses ending in @exampleB.com. It also includes [email protected] and [email protected], would be blocked.

Block unwanted email successful message

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

If you are spammed from separate email accounts and distinct domain names, the required score field value may also be reduced. This way mail filtering would be more strict. Here is the tutorial. However, that you risk missing valid messages with more stringent regulations that could be wrongly recognized as spam. Therefore, the safest bet would be to maintain the score value at 5 by default..

Was this article helpful?
Dislike 0
Previous: HOW TO: Generate/Download a Full Backup in Plesk
Next: Resource usage