> 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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
