# (L1) Ensure outbound anti-spam message limits are in place (Default policy only)

The default outbound spam policy sets sensible recipient limits, restricts a user who reaches them, turns on outbound spam notifications and names a…

Source: https://maester.dev/docs/tests/CIS.M365.2.1.15

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/jeremyfinney-lgtm" title="jeremy finney · Original author"><img src="https://github.com/JeremyFinney-lgtm.png" alt="jeremy finney" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/jeremyfinney-lgtm">jeremy finney</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/cis">CIS</a> · Defender · Anti-spam · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId CIS.M365.2.1.15
```

## Overview

The default outbound spam policy sets sensible recipient limits, restricts a user who reaches them, turns on outbound spam notifications and names a notification recipient.

A compromised mailbox is usually used to send phishing or spam to a large number of recipients. Recipient limits stop the burst early, and blocking the user, instead of only alerting, stops the abuse and protects your sending reputation.

The default value of 0 means that the service uses its own limits and is not accepted. Set values at or below 500 external recipients per hour, 1000 internal recipients per hour and 1000 recipients per day, and the action to **Restrict the user from sending mail**. The test checks only the default outbound spam policy, as specified by CIS 2.1.15. It also checks that this policy turns on outbound spam notifications and names at least one notification recipient. It cannot tell whether that mailbox is monitored, so confirm that someone reads its messages. Microsoft recommends the alert policy **User restricted from sending email** for admin notifications, and this outbound policy setting is being deprecated.

#### Remediation action

1. Sign in to the [Microsoft Defender portal](https://security.microsoft.com).
2. Go to **Email & collaboration** > **Policies & rules** > **Threat policies** > [**Anti-spam**](https://security.microsoft.com/antispam) and open the **Anti-spam outbound policy (Default)**.
3. Select **Edit protection settings**.
4. Set **External message limit** to 500 or less, **Internal message limit** to 1000 or less and **Daily message limit** to 1000 or less.
5. Set **Restriction placed on users who reach the message limit** to **Restrict the user from sending mail**. In the **Notifications** section, turn on **Notify these users and groups if a sender is blocked due to sending outbound spam**, add a monitored mailbox, then select **Save**.

#### Related links

* [Microsoft Defender portal - Anti-spam policies](https://security.microsoft.com/antispam)
* [Configure outbound spam filtering in EOP](https://learn.microsoft.com/defender-office-365/outbound-spam-policies-configure)
* [CIS Microsoft 365 Foundations Benchmark v7.0.0 - 2.1.15](https://www.cisecurity.org/benchmark/microsoft_365)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | CIS.M365.2.1.15 |
| Severity | Medium |
| Suite | CIS |
| Product | Defender |
| Feature | Anti-spam |
| Area | Email and collaboration protection |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1534 Internal Spearphishing |
| Supports benchmark | CIS Microsoft 365 Foundations Benchmark (version 7.0.0), requirement 2.1.15 |
| Benchmark level | L1 |
| Benchmark profiles | E3 Level 1 |
| Supports controls | cis-m365:2.1.15, nist-800-53-r5:AC-4 |
| PowerShell test | [Test-MtCisOutboundSpamLimit](https://github.com/maester365/maester/blob/main/tests/cis/Test.CIS.M365.2.1.15.ps1) |
| Services | ExchangeOnline |

</details>

## Source

- Test: [`tests/cis/Test.CIS.M365.2.1.15.ps1`](https://github.com/maester365/maester/blob/main/tests/cis/Test.CIS.M365.2.1.15.ps1)
- Documentation: [`tests/cis/Test.CIS.M365.2.1.15.md`](https://github.com/maester365/maester/blob/main/tests/cis/Test.CIS.M365.2.1.15.md)
