Description
Exchange Online rejects Direct Send (RejectDirectSend $true): anonymous messages received on
the tenant MX endpoint whose envelope sender (5321.MailFrom) is one of the organization's
accepted domains are refused when they do not match an inbound connector (by sender IP address or
certificate).
Devices and applications that legitimately send as an internal address (printers, scanners, line-of-business applications, third-party services) go through a partner inbound connector restricted to their IP address or certificate, or through authenticated submission.
Rationale
Direct Send was designed for multifunction devices but needs no authentication at all. Attackers use it to drop phishing that carries an internal sender address straight on the MX endpoint; internal-looking messages get less scrutiny from users and some filters. Rejecting Direct Send removes this path while keeping legitimate senders on an explicit connector.
Impact
Every device or service that relies on Direct Send stops delivering mail as soon as the setting is on. Before the change, find these senders in message trace (anonymous inbound messages with an internal sender) and create a partner inbound connector for each of them. Microsoft plans to make rejection the default for new tenants; the control may move to the baseline profile then.
Audit
- There is no portal page for this setting. Connect to Exchange Online PowerShell as at least a Global Reader.
- Run (read-only):
Get-OrganizationConfig | Format-List RejectDirectSend Get-InboundConnector | Format-Table Name, Enabled, ConnectorType, SenderIPAddresses, TlsSenderCertificateName - Fail if
RejectDirectSendisFalse.
Remediation
- Identify the devices and services that use Direct Send: in the Exchange admin center, run a message trace on inbound messages whose sender is in an accepted domain and that were received anonymously, or ask the teams that own printers, scanners and applications.
- For each one, create a partner inbound connector in Mail flow > Connectors that identifies it by its public IP address or its TLS certificate.
- Connect to Exchange Online PowerShell as an Exchange Administrator and run:
Set-OrganizationConfig -RejectDirectSend $true - Watch message trace and NDRs for a few days for forgotten senders.
Rollback
Set-OrganizationConfig -RejectDirectSend $false.
References
- Set-OrganizationConfig (RejectDirectSend) Microsoft, vendor-doc, accessed 2026-10-24
- How to set up a multifunction device or application to send email using Microsoft 365 Microsoft, vendor-doc, accessed 2026-10-24
- Maester MT.1062 Maester, tool, accessed 2026-10-24
Mappings
| Framework | ID | Relation |
|---|---|---|
| NIST SP 800-53 Rev. 55.1.1 | SI-8 | related |
| NIST SP 800-53 Rev. 55.1.1 | SC-7 | related |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID |
|---|---|
| MITRE ATT&CK | T1566 |
Related controls
- related
CB-M365-MAIL-009Disable SMTP AUTH client submission for the organization - related
CB-M365-MAIL-036Require TLS and restrict partners on Exchange Online connectors
People and lifecycle
| Authors |
|
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-24, 2026-10-24 |
| Translations | fr |