How to set Attachment restriction by Size or Type

Modified on Wed, 17 May, 2017 at 4:10 PM

Set up rules for attachment compliance

As a G Suite administrator, you can set up compliance rules for message attachments, such as documents, video and sound files, images, and compressed files and archives. Rules specify conditions based on file type, file name, and message size. They also specify how to handle messages that meet the conditions.

For example, you can create rules to:


  • Reject messages whose attachments cause them to exceed 20 MB.
  • Detect whether the attachment is a video file, and if so, quarantine it for further inspection.
  • Modify a message by stripping its attachments and adding an advisory notice to the message.


You can also set up a rule to detect whether an attached document is encrypted. This distinction can be useful if you need to send unencrypted copies of message attachments to an archive server for regulatory purposes.


    Sign in to your Google Admin console.


    Sign in using your administrator account.

    From the Admin console dashboard, go to Apps >> G Suite >> Gmail  >> Advanced settings.


    Tip: To see Advanced settings, scroll to the bottom of the Gmail page.


    Scroll to the Attachment compliance setting in the Compliance section, hover over the setting, and click Configure. If the setting is already configured, hover over the setting and click Edit or Add another.


    For each new setting, enter a unique description.


Go to the next step to configure the setting as shown in link



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article