Create Content Compliance Rule - Monitoring
Learn how to create a monitoring content compliance rule in the Google Workspace.
The first content compliance rule is used to monitor all outgoing emails.
Summary
Prerequisites
In the Nightfall UI, navigate to Integrations > click the Manage button for Gmail integration.


Content Compliance
Step 1: Setup Host and Route
The steps to create content compliance rule are as follows.
Login to Google Workspace with an admin account > navigate to the Admin console.
From the left menu, Apps > Google Workspace > Gmail > Hosts > click ADD ROUTE

Name: (Anything)
Host Name:
2r2xfv8u7uz5.fips.qbns.mail-manager-smtp.amazonaws.comPort: 25
Click Save.

Step 2: Setup "Email Messages to Affect"
Under Settings for Gmail, scroll down and click Compliance.

Navigate to Content Compliance > click ADD ANOTHER RULE. NOTE: If you have not created any Compliance rule previously, the button might be displayed as CONFIGURE.

Enter a name for the compliance rule, such as "Nightfall DLP".
Navigate to Email messages to affect:
Select Outbound
Select Internal - Sending

Step 3: Add Expressions
In step 2 of the content compliance rule, select:
If ALL of the following match the message
Add two expressions in step 2 of content compliance rule. Click ADD.

Set the following settings within the "Add setting" dialog box:
Change Simple Content Match > Advanced Content match.
Location: Select Sender header
Match type: Select Matches Regex
Regexp: Copy from Nightfall Gmail > Monitoring Content Compliance Rule header:
For a single domain:
.*@<your-domain>\.<suffix>$
For more than one domain:
(.*@<your-domain>\.<suffix>$|.**@<your-domain>\.<suffix>$)
Regexp: Adjust the regular expression to match your organization name. See example below.
Click SAVE.

Add a second Expression under the same area by clicking Add.
Change Simple Content Match > Advanced Content match.
Location: Select Full headers
Match type: Select Not Contains text
Content: From Nightfall Gmail > Full Header > copy/paste the Header field:
"x-nightfall-scanned"
Click SAVE.


Step 4: Modify Message and Add Custom Headers
In step 3, select Modify message.
Under the Headers section, select the Add X-Gm-Original-To header check box.
Select the Add custom headers check box. The Custom headers section is displayed once you select this check box.
Click ADD under Custom headers to add a new custom header.

There are two fields; Header key and Header value.

From the other tab for the Nightfall Console for Nightfall Gmail, copy/paste:
Messaging Modification: Authentication field value > paste into Header Key
Messaging Modification: Nightfall UUID field value > paste into Header value
Click SAVE.

Scroll down to the Route section
select Change Route
click the dropdown
select the routing rule created in the Content Compliance Rule section (step 5).

Scroll to the Encryption (onward delivery only) section
select Require secure transport (TLS).
Click SAVE.

Last updated
Was this helpful?