Exchange Server – Anti-Spam Recipient Filtering

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: You can keep adding email addresses to the list for what you require. Something to […]

Exchange Server Anti Spam Recipient Filtering

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  

Comments

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.

🛠️

Gear We Recommend

A few general tech accessories worth having alongside this.

Browse our General Tech Accessories picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.