> For the complete documentation index, see [llms.txt](https://docs.cipp.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cipp.app/user-documentation/email/spamfilter/list-spamfilter/add.md).

# Deploy Spamfilter

This page creates an anti-spam policy in one or more tenants, either from a saved template or from JSON you enter yourself. Alongside the policy it creates the content filter rule that applies it to every accepted domain in the tenant, and that rule is enabled straight away. It is reached from the **Deploy Spamfilter** button on [Spamfilter](/user-documentation/email/spamfilter/list-spamfilter.md).

| Field                        | Description                                                                                                                                 |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Select Tenants               | The tenants to deploy to. More than one can be chosen, and the tenant you are currently on is preselected. Required.                        |
| Select a template (optional) | A saved spam filter template. Choosing one fills **Parameters (JSON)** with the template's settings, which can be edited before submitting. |
| Parameters (JSON)            | The anti-spam policy settings to apply, as JSON. Required.                                                                                  |

**Submit** creates the policy and its rule. The results panel reports the outcome for each tenant separately, so a failure against one tenant does not hide a success elsewhere.

{% hint style="info" %}
The policy and the rule are named after each other, so the new rule appears against the new policy in the table with its **Rule State** set to `Enabled`.
{% endhint %}

Templates are managed on [Spamfilter Templates](/user-documentation/email/spamfilter/list-templates.md).

***

## Feature Requests / Ideas

We value your feedback and ideas. Please raise any [feature requests](https://github.com/CyberDrain/CIPP/issues/new?template=feature.yml) on GitHub.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.cipp.app/user-documentation/email/spamfilter/list-spamfilter/add.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
