Exchange Online security

Secure Direct Send with RejectDirectSend and Change Optics

Exchange Online can now reject anonymous messages that claim one of your accepted domains but are not attributed to an authorized connector. Inventory legitimate device and application traffic before enforcing that boundary.

An anonymous printer message stops at a protected gate, while an application message passes through an authorized connector into a mail cloud; a report identifies traffic before the change.
RejectDirectSend blocks the anonymous same-domain path; connector-attributed and authenticated paths remain distinct.View full-size illustration

Public RC note RelayBridge v1.0.0-rc.1 is available as an unsigned pre-release for evaluation and community testing. It is not the signed stable release. Check release status.

Last technically verified

Immediate answer

Discover first, authorize deliberately, then reject.

RejectDirectSend is an Exchange Online organization setting for rejecting anonymous messages whose SMTP envelope sender uses one of the tenant's accepted domains when the message is not attributed to an inbound connector.

That is narrower than “block every message sent directly to the tenant MX endpoint.” Ordinary internet mail from other domains and mail attributed to an authorized connector are different cases. A safe rollout begins by identifying legitimate Direct Send traffic and assigning each sender an authenticated or connector-attributed replacement.

Precise vocabulary

Direct Send is not every connection to Exchange Online port 25.

Microsoft defines Direct Send around anonymous mail that uses the organization's own accepted domain and targets recipients in that organization. The relevant sender is the P1 SMTP envelope address—not merely the visible header From value.

PathIdentityEffect of RejectDirectSend
Direct SendAnonymous; accepted-domain envelope sender; no connector attributionRejected when the setting is enabled
Connector SMTP relayAttributed through a matching certificate or configured source IPNot the anonymous Direct Send path when attribution succeeds
SMTP client submissionAuthenticated submission, normally on port 587Separate authenticated path
External internet senderAnother domain sending inbound mailNot Direct Send merely because it reaches the Exchange Online endpoint

Messages sent from subdomains can also be affected when the accepted-domain configuration matches subdomains. Review envelope domains and tenant accepted-domain settings before enforcement.

Security control

RejectDirectSend makes an implicit path explicit.

Without this control, anonymous systems can submit messages that appear to originate from an accepted domain and target mailboxes inside the tenant. SPF, DKIM, DMARC, anti-spam signals, and transport rules remain important, but they do not provide the same tenant declaration that anonymous same-domain Direct Send is unwanted.

Microsoft documents Set-OrganizationConfig -RejectDirectSend $true as the organization setting. Changing it requires the appropriate Exchange organization-configuration role. Do not enable it as a blind hardening toggle: printers, applications, monitoring systems, third-party services, and forgotten workflows may currently depend on Direct Send.

Connector attribution matters

An intended connector path can still be rejected if Exchange does not attribute the message to that connector. Test with message trace details and confirm the connector name rather than assuming that a configured connector matched.

Change evidence

Use the Change Optics DRS scenario as a discovery source.

Microsoft's Change Optics Report is available in the Exchange admin center under Reports → Mail flow. The DRS scenario surfaces sample messages with the characteristics expected to be affected by RejectDirectSend. The report can be filtered and its detail data exported for investigation.

It is a change-impact aid, not a permanent complete inventory guarantee. Correlate it with message trace, Defender evidence where licensed, application ownership, firewall or flow logs, and device configuration. A quiet report cannot prove that a quarterly job or dormant emergency device does not exist.

  1. 01

    Export the DRS examples

    Group by source, envelope sender, recipient, time, and responsible system.

  2. 02

    Verify business ownership

    Do not whitelist unidentified traffic merely because it currently delivers.

  3. 03

    Choose a supported replacement

    Use native OAuth, connector attribution, an internal-only service, or a controlled compatibility bridge according to the workload.

  4. 04

    Observe the reduction

    Confirm the old anonymous path disappears before enforcing rejection.

Staged enforcement

Move legitimate senders without creating broad exceptions.

Native modern authentication

Prefer the vendor-supported Microsoft OAuth path when the exact device or application version provides it.

Certificate or IP connector

Use connector attribution when the mail server can present an accepted-domain certificate or has a suitable exclusive static public IP and outbound port 25.

Transport-rule transition

Where Microsoft documents it as appropriate, quarantine or redirect suspect same-domain anonymous traffic while tightly controlling explicit exceptions. Treat this as policy design, not a substitute for sender identity.

Local compatibility service

For legacy clients, accept only authorized local sources and create a separate authenticated Microsoft-facing connection.

Test internal and external recipients, connector attribution, sender domains, subdomains, third-party services, failure visibility, and rollback. Keep the change record and named owner for every exception.

Product boundary

RelayBridge uses a different Microsoft-facing path.

RelayBridge accepts SMTP from explicitly configured local clients and submits to Exchange Online through OAuth-authenticated SMTP client submission over TLS on port 587. That Microsoft-facing connection is not anonymous Direct Send and does not require an inbound connector.

This can give selected legacy senders a migration path before Direct Send is rejected. It does not discover every Direct Send dependency, configure RejectDirectSend, or change tenant mail-flow policy on the administrator's behalf.

Clarifications

Frequently asked questions.

Does RejectDirectSend block all mail sent to our MX endpoint?

No. The control targets anonymous messages using an accepted-domain envelope sender without connector attribution. Microsoft distinguishes that from ordinary external inbound mail and properly attributed connectors.

Is SPF enough to secure Direct Send?

No single control should be treated as sufficient. SPF contributes sender-domain evidence, but RejectDirectSend provides an explicit tenant policy for the anonymous same-domain path.

Can we enable the setting if Change Optics is empty?

An empty DRS view is useful evidence but not proof that no infrequent workflow exists. Reconcile additional logs and system ownership, then use a controlled change and rollback plan.

Authoritative sources

References.

Understand the boundary

Review the architecture before evaluation.

See how RelayBridge separates local SMTP intake from modern Microsoft 365 delivery, and review the current security model and limitations.