Block emails sent outside your Office 365 organization

Created by Foetron Support, Modified on Mon, 28 Jun, 2021 at 10:52 AM by Foetron Support

To restrict all (or specific) users to sending only internal emails and block their emails when they’re sent to external recipients, follow the steps below:

  1. Log in to your Office 365 portal, then go to the Microsoft 365 admin center by clicking the Admin app.
    Admin app in Office 365
  2. In the Admin centers section, click Exchange.
    Admins centers - Exchange
  3. Then, in the Exchange admin center, click mail flow and then rules. Using the plus icon, add a new rule.
    Create a new rule in Exchange admin center
  4. In the new rule window, under the Apply this rule if section, select The recipient is locatedOutside the organization.
    The recipient is located outside the organization
  5. If you don’t want the rule to apply to all users, you can add another condition that narrows down its scope. To do so, click More options at the bottom of the window, and then click the add condition button (the button shows up once you have enabled more options). You can, for example, add a selected user group so that only its members won’t be allowed to send emails outside the organization.
    The sender is a member of a AD group
  6. In the Do the following section, select Block the messagereject the message and include an explanation.
    Block the message and include explanation
  7. Provide a short explanation that says why the email is blocked. Users will get this explanation along with an NDR message after trying to send an email outside the organization. You can also choose not to notify anyone and simply delete the message (by selecting the delete the message without notifying anyone option).
    Reject the message with the explanation
  8. Save the changes to the rule and test whether it works as expected. Note that it may take up to 30 minutes before the changes to the rule take effect.
    NDR message

That’s it. Now, if the users included in this rule try to send emails outside the Office 365 organization, these messages will be rejected, and the senders will get the notification that their email was blocked.

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