Set up rules for advanced email content filtering

If you're looking for instructions and guidelines related to legal, security, and compliance concerns, go to Google Workspace legal and 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. For example, set up an outbound filter that detects the word confidential in outgoing messages.
  • 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.

Dynamic email: If you use content compliance rules and dynamic email for your organization, learn how compliance rules are applied to dynamic messages.

DLP for Gmail: You can create data loss prevention (DLP) rules to control sensitive content shared in Gmail by your users. Use rules to flag sensitive information and keep it from leaving your organization. For details, go to Prevent data leaks in email & attachments.

Compliance rules

Content compliance rules are based on predefined sets of words, phrases, text patterns, or numerical patterns. You can set up a simple match, advanced matches, and metadata matches. You might also be able to set up a predefined content match

Content compliance supports scanning text attachments and common attachment types, such as .docx, .xlsx, and .pdf, as well as non-ASCII characters. Both simple content and advanced content matches that apply to message body text will also apply to text extracted from attachments. Any rule that applies to the message body text also applies to the extracted text. 

Gmail attempts to convert binary attachments, such as Microsoft Word documents, to text. Any rule that applies to the message body text also applies to the converted text. Learn more about setting up rules for attachment compliance.

Compliance actions

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

How rules are applied

Unless you change the options, the rules apply to all users in an organizational unit. You can disable in a child organization any rules they inherit from a parent organization. You can also add multiple rules to each organization.

When you set up multiple rules, what happens to a message depends on the conditions you set and which rule has precedence. For details, read How multiple settings affect message behavior.

Enhance message security with hosted S/MIME

Depending on your edition, you can enchance message security with S/MIME. For example, add a rule that requires S/MIME encryption for outgoing messages. You can also use S/MIME-related metadata attributes in expressions. Do this by defining a metadata match when you add one or more expressions to specify what's searched. For an overview, see Enhance message security with hosted S/MIME.

Set up a content compliance rule

Configure additional parameters

To set up additional options for a routing policy, such as creating address lists or choosing the account types it will affect, at the bottom, click Show options.

Save the configuration

Define rules to handle confidential mode messages

Related information

 Best practices for faster rules testing

 


Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.

 

Was this helpful?

How can we improve it?
12843252173737572941
true
Search
Clear search
Close search
Main menu
Search Help Center
true
true
true
true
true
73010
false
false
false
false