Add BCC rules
- Log in to the Google Admin Console ↗.
 - On the sidebar, go to Apps > Google Workspace > Gmail > Compliance.
 - Go to Content Compliance > Select Edit.
 - Add a Content Compliance filter, and name it 
Email Security - BCC. - In Email messages to affect, select Inbound.
 - Select the recipients you want to send emails to Email Security via BCC. Under Add expressions that describe the content you want to search for in each message:
- Select If ANY of the following match the message.
 - Select Add to configure the expression.
- Select Advanced content match.
 - In Location, select Headers + Body.
 - In Match type, select Matches regex.
 - In Regexp, input 
.*. You can customize the regex as needed and test within the admin page or on sites like Regexr ↗. - Select SAVE.
 
 
 - In If the above expressions match, do the following:
- Select Modify message.
- Ensure that Envelope recipient > Change envelope recipient is unselected, so that emails will not be dropped as an unintended consequence. You will select this option at a later stage.
 - Go to Also deliver to, select Add more recipients > ADD > Choose Advanced:
- Under Envelope recipient, select Change envelope recipient > Replace recipient > Enter the service address. This is the service address you copied and pasted in step 5 when connecting your domains.
If you did not copy and paste the service address:
- In Zero Trust ↗, go to Email Security.
 - Go to Settings and locate your domain under Your domains.
 - Select the three dots > View domain > Service address. Copy and paste the service address.
 
 - Under Spam and delivery options, select Suppress bounces from this recipient.
 - Under Headers, select Add X-Gm-Spam and X-Gm-Phishy headers.
 - Select SAVE.
 
 - Under Envelope recipient, select Change envelope recipient > Replace recipient > Enter the service address. This is the service address you copied and pasted in step 5 when connecting your domains.
If you did not copy and paste the service address:
 
 
 - Select Modify message.
 - In Account types to affect, select Users and Groups.
 - Select SAVE.
 
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Directory
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- © 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark