Google Apps Email Security
by - Eric Curts
Table of Contents:
Before you begin: Putting Users in Organizations
Before you begin: Naming your Users
Accessing the Email Security Settings
Disabling Automatic Forwarding
Blocking Email to Other Domains
Advanced Rules with Content Compliance
Content Compliance Example - Blocking email to certain grade levels
Content Compliance Example - Blocking messages to email distribution groups
Alternate Example - Blocking email to certain grade levels
Watch the video training for this content here - Gmail Safety and Security for Schools - https://www.youtube.com/watch?v=DLOZq8kwVpU |
Google Apps provides a number of ways to manage and secure Gmail for your users. This is especially helpful for schools with students using Gmail. With Google Apps you are able to manage such things as:
The email security settings for Google Apps are applied by Organization. Therefore it is important to consider the Organizations you set up for your users. For example, a common Organization structure for schools might be to create a Org named “Students” and then sub-Orgs for each grade level. Or if you have multiple buildings you may want to make an Org for “Students” then sub-Orgs for each building, then sub-Org below those for each grade level.
The key is to put your users in well defined groups since you will be applying the email rules and filters to each Organization.
If you have already created your user accounts, this may not apply to you. However, if you are still setting up your users, now is a good time to consider the naming scheme. The reason for this is because many rules and filters rely on being able to match users based on an identifiable pattern. Even though rules are applied to Organizations, the rules are not able to match users based on the Org they are in.
For example, if all student usernames are simply the last name, followed by the first name, there will be no easy way to tell apart users from different grade levels. However, if you put their graduation year into their usernames, then you can use that to write rules and filters that match students based on their grade level.
For those that have already created users without considering this issue, all hope is not lost. Later we will see how you can use some tricks to match students even if their usernames do not distinguish them.
To access and edit the email security settings, you have to have administrative privileges for your Google Apps domain. To access the settings for Email Security:
By default Gmail allows users to change their theme by choosing from a wide range of images and colors. However, themes also allow the user to upload their own image or choose an image off of the Internet. If this is something you do not want your students to do, themes can be disabled as follows.
One simple setting to change is the ability for users to automatically forward their school email to a personal account. Often this is something you do not want students doing, to keep all school email discussions inside of your domain. There are other ways to block student email from leaving the domain (see later in the guide) but this method also removes the forwarding option in the first place.
Google Apps allows you to reject or modify email messages that contain specific words you have listed as objectionable. This allows you to simply block the message from being delivered, or to send it to a different account, such as one that can be monitored by certain staff members (principals, guidance, etc.)
For a sample list of objectionable words, feel free to use this list we have created:
The list is about 100 words long. It used to be longer but over time we have tried to remove words that were giving us false-positives. That is, words that could be used in multiple ways, including proper usage.
To access the settings for a bad word list do the following:
In Section #1, you will choose which messages to affect:
In Section #2, you will add the list of objectionable words.
In Section #3, you will choose to either reject, modify, or quarantine email messages that contain objectionable words.
If you wish to reject the message:
If instead you wish to modify the message:
An example of this use might be to add the words [Objectionable Content] to the subject line, and redirect the message to the principal’s account.
If instead you wish to quarantine the message:
When all done, click Add Setting or Save, and then Save changes.
One of the most common uses of the Gmail security settings is to manage where students can send email to and where they can receive email from. An easy way to control this is by specifying a list of approved domains for email. Any email sent to or received from these domains will be allowed.
To access these settings:
In Section #1, you will add the approved domains.
In Section #2, you can enter a rejection message to be sent for message not to or from these approved domains.
In Section #3, you can (and should) check the option to bypass these settings for internal messages. This will allow email to be sent to and received from users within your Google Apps domain.
If you need to set up rules and filters that are more specific, you may need to use the Content Compliance settings. These settings allow you to match messages on a wide variety of factors, and then reject or modify the messages as needed.
Examples for such use might include:
Several samples will be given in detail later, but for now here are the basics of using Content Compliance.
To access these settings:
In Section #1, you will choose which messages to affect:
In Section #2, you will add Expressions to describe the content you want to match.
In Section #3, you will choose to either reject or modify email messages that match the content.
If you wish to reject the message:
If instead you wish to modify the message:
If instead you wish to quarantine the message:
To get the most power out of the Content Compliance rules, you will want to learn how to use Regular Expressions. A Regular Expression (or regex) is a very specific code that can be used to make sophisticated matches. Google Apps uses a simpler subset of Regular Expressions, so some of the more advanced features are missing.
Below are links to several excellent resources to help learn Regular Expressions, especially in the context of Google Apps and Gmail:
A great feature of Google Apps Email Security is that you can test any regex as you write it to make sure it is working the way you planned. Once you type in your regex, click the link Test expression to open a window where you can type in examples and counterexamples to see if your regex functions as you have planned.
One example for using Content Compliance would be if you wish to restrict which grade levels students can send email to. For example say you only want students to send email to staff members and other students within their same grade level. You need a much more sophisticated method to match such messages. Below is an example of how Content Compliance and Regular Expressions could be used to solve this.
So basically we need a filter that says if the recipient does not match students in the same graduation year, and does not match a staff member, then reject the message. We would select the Organization that contains all students graduating in 2020, and we would create a Content Compliance filter like this:
To explain the Regular Expression (regex) here is what each of the part do:
As with all regular expressions there are probably several other ways the expression could be written.
Another example for using Content Compliance is to stop students from sending messages to email distribution groups (listservs). You may have email groups for staff, students, and parents, and you want any staff member to be able to send email to these groups, without having to be a part of each group. Therefore you need to allow anyone from the domain to send email to the group, not just members of the group. However, you do not want students to be able to send email to the groups, which is where Content Compliance filters can come in.
We could create a Content Compliance filter like this:
Earlier we mentioned the importance of naming users in such a way that it would be possible to distinguish between different grade levels, such as putting the graduation year in the students’ usernames. However, if you have not done this, there is still a workaround to be able to control which grade levels students can send email to.
In Google Apps Email Security you are able to add several types of filters, including one called "Append footer". This allows you to add some text onto the end of all email sent out by users of that specific Organization. So, what you can do is use the "Append footer" option to add something unique to the emails for each grade level that will identify any email sent by those students as being from that grade level. Then, you can create "Content compliance" filters for other organizations that look for that unique filter and then reject the ones they are not supposed to communicate with.
For example, let's say I have an organization called "Grade 1" that has all my first grade students. And let's say I do not want the 1st grade students to be able to send email to the high school students. Now technically I can't stop the 1st grade student from sending the email to a high school student, but I can now set a filter on the high school students that looks for and rejects any email that comes from a 1st grade student.
So for the "Grade 1" organization we add the Append footer filter with settings like this:
The key here is to come up with a very unique footer message that no one else would be likely to ever type into an email message, so that you can be sure it is only appearing for students of this grade level.
Now any time a student from the "Grade 1" organization sends an email message it will have ***Sent from Grade 1 account*** added to the bottom of their message.
So we can now use that unique text to key off of when creating a filter for the high school students. What we want to do is now create a Content compliance filter for our "High School" organization like this:
In Section #1, Messages to affect just choose Internal - receiving (since we are looking to block emails sent from 1st grade students to high school students)
In Section #2, choose:
For Section #3, choose Reject message.
So now if any student in the "High School" organization gets an email from a student in the "Grade 1" organization, the email will have unique text appended to the sent email that will match the "Content compliance" filter and trigger the rejection of the message. Of course you will want to tailor this to your specific organizations, but the process would be the same.
For more details and helpful information, see the Google Apps help page specific to email security settings:
For helpful resource to help teach students about email safety and digital citizenship, see the following resources:
© 2012-2016 - Eric Curts - ericcurts@gmail.com - www.ericcurts.com - plus.google.com/+EricCurts1 - @ericcurts
This document is licensed under a Creative Commons Attribution Non-Commercial 3.0 United States license. For more information about this license see http://creativecommons.org/licenses/by-nc/3.0/ (In short, you can copy, distribute, and adapt this work as long as you give proper attribution and do not charge for it.)
“Google Apps Email Security” - Page of