Prevent unwanted email with a content compliance rule

Problem

How can you create a content compliance rule to filter out an unwanted email, such as a known phishing email?

Environment

  • Gmail

Solution

  1. Log in to the Admin console.
  2. Navigate to Apps > Google Workspace > Gmail > Compliance.
  3. Enter email messages to affect.
  4. Add one or more expressions to specify what's searched.
    • You can add up to 10 expressions. You must add and save each expression separately.
  5. Specify what happens if expressions match.