Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Microsoft 365 Foundations v7.0.0 · 2.1.15

Outbound email should have sending limits configured

  • E3 Level 1
  • Microsoft Defender
  • Automated check

This check looks at the outbound spam policy in Microsoft Defender for Office 365 and whether it limits how many messages a mailbox can send per hour and per day, and what happens when a limit is reached. The safe setting is a limit that suits your organisation, with the policy blocking or alerting on a sender who goes over it.

Why it matters

When an attacker takes over a mailbox, the first thing they usually do is send spam or phishing to as many people as possible. A sending limit caps how much damage one compromised account can do before the mail is stopped, and it gives your team a signal that something is wrong. Without a limit, a single stolen password can push out a large mailbox-full of phishing mail from your own trusted domain, which damages the reputation of that domain for everyone in the company.

Microsoft describes outbound spam policies, their recipient limits and the action taken when a limit is reached on Microsoft Learn: Configure outbound spam filtering in EOP.

How to check it yourself

Portal path: Microsoft Defender portal → Email & collaboration → Policies & rules → Threat policies → Anti-spam → open the Anti-spam outbound policy (and any custom outbound policy) and read the external, internal and daily message limits plus the action to take when a limit is reached.

Read-only PowerShell, using the Exchange Online module. Both commands only read settings:

Connect-ExchangeOnline
Get-HostedOutboundSpamFilterPolicy |
  Format-List Name, RecipientLimitExternalPerHour, RecipientLimitInternalPerHour,
    RecipientLimitPerDay, ActionWhenThresholdReached, BccSuspiciousOutboundMail
Get-HostedOutboundSpamFilterRule | Format-Table Name, State, Priority

The setting is in place when every policy that applies to your senders has limits you have chosen on purpose and an action other than no action when the threshold is reached. Run this on a test tenant first if you are unsure what the output means.

How to fix it

Portal steps: in the Defender portal open the outbound anti-spam policy, choose Edit protection settings, set the external, internal and daily message limits to values that fit how your people really send mail, and set the restriction action so a sender who reaches the limit is blocked from sending and an admin is notified. Save the policy.

Scripted alternative. Review the values before you run it, because it changes your Exchange Online settings. ConfigCobra itself never changes your tenant; it only reads it and shows you this kind of fix:

# Set $ext, $int and $day to limits that suit your organisation
Set-HostedOutboundSpamFilterPolicy -Identity Default `
  -RecipientLimitExternalPerHour $ext `
  -RecipientLimitInternalPerHour $int `
  -RecipientLimitPerDay $day `
  -ActionWhenThresholdReached BlockUser

Work out the limits from how your people really send mail. Also check that the notification settings send alerts to an address someone actually reads.

What changes when you fix it

Most people never notice the change. The people who are affected are senders who legitimately mail many recipients: marketing or communications staff, shared mailboxes used for newsletters, and applications or scanners that relay mail through Exchange Online. If one of them goes over the limit while the action is set to block, that account stops sending until an admin releases it, which can interrupt a planned campaign or a system notification.

Before you tighten the limits, list who sends in bulk and raise the limit for them with a separate policy, or move bulk mail to a dedicated service. Tell your service desk what a blocked sender will see so release requests are handled fast. Inbound mail and the sending of normal day-to-day email are not affected.

Included in

BenchmarkCIS IDProfile
CIS Microsoft 365 Foundations v7.0.02.1.15E3 Level 1

Check this on your Microsoft 365

ConfigCobra runs this check with every other control of the CIS Microsoft 365 Foundations Benchmark, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial