Security Policy Errors

How to Block Entire Top-Level Domains (TLDs) in Exchange Online

Chanuka GeekiyanageChanuka Geekiyanage Nov 3, 2026 870 views

Question details

The user needs a method to block all incoming emails from specific top-level domains (such as .info, .biz, .club, and .fun) across their organization.

How to Block an Entire Top-Level Domain in Exchange Online
Product
Exchange Online
Device & OS
not provided
Scenario
Administrators attempting to block spam or unwanted traffic originating from entire top-level domains rather than individual sender addresses.
Observed behavior
Exchange Online rejects standalone top-level domains in the standard domain-blocking field, displaying an SMTP domain validation message because it requires a fully qualified domain format.
Before you start

Ensure you have Exchange Administrator or Global Administrator privileges in your Microsoft 365 tenant to create and manage mail flow rules or anti-spam policies.

Solution 1Recommended

Create a Mail Flow Rule to Block TLDs

Use Exchange mail flow rules (transport rules) to identify and block incoming emails based on text patterns matching the sender's top-level domain extension.

Since the standard anti-spam block list requires complete domain names, a mail flow rule is the most effective native method to intercept emails from wildcard TLDs.

1
Access Exchange Admin Center

Log in to the Microsoft 365 admin center, expand 'Admin centers' on the left navigation menu, and select 'Exchange'.

2
Navigate to Mail Flow Rules

In the Exchange admin center, select 'Mail flow' from the left pane and then click on 'Rules'.

3
Create a New Rule

Click the '+' icon (or 'Add a rule') and select 'Create a new rule'. Assign a descriptive name to the rule, such as 'Block Specific TLDs'.

4
Set Sender Conditions

Under 'Apply this rule if', select 'The sender', then choose 'address matches any of these text patterns'. In the pop-up window, enter the TLDs you want to block (for example, \.info$ or \.biz$) and add them to the list.

5
Define the Block Action

Under 'Do the following', select 'Block the message', and then choose whether to reject the message with an explanation or delete it without notifying anyone. Save the rule and ensure its status is toggled to 'Enabled'.

Create a Mail Flow Rule to Block TLDs
Pattern Matching Setup: Using the dollar sign ($) in your text pattern ensures the rule only matches the end of the email address, preventing accidental blocks of valid domains that might simply contain the letters 'info' or 'biz' elsewhere.
Free Microsoft Office alternative

Looking for a Free Office Suite?

While managing your Microsoft 365 Exchange email environment, you might be looking for cost-effective productivity software for your team. WPS Office is a robust, lightweight, and completely free alternative to Microsoft Office, providing powerful tools for everyday document tasks.

  1. 1. Download the Installer: Visit the official WPS Office website and click the Free Download button.
  2. 2. Install WPS Office: Run the downloaded executable file and follow the on-screen prompts to complete the installation.
  3. 3. Open and Create: Launch the application to seamlessly open your existing Microsoft Office files or start creating new documents.
Seamlessly compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight application that runs smoothly on low-spec hardware.Built-in PDF editing, merging, and conversion features.Familiar ribbon interface requiring zero learning curve for users migrating from Microsoft Office.
QA img-9

Frequently Asked Questions

Why does Exchange Online reject '.info' as a standalone blocked domain?

Exchange Online's standard anti-spam domain block list uses strict SMTP domain validation. It requires a fully qualified domain name (like example.info) to precisely identify the sender's network, which is why isolated top-level extensions trigger a validation error.

Will blocking a top-level domain affect my legitimate emails?

Yes. If a legitimate client or vendor emails you from an address ending in a blocked TLD (like .biz or .online), their email will be rejected. It is recommended to add exceptions to your mail flow rule for trusted domains to prevent false positives.

Are mail flow rules the only method to block top-level domains?

Native to Exchange Online, mail flow rules (transport rules) are the best method to use text patterns or regular expressions to catch broad TLDs. Alternatively, third-party email security gateways configured in front of your Exchange tenant can also perform robust TLD blocking.