• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Block top level domains in Exchange Server

Slipstick Systems

› Exchange Server › Block top level domains in Exchange Server

Last reviewed on February 8, 2018     10 Comments

You can block top level domains(such as .ru, .cn) at Exchange server. Just don't block domains you'll might get legitimate email from.

In Exchange 2007 and Exchange 2010, you'll add domains to block on the Organization Configuration, Hub Transport, Anti-spam tab, Sender Filtering.

After adding the domains to the list, choose how the message should be handled on the Action tab: Reject message or Stamp it with blocked sender and continue processing.

After setting up the domains, right click on Sender Filtering and choose Enable, to enable the Sender Filtering rule.

Exchange 2007 Sender filtering dialog

Exchange 2003

In Exchange 2003, open the Exchange System Manager, expand your organization, Global Settings, right click on Message delivery and choose Properties. Add the domains you wish to block on the Sender filtering tab, using one of these formats:
alias@spammerdomain.com
*@spammerdomain.*
*@spammerdomain.com
*@*.spammerdomain.com
Sender filter in Exchange 2003
Because many spammers use fake addresses or domains, you may want to enable accept messages without notifying sender of filtering to reduce NDR traffic.

Filtering messages with blank subjects may filter read receipts.

You'll also need to enable the Sender filter on the SMTP server.
Enabled Sender Filtering on the Exchange 2003 SMTP server

Block top level domains in Exchange Server was last modified: February 8th, 2018 by Diane Poremsky

Related Posts:

  • While on a business trip I received a frantic call from my daughter be
    Block common email aliases
  • Exchange 2003 SP2 adds a couple of new features. One of the most talke
    Using Exchange Server's Sender ID
  • As you may know, Exchange 2003 can be configured to block emails sent
    Exchange Server's Tarpit Time Key
  • Filtering Email by Region in Exchange Server

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
10 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Pronoy Konar
May 21, 2019 10:10 am

At an organization level, if I am wanting to set up a filter in my mail server, which only allows specific domains to send e-mails to my organization from, how do I go ahead and set this up. Example: My trusted domain is XYZ.com and the untrusted domain is XYZUSA.com and if I receive any e-mail from XYZUSA.com instead of XYZ.com, the mail box automatically filters that to the spam e-mail folder and only allows mails from XYZ.com. Can this be done for multiple domains?

0
0
Reply
Mehrdad
September 20, 2017 11:17 am

In the opening paragraph you had indicated "filtering top level domains(such as .ru, .cn) at Exchange server. However, Exchange does not provide any facility to do so. You can filter specific domains, individuals, but not .ru, or .us, etc. Would you please elaborate on how exactly the top level domains are filtered? Thank you.

0
-1
Reply
Diane Poremsky
Author
Reply to  Mehrdad
February 1, 2018 12:11 am

That applies to Exchange 2007 and 2010 - unfortunately, i no longer have either server to check, but i believe you put the domain in as .ru in Organization Configuration, Hub Transport, Anti-spam tab, Sender Filtering.

0
0
Reply
pucherprencis
March 11, 2015 10:58 am

Thank you Stefan, good idea.

0
0
Reply
Riccardo
February 11, 2015 9:54 am

Thank you Marshall. I'm giving a try to your hint: hope it will work.

0
0
Reply
Marshall
February 3, 2014 6:02 pm

Working with Exchange 2007. When trying to block all messages from the .eu TLD, I enter in .eu, and it tells me that is not a valid SMTP domain. I enter a sender as *@*.eu, and I get the same error. If I enter the domain as "eu" (without quotes), it accepts it, but it does not filter the messages out. I found that the only way to filter was with a Transport Rule (Exchange Management Console>Organization Configuration>Hub Transport>Transport Rules tab> New Transport Rule. Set the condition to "when the From address contains text patterns" and set the pattern to the TLD in question (i.e., .biz, or .eu). Set the action to whatever you feel is appropriate (i.e., Silently drop the message).

0
0
Reply
Stephen
Reply to  Marshall
June 27, 2014 4:26 pm

Marshall thank you, I was wondering if your suggestion works (after so many months) and were you using just ".eu or .cn" or was it like a wild card " *@*.cn" thank you.

0
0
Reply
Stefan
Reply to  Marshall
March 11, 2015 7:52 am

I am using the following regular expression in Exchange 2010 transport rules:

@\w*.ru(.ru)*$

Same for quite a few other domains.
The double usage of .ru is because otherwise it wouldn't block test@ru.ru
Works good!

0
0
Reply
Chris Frazier
December 6, 2012 10:27 am

The instructions for 2003 are not valid. In the sender filtering tab addresses must be entered in the form of "some name", name@spammer.domain, or @spammer.domain. You can not enter @*.in for example. What most of us are looking for is a way to block all .in or .ru top level domains for countries we do not do business with.

0
0
Reply
Diane Poremsky
Reply to  Chris Frazier
December 6, 2012 10:38 am

Try *@*.in, *@*.ru - it should work. You also need to enable sender filtering on the SMTP server, which I failed to mention. (I no longer have a running Ex2003 server to verify that it works with the TLD, rather than individual domains within a TLD. (*@*something.ru).)

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 30 Issue 33

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

:wpds_smile::wpds_grin::wpds_wink::wpds_mrgreen::wpds_neutral::wpds_twisted::wpds_arrow::wpds_shock::wpds_unamused::wpds_cool::wpds_evil::wpds_oops::wpds_razz::wpds_roll::wpds_cry::wpds_eek::wpds_lol::wpds_mad::wpds_sad::wpds_exclamation::wpds_question::wpds_idea::wpds_hmm::wpds_beg::wpds_whew::wpds_chuckle::wpds_silly::wpds_envy::wpds_shutmouth:
wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment