> For the complete documentation index, see [llms.txt](https://learn.sitecove.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.sitecove.com/how-to-guides/web-hosting/email-hosting-and-management/how-to-prevent-spam-with-email-filters.md).

# How to Prevent Spam with Email Filters

#### Introduction <a href="#introduction" id="introduction"></a>

Spam emails can clutter your inbox, pose security risks, and reduce productivity. By setting up email filters, you can automatically detect and block unwanted messages before they reach your inbox. This guide will walk you through configuring spam filters in both cPanel and Plesk to help prevent spam effectively.

***

#### Setting Up Spam Filters in cPanel <a href="#setting-up-spam-filters-in-cpanel" id="setting-up-spam-filters-in-cpanel"></a>

#### Step 1: Access the Spam Filters Tool <a href="#step-1-access-the-spam-filters-tool" id="step-1-access-the-spam-filters-tool"></a>

1. Log in to **cPanel**.
2. Navigate to the **Email** section and click on **Spam Filters**.

#### Step 2: Enable Spam Filtering <a href="#step-2-enable-spam-filtering" id="step-2-enable-spam-filtering"></a>

1. Locate the **SpamAssassin** section.
2. Click the toggle to enable **Spam Filters**.
3. Once enabled, cPanel will begin filtering spam automatically.

#### Step 3: Adjust Spam Threshold Settings <a href="#step-3-adjust-spam-threshold-settings" id="step-3-adjust-spam-threshold-settings"></a>

1. Click on **Spam Threshold Score**.
2. Lower scores make the filter stricter (default is 5; setting it to 3 is more aggressive).
3. Save changes to apply the new threshold.

#### Step 4: Auto-Delete Spam (Optional) <a href="#step-4-auto-delete-spam-optional" id="step-4-auto-delete-spam-optional"></a>

1. Toggle **Auto-Delete Spam** to enable automatic deletion of spam emails.
2. Be cautious with this setting to avoid false positives.

#### Step 5: Create Custom Email Filters <a href="#step-5-create-custom-email-filters" id="step-5-create-custom-email-filters"></a>

1. Navigate to **Email Filters** in cPanel.
2. Click **Create a New Filter** and set up rules based on sender, subject, or keywords.
3. Define the action (e.g., move to Junk folder or delete).
4. Click **Save** to activate the filter.

***

#### Setting Up Spam Filters in Plesk <a href="#setting-up-spam-filters-in-plesk" id="setting-up-spam-filters-in-plesk"></a>

#### Step 1: Access Spam Filter Settings <a href="#step-1-access-spam-filter-settings" id="step-1-access-spam-filter-settings"></a>

1. Log in to **Plesk**.
2. Go to **Mail** and select your email account.
3. Click **Spam Filter**.

#### Step 2: Enable Spam Filtering <a href="#step-2-enable-spam-filtering1" id="step-2-enable-spam-filtering1"></a>

1. Check the box to enable spam filtering for the selected email account.
2. Click **Apply** to save changes.

#### Step 3: Adjust Sensitivity Levels <a href="#step-3-adjust-sensitivity-levels" id="step-3-adjust-sensitivity-levels"></a>

1. Set the spam sensitivity level (lower values mean stricter filtering).
2. Recommended values: 5 for balanced filtering, 3 for stricter filtering.

#### Step 4: Configure Actions for Spam Messages <a href="#step-4-configure-actions-for-spam-messages" id="step-4-configure-actions-for-spam-messages"></a>

1. Choose to either **move spam to the Spam folder** or **delete it automatically**.
2. Click **Apply** to finalize your changes.

#### Step 5: Whitelist and Blacklist Senders <a href="#step-5-whitelist-and-blacklist-senders" id="step-5-whitelist-and-blacklist-senders"></a>

1. Add trusted senders to the **Whitelist** to ensure their emails always arrive.
2. Add known spammers to the **Blacklist** to block their messages.
3. Click **Apply** to save these lists.

***

#### Additional Tips to Prevent Spam <a href="#additional-tips-to-prevent-spam" id="additional-tips-to-prevent-spam"></a>

* Use **strong passwords** to prevent email account hacks.
* Never click on suspicious links in spam emails.
* Use **CAPTCHAs** on contact forms to reduce spam submissions.
* Report spam emails to improve filtering accuracy.

***

#### Conclusion <a href="#conclusion" id="conclusion"></a>

Setting up spam filters in cPanel or Plesk is an effective way to reduce unwanted emails and keep your inbox clean. By enabling spam detection, adjusting sensitivity settings, and configuring custom filters, you can significantly decrease the number of spam messages you receive. If you continue to experience spam issues, consider contacting your hosting provider for additional assistance.
