Security Policy Errors

Block Exchange Online Spam Without Sender Display Name Rules

Rana GarciaRana Garcia Nov 20, 2026 868 views

Question details

The user wants to block spam in Exchange Online when the sender display name begins with a space.

Block Exchange Online Spam Without Sender Display Name Rules
Product
Microsoft Exchange Online
Device & OS
not provided
Scenario
An administrator wants to create a mail-flow rule for messages with a leading space in the sender display name.
Observed behavior
Exchange Online mail-flow rules do not reliably offer a condition for blocking messages solely on that display-name pattern.
Before you start

Inspect a few spam messages to identify recurring sender addresses, domains, or other reliable characteristics. To change organization-wide rules, sign in with an account authorized to manage Exchange mail flow.

Solution 1Recommended

Create a mail-flow rule for a known sender or domain

Use a specific sender address or domain when it consistently identifies the unwanted messages.

This workaround does not match the leading space in the display name. Sender addresses can be spoofed, and broad domain rules can affect legitimate mail.

1
Open mail-flow rules

In the Exchange admin center, go to Mail flow > Rules and choose Add a rule.

2
Set the sender condition

Create a new rule and under Apply this rule if, select a sender address or sender domain condition. Enter the specific address or domain found in the spam messages.

3
Choose the action

Under Do the following, select an appropriate action, such as rejecting the message, and add any necessary exceptions.

4
Review and enable the rule

Review the conditions and exceptions, save the rule, and enable it if needed. Monitor mail flow to check that legitimate messages are not being blocked.

Create a mail-flow rule for a known sender or domain
Use narrow conditions: Avoid blocking a whole domain or address pattern unless you are confident it will not affect legitimate senders.
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative for everyday document, spreadsheet, and presentation work. Its familiar interface and Office format support make it easy to move existing files. It does not manage Exchange Online mail-flow rules or spam reporting.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXUse a familiar interface for everyday Office file tasksMove existing Office documents into a lightweight, easy-to-use suiteKeep spam-rule administration in Exchange Online while using WPS for document work
microsoft office alternative - wps office

Frequently Asked Questions

Can I block Exchange Online mail solely because the display name starts with a space?

Exchange Online mail-flow rules do not reliably provide a condition for that display-name pattern. Use a verified sender address, domain, header, or another available condition instead.

Where do I create a rule to block a sender?

In the Exchange admin center, go to Mail flow > Rules, add a rule, and choose a sender address or domain condition. Review the rule and exceptions before enabling it.

How do I report a spam message in Outlook?

Select the message and use Report or Junk > Report junk. The command name and reporting behavior can vary by Outlook version and organization settings.

Will reporting spam immediately block similar messages?

Not necessarily. Reporting sends the message for review according to your organization’s settings; use targeted Exchange rules or spam policies for additional protection.

Is blocking an entire sender domain always safe?

No. A domain block can also affect legitimate messages, and sender addresses may be spoofed. Check the messages and use narrow conditions or exceptions where appropriate.