Exchange Online mailbox governance · Deploy

Lock down forwarding, shared mailboxes and app access

Forwarding off with exceptions, shared mailbox sign-in blocked, SMTP AUTH off by default, and apps scoped.

Duration
3 to 5 weeks
Effort
About 5 to 8 person-days
Complexity
Medium
Beyond E5
Nothing beyond Microsoft 365 E5

Who's in the room: Exchange administrator (owner), identity administrator, security operations lead, app and device owners, service desk

On this page

Overview

The outbound spam policy controls automatic external forwarding for everyone or for groups through separate policies; with forwarding off, forwarded messages bounce with a non-delivery report. Shared mailboxes are blocked from sign-in through their user accounts. SMTP AUTH can be disabled for the organization and enabled for specific mailboxes. RBAC for Applications assigns an app a role over a resource scope, so it can only reach the mailboxes it needs.

Technically, you set the default outbound spam policy's forwarding to Off and create a custom policy for exception groups, block sign-in on shared mailbox accounts, disable SMTP AUTH organization-wide and enable it per mailbox for exceptions, and replace broad app permissions with RBAC for Applications role assignments over management scopes.

You'll end up with: Forwarding off for everyone except named exceptions, shared mailboxes protected, SMTP AUTH limited, and apps reaching only the mailboxes they need.

If you skip it: Without these changes, a compromised account can quietly forward mail, shared mailboxes stay open to password attacks, and a compromised app can read every mailbox.

Before you start

The path to this playbook

  1. Plan Exchange Online mailbox governance
  2. Lock down forwarding, shared mailboxes and app access (you are here)
  • Plan Exchange Online mailbox governance: Decisions on forwarding, shared mailboxes, delegation, SMTP AUTH and app access, based on what's in use today.
  • Have the plan and exceptions
    How to do it

    The changes follow the decisions and exception list from Plan Exchange Online mailbox governance.

    Who: Exchange administratorProduces: The approved plan

  • Tell affected people
    How to do it

    Tell people with forwarding today that it will stop, and app and device owners when their change is scheduled.

    Who: Exchange administratorProduces: Notices sent

Rollout approach: By risk tier · Pilot size: Forwarding and shared mailboxes first; SMTP AUTH and apps after testing with owners. Starting with forwarding and shared mailbox sign-in closes the routes attackers use most, while app and SMTP AUTH changes, which can break processes, follow after owners have tested.

Pilot to production

4 phases
  1. Turn off external forwarding1 week

    Set the default outbound spam policy to Off for forwarding, and create a separate policy for the exception group.

    Who: Exchange administratorProduces: Forwarding off with exceptions

    Move on when A test forward from a normal mailbox bounces, and one from the exception group works.

    How to do it

    Remote domain settings also affect forwarding; keep them consistent with the policy so the result isn't ambiguous.

    Watch out for (1)
    • If you: Turn forwarding off without checking existing rules

      What tends to happen: People who relied on forwarding lose mail silently from their point of view, and the service desk is flooded

      A better approach:

      Tell people with forwarding first, and offer approved alternatives such as mobile access

  2. Block sign-in to shared mailboxes1 week

    Block sign-in for every shared mailbox account, and move any process that signs in to permissions instead.

    Who: Identity administrator with the Exchange administratorProduces: Shared mailbox sign-in blocked

    Move on when No shared mailbox account can sign in, and its users still work through their own mailboxes.

    How to do it

    People access a shared mailbox through their own licensed mailbox with Full Access and Send As or Send on Behalf. The shared mailbox's own account isn't meant for sign-in.

    Watch out for (1)
    • If you: Block sign-in without checking scripts and devices

      What tends to happen: A scanner or script that signed in as the shared mailbox stops working

      A better approach:

      Find what signs in as each shared mailbox first, and move it to a supported method

  3. Limit SMTP AUTH1 to 2 weeks

    Turn SMTP AUTH off for the organization and on only for the mailboxes on the exception list, after testing with their owners.

    Who: Exchange administrator with app and device ownersProduces: SMTP AUTH limited to exceptions

    Move on when Only exception mailboxes have SMTP AUTH, and their apps and devices still send.

    How to do it

    If security defaults are on, SMTP AUTH is already disabled. An authentication policy that blocks Basic authentication for SMTP stops SMTP AUTH even when it's enabled for a mailbox, so plan for OAuth where the device supports it.

    Watch out for (1)
    • If you: Re-enable SMTP AUTH for everyone when one device breaks

      What tends to happen: The exposure returns for every mailbox

      A better approach:

      Enable it only for the mailbox that device uses, and plan its move to OAuth or a connector

  4. Scope app access1 to 2 weeks

    For each app that reads or sends mail on its own, replace broad permissions with an RBAC for Applications assignment over a scope of mailboxes.

    Who: Exchange administrator with app ownersProduces: Apps scoped to their mailboxes

    Move on when Each app reaches only its scoped mailboxes, tested with its owner.

    How to do it

    Management scopes select mailboxes with a filter on their properties; Microsoft recommends using administrative units directly on the role assignment where possible.

    Watch out for (1)
    • If you: Scope the app and leave its broad permission in place

      What tends to happen: The broad permission still grants access to every mailbox

      A better approach:

      Remove the broad grant once the scoped assignment is tested

Alongside every phase:

Keep the exception list in one place, with owners and review dates, and give the service desk the routes for requesting an exception.

What keeps it in place:

Each setting applies across the organization: forwarding attempts bounce, shared mailbox sign-ins fail, SMTP AUTH fails for mailboxes not enabled, and apps can't reach mailboxes outside their scope.

How you'll know it's working

4 measures

Capture a baseline before you start, or you won't be able to show the change.

Measures, where you see them, and the direction that means success
MeasureWhere you see itGood direction
Mailboxes forwarding externally without an exceptionExchange reports Down
Shared mailboxes with sign-in allowedEntra ID Down
Mailboxes with SMTP AUTH enabledExchange Online PowerShell Down
Apps with unscoped mail accessEntra ID app permissions Down

Take it with you

plan, gate checks, 1 template

Plan outline: phases and when to move on

  1. Turn off external forwarding (1 week). Move on when: A test forward from a normal mailbox bounces, and one from the exception group works.
  2. Block sign-in to shared mailboxes (1 week). Move on when: No shared mailbox account can sign in, and its users still work through their own mailboxes.
  3. Limit SMTP AUTH (1 to 2 weeks). Move on when: Only exception mailboxes have SMTP AUTH, and their apps and devices still send.
  4. Scope app access (1 to 2 weeks). Move on when: Each app reaches only its scoped mailboxes, tested with its owner.

Gate checks: questions to answer before each phase ends

Before leaving Turn off external forwarding

  • Does a test forward bounce for normal mailboxes?

Before leaving Block sign-in to shared mailboxes

  • Can any shared mailbox account still sign in?

Before leaving Limit SMTP AUTH

  • Is SMTP AUTH enabled only for exception mailboxes?

Before leaving Scope app access

  • Was each app's broad permission removed after scoping?

Change notice to app owners

On [date], [change: SMTP AUTH off / app access scoped]. Your app [name] uses [mailbox]. Please test by [date]. If it stops sending or reading, contact [owner].

Microsoft Learn

6 links

Contributor

Compare notes or suggest an improvement

Your message goes straight to Sev Derghazarian.

What would you like to do?

Subject:

The send button is enabled once the spam check below completes.

Changelog

Changelog (1 version)
Published versions of this playbook
VersionDateByChange
1Sev DerghazarianFirst draft.