Create a sending rule to apply a header to internal messages that identifies a user type (for example, teacher, elementary student, or high school student).
-
Sign in with an
administrator account to the Google Admin console.
If you aren’t using an administrator account, you can’t access the Admin console.
-
- On the left, select the organizational unit of the users that you want to apply the sending rule to, such as High School Students.
- Scroll to the Compliance section, point to the Content compliance setting, and choose an option:
- Click Configure.
- If the setting is already configured, click Edit or Add another.
- Add or update a description for the rule, such as Mark all messages sent by High School Students with high-school header.
- Under Email messages to affect, verify that only the Internal - sending box is checked.
A domain is internal if it is a verified workspace domain, or a subdomain or parent domain of a verified workspace domain.
- Under Add expressions that describe the content you want to search for in each message, select If ALL of the following match the message from the drop-down menu.
Note: No actual expressions should be added.
- Under Headers, check Add custom headers.
- Click Add.
- Under Add header, enter user-type for Header key and a name for Header value.
For example: X-user-type: high-school
- Click Save.
- Click Add Setting or Save to save the compliance setting.
Repeat the above steps for additional organizational units that you wish to prevent from sending messages to another organizational unit, such as middle school students.