# Create SDR rule in Google Workspace

## Introduction

The steps below describe how to set up a content compliance rule in Google Workspace for Secure Direct Replies.

## Process

01. Log in to the [Google Admin portal](https://admin.google.com/) with your admin account.
02. Click on _apps_ **Apps**.
03. Click on **Google Workspace**.
04. Click on **Gmail**.
05. Scroll down to **Compliance**.
06. Click the **Compliance** card.
07. Scroll down to **Content compliance**.
08. Click ADD ANOTHER RULE.
09. Name the rule `Zivver: Secure Direct Replies 2.0`.
10. Under **1\. Email messages to affect**, select the option **Outbound**.
11. Under **2\. Add expressions that describe the content that you want to search for in each message**, make sure the dropdown menu is set to **If ANY of the following match the message**.
12. In the **Expressions** block, click ADD.
13. Open the dropdown menu **Simple content match**.
14. Change the option to **Advanced content match**.
15. Change **Location** to **Full headers**.
16. Leave **Match type** set to **contains text**.
17. Enter `zivver-sdr-<your_Zivver_UUID>`.

Tip

**Please fill in your Zivver UUID**

Replace the placeholder `<your_Zivver_UUID>` with your Zivver organization UUID. You can find the UUID in the Zivver admin portal under **General** \> [**Organization account**](https://app.zivver.com/admin/organization-account) \> **Export user data** \> **User name**.

18. Click SAVE.
19. Under **3\. If the above expressions match, do the following**, select **Add custom headers**.
20. In the **Custom headers** block, click ADD.
21. For **Header key**, enter `zivver-relay`.
22. For **Header value**, enter:
    - `sdr` → when using the Zivver Encryption Gateway.
    - `smart-sdr` → when using the Zivver DLP Gateway.
23. Click SAVE.
24. Under **Route**, select **Change the route**.
25. Click on the **Normal route** dropdown menu.
26. Select the Zivver connector.

Tip

**Don’t have a connector for Zivver yet?**

Read [this manual](https://docs.zivver.com/en/admin/smtp/create-a-connector-google.html) for instructions on creating a connector in Google Workspace.

27. Click SAVE.
