> For the complete documentation index, see [llms.txt](https://help.nightfall.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.nightfall.ai/~/changes/OeQHuIkWUMEvfotVM6p8/gmail-dlp/installing-nightfall-for-gmail/configure-compliance-rules/configure-quarantine-rule.md).

# Configure Quarantine Rule

The Quarantine rule quarantines the email that contains sensitive data. The initial configuration steps are the same as in the case of the Scan rule.

{% hint style="info" %}
**Important**

You must configure this rule only if you wish to use the quarantine automated action.
{% endhint %}

1. Execute steps 1-13 of the [Configure Scan Rule](/~/changes/OeQHuIkWUMEvfotVM6p8/gmail-dlp/installing-nightfall-for-gmail/configure-compliance-rules/configure-scan-rule.md). If you are already on the Compliance page of the Google Workspace, execute steps 7-13 of the [Configure Scan Rule](/~/changes/OeQHuIkWUMEvfotVM6p8/gmail-dlp/installing-nightfall-for-gmail/configure-compliance-rules/configure-scan-rule.md).
2. In the **Match type** drop-down menu, select **Contains text**.
3. In the **Content** field enter **x-nightfall-quarantine**. Nightfall updates the headers for all emails that need to be quarantined with “x-nightfall-quarantine”, once they are processed and before they are routed back to Gmail. This enables Gmail to quarantine the emails with this header.
4. Click **SAVE**.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FYxcZTLF7TGAdWyCpezXe%2Fimage.png?alt=media&amp;token=0be3e911-fb1d-4667-8487-57517d2560fa" alt=""><figcaption></figcaption></figure>

4. In stage 3, select **Quarantine message.**

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FjI2cvHbzbCLoFd4Anmzw%2Fimage.png?alt=media&amp;token=0eb0cd60-04c8-400e-a30e-b1aecbb6e602" alt=""><figcaption></figcaption></figure>

5. (Optional) Select the **Notify sender when mail is quarantined** check box to notify the sender when their email is quarantined.&#x20;
6. Click **SAVE**.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FNOIcjtbP4vgMHviWCp4I%2Fimage.png?alt=media&amp;token=9909d0b7-bf3b-4ce6-b9e8-45a0516b9ec7" alt=""><figcaption></figcaption></figure>


---

# 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://help.nightfall.ai/~/changes/OeQHuIkWUMEvfotVM6p8/gmail-dlp/installing-nightfall-for-gmail/configure-compliance-rules/configure-quarantine-rule.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.
