Block Exchange Online Spam Without Sender Display Name Rules
Question details
The user wants to block spam in Exchange Online when the sender display name begins with a space.

- 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.
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.
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.
In the Exchange admin center, go to Mail flow > Rules and choose Add a rule.
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.
Under Do the following, select an appropriate action, such as rejecting the message, and add any necessary exceptions.
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.

Report missed spam to Microsoft
Report messages that reach the inbox so Microsoft can review them and improve spam detection.
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.

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.




