Security Policy Errors

Should You Use the @ Symbol When Blocking Domains in Microsoft 365 Defender?

Phi Hung VoPhi Hung Vo Oct 19, 2026 868 views

Question details

The user needs to know the correct syntax regarding the use of the '@' symbol when adding block entries in Microsoft 365 Defender.

Should You Include the @ Symbol When Blocking Domains in Microsoft 365 Defender?
Product
Microsoft 365 Defender
Device & OS
not provided
Scenario
Configuring security policies to block unwanted or malicious domains and email senders.
Observed behavior
The user is unsure whether to include the '@' symbol to successfully block an entire domain versus a specific email sender.
Before you start

Ensure you have the necessary administrator permissions (such as Security Administrator) in your Microsoft 365 tenant to modify the Tenant Allow/Block Lists.

Solution 1Recommended

Apply Correct Formatting for Domains and Email Addresses

Use specific syntax depending on whether you are blocking an entire domain or an individual email address.

When managing the Tenant Allow/Block Lists in Microsoft 365 Defender, the system distinguishes between full domains and individual senders based on the syntax you provide.

Using the incorrect format can result in policy errors or the block rule failing to trigger on incoming malicious emails.

1
Block an Entire Domain

To block all incoming mail from a specific domain, enter only the domain name without the @ symbol. For example, type 'example.com' to block the entire domain.

2
Block a Specific Email Address

To block an individual sender, include the @ symbol along with the full email address. For example, type 'user@example.com'.

3
Access the Block List

Log in to the Microsoft 365 Defender portal, navigate to 'Email & collaboration' in the left menu, and select 'Policies & rules'.

4
Add the Block Entry

Click on 'Threat policies', select 'Tenant Allow/Block Lists', navigate to the 'Domains & addresses' tab, and click 'Block' to add your properly formatted entries.

Apply Correct Formatting for Domains and Email Addresses
Syntax Warning: Including the '@' symbol before a domain name (e.g., '@example.com') is an invalid format for domain blocking and will result in a validation error.
Free Microsoft Office alternative

Enhance Your Daily Productivity with WPS Office

While you rely on Microsoft 365 Defender for your enterprise security, you might also need a fast, reliable, and cost-effective office suite for your document tasks. WPS Office provides a powerful, free alternative to Microsoft Office, ensuring seamless format compatibility and an intuitive user experience without the hefty subscription fees.

  1. 1. Visit the Official Website: Go to the official WPS website to access the latest free download.
  2. 2. Download the Installer: Click the 'Free Download' button to get the installation package for your operating system.
  3. 3. Install and Launch: Run the installer, follow the on-screen prompts, and launch WPS Office to start viewing and editing your Microsoft Office documents instantly.
Fully compatible with Microsoft Office formats, including Word, Excel, and PowerPoint files.Free, lightweight design that ensures fast installation and rapid document loading.Familiar user interface that requires zero learning curve for effortless migration.Built-in advanced PDF editing, conversion, and annotation tools.
microsoft office alternative - wps office

Frequently Asked Questions

What happens if I accidentally use the @ symbol when trying to block a whole domain?

Microsoft 365 Defender will either reject the entry as an invalid email format during setup, or the rule will fail to block the intended domain because it expects a valid username before the @ symbol.

Can I use wildcards to block subdomains in Microsoft 365 Defender?

Yes, you can use an asterisk to block subdomains (e.g., '*.example.com'). However, just like with standard domains, you must not include the @ symbol when configuring wildcard domain blocks.

How long does it take for a new domain block to take effect?

Once you successfully add a domain or email address to the Tenant Allow/Block List with the correct syntax, it typically takes up to 5 minutes for the block to become fully active across your organization.