How to Blacklist/Block Sender Domain or an Email Address on Exchange


Exchange Server allows you to block (reject) emails from the unwanted sender domains or certain email addresses. This allows you to configure extra spam protection, if some spam mail outs are pass through your anti-spam system.
An Exchange administrator can block the delivery of emails sent from the certain external domains or addresses to the user mailboxes using ECP graphical interface or PowerShell (EMS).

Sender Filtering Agent in Exchange

You can enable sender filtering using the Sender Filter agent. Enable the sender filtering agent first:

Set-SenderFilterConfig -Enabled $true

If you need to filter only external senders, run this command:

Set-SenderFilterConfig -ExternalMailEnabled $true

Now you can specify the list of email addresses to be blocked. For example:

Set-SenderFilterConfig -BlockedSenders,,

You can block all senders from certain domains:

Set-SenderFilterConfig -BlockedDomainsAndSubdomains,,

To get the list of blocked email addresses, run the command:

Get-SenderFilterConfig |fl BlockedSenders,BlockedDomains,BlockedDomainsAndSubdomains

If you want to add new items to the list of blocked domains/addresses, use:

Set-SenderFilterConfig -BlockedSenders @{Add=""}


Set-SenderFilterConfig -BlockedDomainsAndSubdomains @{Add="","",""}

To remove the specific email addresses from the Exchange blacklist, run these commands:

Set-SenderFilterConfig -BlockedSenders @{Remove="","",""}

This will remove only the addresses you have specified but not the whole list.


Set-SenderFilterConfig –BlockedDomainsAndSubdomains @{Remove="","",""}

Tip. You can also block a whole IP subnet or a specific IP address:

Add-IPBlockListEntry -IPAddress

Be the first to comment

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.