Exchange Server – Anti-Spam Recipient Filtering


Last updated on April 1st, 2023 at 08:40 pm

Read Time:57 Second

If you want to add multiple specific email addresses to your Exchange Anti-Spam Recipient Filtering then you can use Exchange Management Shell to run a command to add comma separated multiple email addresses.

The command you should run is this:

 Set-RecipientFilterConfig -BlockedRecipients [email protected],[email protected],[email protected]  

You can keep adding email addresses to the list for what you require.

Something to keep in mind though, when you use this method, it will remove whatever you have in the list currently. To get around this you can use this script:

 $Configuration = Get-RecipientFilterConfig  
 $Configuration.BlockedRecipients += "[email protected],[email protected],[email protected]"  
 Set-RecipientFilterConfig -BlockedRecipients $Configuration.BlockedRecipients  

If you want the shell command to enable the recipient filtering then you can use this:

 Set-RecipientFilterConfig -BlockListEnabled $true  

To block messages to recipients that don’t exist in your organization, run the following command:

 Set-RecipientFilterConfig -RecipientValidationEnabled $true  


If you have any questions or comments on this guide, please feel free to leave us a message below using our comments system and we will try to get back to you as soon as we can.

Avatar for Andrew Armstrong

About Post Author

Andrew Armstrong

Founder of TechyGeeksHome and Head Editor for over 15 years! IT expert in multiple areas for over 23 years. Sharing experience and knowledge whenever possible! Making IT Happen.
Click to rate this post!
[Total: 0 Average: 0]

Free Subscription

If you want to be notified when we post more quality guides like this one, sign up to our free subscription service and you will receive an email when a new post is live.

Join 545 other subscribers.

No need to worry, we will not be filling your inbox with spam and you can unsubscribe anytime you like.

Leave us a message...

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