How to block a message from being sent or received based on the file name extension of the attachment in Office 365

Article translations Article translations
Article ID: 2795329 - View products that this article applies to.
Expand all | Collapse all

INTRODUCTION

This article describes how to block a message from being sent or received in Microsoft Office 365 based on the file name extension of the attachment.

PROCEDURE

You can block a message from being sent or received if the file that's attached to the message has an extension that's currently not blocked by Office 365. To do this, create a transport rule by using one of the following methods, as appropriate for your situation.

Note The rule doesn't apply to scenarios in which users change the file name extension before they send the message.

To create a transport rule to block messages based on the file name extension of the attachment in Office 365, follow these steps:
  1. Sign in to the Office 365 portal (https://portal.office.com).
  2. Click Admin, and then click Exchange.
  3. In the left navigation pane, click mail flow, and then click rules.
  4. Click New (
    Collapse this imageExpand this image
    A screen shot of the New icon
    ), and then click Create a new rule.
  5. In the New Rule window, click More options.
  6. In the Name box, specify a name for the new rule.
  7. Click the *Apply this rule if drop-down list, point to Any attachment, and then click File extension includes these words.
  8. In the Specify words or phrases window, type the file name extension of any attachment that you want to block, and then click the plus symbol (
    Collapse this imageExpand this image
    A screen shot of the plus symbol
    ) to add the file name extension to the list. When the list is completed, click OK.
  9. Click the *Do the following drop-down list, point to Block the message, and then click Reject the message and include an explanation or click Delete the message without notifying anyone.

    If it's required, add a statement to inform users who will receive the non-delivery report (NDR) of the reason that mail delivery failed, and then click OK.
  10. Specify any additional options such as rule auditing and rule activation or deactivation time, and then click Save.

Still need help? Go to the Office 365 Community website.

Properties

Article ID: 2795329 - Last Review: August 12, 2014 - Revision: 14.0
Applies to
  • Microsoft Exchange Online
Keywords: 
o365 o365a o365p o365e o365022013 o365m kbgraphic KB2795329

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com