---
title: Set up rules for advanced email content filtering
description: Email content compliance
---

[Skip to content](https://support.econz.net/customer/set-up-rules-for-advanced-email-content-filtering#main-content)

English

Show submenu for translations

[Customer portal](https://support.econz.net/portal?hsLang=en)

![logo.jpg\]](https://support.econz.net/hs-fs/hubfs/logo.jpg?height=40&name=logo.jpg)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Customer portal](https://support.econz.net/portal)
- Go to Econz Website

 Go to Econz Website

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://support.econz.net/customer?hsLang=en)
2. [Google Workspace](https://support.econz.net/customer/google-workspace?hsLang=en)
3. [Security](https://support.econz.net/customer/google-workspace?hsLang=en#security)

# Set up rules for advanced email content filtering

## Email content compliance

As an administrator, you can set up rules to handle messages that contain content that matches one or more expressions. This advanced email filtering is called content compliance.

For example, you can:

- Reject outgoing messages that might contain sensitive company information.
- Set up a metadata match on a range of IP addresses, and quarantine messages from IP addresses outside of the range.
- Route messages with content that matches specific text strings or patterns to your legal department.

Content compliance rules are based on predefined sets of words, phrases, text patterns, or numerical patterns. You can set up simple matches, advanced matches, and metadata matches.

When a message matches a content compliance rule, you can specify one of these actions:

- Reject the message
- Quarantine the message
- Deliver the message with modifications

Also, we can configure content compliance based on the OU level.

#### **How to set up content compliance.**

**1)Go to content compliance settings in the admin console**

- In the admin console, go to Menu\> Apps\> Google Workspace\> Gmail\> Compliance
- Select the Organizational Unit
- Scroll down to the content compliance settings and click configure, If the setting is already configured, hover over the setting and click Edit or Add another.
- For each new setting, enter a unique description.
- Go to the next step to configure the setting.
  
  ![](https://lh6.googleusercontent.com/NjNqvbCk2NLLNRXWjcZzPIWsSHRALrUjkGyTQ77ubX2e0SkPZkj7JCxVrA_6rJNOJFAGexXBcCY4D-TiUynt8PAnLlct4yF0ytm1ja0xcAcMAVxojA7WWKRswj6p-Ad1m2jNpVzFc-dHV3sGTBPE_m0)

**2)** **Enter email messages to affect**

You can set up the rule for inbound, outbound, or internal messages. Internal messages are sent and received within the domains and subdomains associated with your organization

Check the boxes next to the messages you want the rule to apply to.

                 ![](https://lh6.googleusercontent.com/tTYOEiPj2vN2O6GB93DoPsrhkSBR1XplwBHDrArKos5o8x-6oAqqj8S7Akz8OStt85Po4DJyl3daHQhHqtLVu9I9xAANROTjnHDm8HGdPDUXZiSSWmcFnPJKNHYpSXXGqWT-7Ca0iNm_b8KHCDL2d_4)

**3)** **Add one or more expressions to specify what's searched**

- From the list, specify whether any or all conditions must match to trigger what happens to the message. For example, if you select **If ANY of the following match the message**, any matching condition can trigger the consequence to the message.
- Click **Add**.
- From the list, choose the type of match you want to use for the expression:

1. 1. **Simple content match**: Simple content matching works like the [search function in Gmail](https://support.google.com/mail/answer/6593).
     2. **Advanced content match**: Select the Location of the text within the message and the Match type, and enter the content to search.
     3. **Metadata match**: Select the attribute to match and the Match type. If needed, enter the Match value.
     4. **Predefined content match**: Select one of the predefined content detectors, such as a *Credit Card Number* or *Social Security Number* (for the US).

- **Click Save.**

                   **![](https://lh3.googleusercontent.com/bMu5sHqlURyDHbEipyUb-SKY4aMIZjR4aumb_diun9jvDuqa5MvDjLtOu7HIGX3Orjke3ZxdTJcpSX4bbIcb3oFJ-t2i7DtSeOvOxZiVhTz9bvcf9V6vaz3EZc6kt1-MiytNMeAc0kfrdOBFAf9xeqw)**

**4) Specify what happens if expressions match**

- Specify whether to modify, reject, or quarantine a message when conditions are met. (Details below.)
- Configure the options for the action you choose.
- (Optional) Click Show options to configure additional options to limit the application of this setting.
  
                ![](https://lh3.googleusercontent.com/AWdYN_DVqBlo6XsW2LAP1n_-igkb_2Sn3RblY40SrGDvyQMrLNBbHeqld4-GdMtaOP_VoWcfd0mPowXNognjHc5DCNtCDor2eJQXheNhhOOP9zrvh3zKFTshykp_cFR33r2DBgjTec75YUTWIQo2Gns)
  
  Configure additional parameters such as Address lists or account type to affect and **SAVE** the settings

Please check the supporting article for reference

[Content Compliance](https://support.google.com/a/answer/1346934?hl=en#zippy=%2Cstep-go-to-gmail-compliance-settings-in-the-google-admin-console%2Caccount-types-to-affect-required%2Cenvelope-filter%2Cstep-enter-email-messages-to-affect%2Cstep-add-one-or-more-expressions-to-specify-whats-searched%2Cstep-specify-what-happens-if-expressions-match%2Cfinal-step-add-and-save-the-setting)

 

- [Google Workspace](https://support.econz.net/customer/google-workspace?hsLang=en#main-content)

    - [Reset and recover passwords](https://support.econz.net/customer/google-workspace?hsLang=en#reset-and-recover-passwords)
    - [Email issue](https://support.econz.net/customer/google-workspace?hsLang=en#email-issue)
    - [catch-all address](https://support.econz.net/customer/google-workspace?hsLang=en#catch-all-address)
    - [Download Google Data](https://support.econz.net/customer/google-workspace?hsLang=en#download-google-data)
    - [Gmail](https://support.econz.net/customer/google-workspace?hsLang=en#gmail)
    - [MX Records](https://support.econz.net/customer/google-workspace?hsLang=en#mx-records)
    - [Company Logo](https://support.econz.net/customer/google-workspace?hsLang=en#company-logo)
    - [Sharing drive files to the trusted domains](https://support.econz.net/customer/google-workspace?hsLang=en#sharing-drive-files-to-the-trusted-domains)
    - [Mobile Device Management](https://support.econz.net/customer/google-workspace?hsLang=en#mobile-device-management)
    - [Restrict emails based on a size](https://support.econz.net/customer/google-workspace?hsLang=en#restrict-emails-based-on-a-size)
    - [Create Google Calendar Event](https://support.econz.net/customer/google-workspace?hsLang=en#create-google-calendar-event)
    - [less secure app](https://support.econz.net/customer/google-workspace?hsLang=en#less-secure-app)
    - [Drive & Docs](https://support.econz.net/customer/google-workspace?hsLang=en#drive-docs)
    - [Users](https://support.econz.net/customer/google-workspace?hsLang=en#users)
    - [Install GCPW](https://support.econz.net/customer/google-workspace?hsLang=en#install-gcpw)
    - [Add email aliases for user from google admin console](https://support.econz.net/customer/google-workspace?hsLang=en#add-email-aliases-for-user-from-google-admin-console)
    - [Set up Google Workspace user signatures in Gmail](https://support.econz.net/customer/google-workspace?hsLang=en#set-up-google-workspace-user-signatures-in-gmail)
    - [Add or remove printers](https://support.econz.net/customer/google-workspace?hsLang=en#add-or-remove-printers)
    - [New updates to Google Workspace](https://support.econz.net/customer/google-workspace?hsLang=en#new-updates-to-google-workspace)
    - [DNS](https://support.econz.net/customer/google-workspace?hsLang=en#dns)
    - [DNS Records](https://support.econz.net/customer/google-workspace?hsLang=en#dns-records)
    - [Admin roles](https://support.econz.net/customer/google-workspace?hsLang=en#admin-roles)
    - [Security](https://support.econz.net/customer/google-workspace?hsLang=en#security)
    - [Forms & Surveys](https://support.econz.net/customer/google-workspace?hsLang=en#forms-surveys)
    - [password](https://support.econz.net/customer/google-workspace?hsLang=en#password)
    - [Calendar](https://support.econz.net/customer/google-workspace?hsLang=en#calendar)
    - [Google vault](https://support.econz.net/customer/google-workspace?hsLang=en#google-vault)
    - [har file](https://support.econz.net/customer/google-workspace?hsLang=en#har-file)
    - [Cloud Data Sync](https://support.econz.net/customer/google-workspace?hsLang=en#cloud-data-sync)
    - [LDAP](https://support.econz.net/customer/google-workspace?hsLang=en#ldap)
    - [Routing](https://support.econz.net/customer/google-workspace?hsLang=en#routing)
    - [Data Migration](https://support.econz.net/customer/google-workspace?hsLang=en#data-migration)
    - [Organizational Unit(OU)](https://support.econz.net/customer/google-workspace?hsLang=en#organizational-unitou)
    - [License and subscription](https://support.econz.net/customer/google-workspace?hsLang=en#license-and-subscription)
    - [GWSMO](https://support.econz.net/customer/google-workspace?hsLang=en#gwsmo)
    - [Report and Audit](https://support.econz.net/customer/google-workspace?hsLang=en#report-and-audit)
    - [SMTP](https://support.econz.net/customer/google-workspace?hsLang=en#smtp)
    - [GWMME](https://support.econz.net/customer/google-workspace?hsLang=en#gwmme)
    - [password sync](https://support.econz.net/customer/google-workspace?hsLang=en#password-sync)
    - [Google Sites](https://support.econz.net/customer/google-workspace?hsLang=en#google-sites)
    - [Google services](https://support.econz.net/customer/google-workspace?hsLang=en#google-services)
    - [jamboard](https://support.econz.net/customer/google-workspace?hsLang=en#jamboard)
    - [Google Add-ons](https://support.econz.net/customer/google-workspace?hsLang=en#google-add-ons)
    - [GCPW](https://support.econz.net/customer/google-workspace?hsLang=en#gcpw)
    - [Keep](https://support.econz.net/customer/google-workspace?hsLang=en#keep)
    - [outlook](https://support.econz.net/customer/google-workspace?hsLang=en#outlook)
    - [Devices](https://support.econz.net/customer/google-workspace?hsLang=en#devices)
    - [Apps](https://support.econz.net/customer/google-workspace?hsLang=en#apps)
    - [Spam, phishing, and malware](https://support.econz.net/customer/google-workspace?hsLang=en#spam-phishing-and-malware)
    - [Windows](https://support.econz.net/customer/google-workspace?hsLang=en#windows)
    - [Meet Hardware](https://support.econz.net/customer/google-workspace?hsLang=en#meet-hardware)
    - [user settings](https://support.econz.net/customer/google-workspace?hsLang=en#user-settings)
    - [Google takeout](https://support.econz.net/customer/google-workspace?hsLang=en#google-takeout)
    - [Chrome Device Management](https://support.econz.net/customer/google-workspace?hsLang=en#chrome-device-management)
    - [networks](https://support.econz.net/customer/google-workspace?hsLang=en#networks)
    - [Chrome Enterprise Management](https://support.econz.net/customer/google-workspace?hsLang=en#chrome-enterprise-management)

[![](https://support.econz.net/hs-fs/hubfs/econz%20logo.png?width=600&height=164&name=econz%20logo.png)](http://econz.cloud)

Help Center

Copyright © 2026, Econz IT Services Pvt Ltd