# Spam Filtering Customization

Spam Filtering is an essential email utility that provides advanced protection for your mail account. It examines incoming emails for various spam characteristics to determine whether they should be classified as spam.

With the rise in spam and email threats such as phishing, viruses, malware, and spoofing, effective spam filtration is crucial for managing and protecting your business email accounts. A significant number of security attacks begin with email-borne threats. Spam filters help recognize, protect against, and block messages that contain malicious links, spam, phishing attempts, and weaponized attachments.

The **Spam Filters tool** safeguards your business from unwanted issues and expenses. It employs a robust scoring framework and plugins to filter email and block spam. This tool is available by default on our servers and can be configured through cPanel.

### Steps to Set Up Spam Filters

1. **Log in to cPanel**: Access your cPanel account and navigate to the **Email** section.
2. **Access Spam Filters**: Click on the **Spam Filters** menu.
3. **Enable/Disable Filtering**: Toggle the button next to **Process New Email and Mark them as Spam** to enable or disable spam filtering.
4. **Set Required Score**:

   * **0**: Everything is marked as spam.
   * **5**: Default setting.
   * **10**: No emails are marked as spam.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Tip</strong>: Once configured, the Spam Filters will apply to all emails in your account, making it easier to identify spam.</p></div>

### Moving New Spam to a Separate Folder (Spam Box)

This feature allows Exim to create a separate spam folder in your mailbox for emails marked as spam. By default, emails with a score of 5 are considered spam, but you can adjust this threshold.

* **Configure Spam Threshold Score**: Set the threshold according to your preferences. Higher scores indicate stricter spam filtering.
* **Delete Messages in Spam Box**: Use **Configure Spam Box Settings** to empty the Spam Box folder or all Spam Box folders.

{% hint style="warning" %}
Regularly check your Spam Box to ensure no important emails have been mistakenly marked as spam.
{% endhint %}

### Automatically Delete New Spam (Auto-Delete)

This feature enables the automatic removal of emails that meet or exceed the specified spam score.

1. **Configure Auto-Delete**: Turn on the **Automatically Delete New Spam (Auto-Delete)** widget.
2. **Set Auto-Delete Threshold Score**: Adjust the score based on your needs. This score does not affect the Spam Threshold Score.

{% hint style="danger" %}
Be careful with the Auto-Delete settings to avoid losing legitimate emails that may be mistakenly classified as spam.
{% endhint %}

### Advanced Settings

To access additional configurations, scroll down to **Additional Configurations** and click on **Show Additional Configurations**.

#### Whitelist/Blacklist

* **Whitelist**: Add email addresses or domains to the **Whitelist (Emails Always Allowed)** to ensure they are never marked as spam.
* **Blacklist**: Use the **Blacklist (Emails Never Allowed)** to block specific senders.

{% hint style="info" %}
Regularly update your whitelist and blacklist to maintain effective spam filtering.
{% endhint %}

#### Calculated Spam Score Settings

Each incoming mail is screened by Spam Filters and assigned a score based on spam characteristics.

1. **Configure Calculated Spam Score**: Click **Configure Calculated Spam Score** to adjust individual test scores.
2. **Add New "Scores" Item**: Find the score field and configure it as needed.

{% hint style="success" %}
**Good to Know**: Lower scores lead to more restrictive filtering, helping to keep your inbox clean and secure.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.clouduxe.com/emails/spam-filtering-customization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
