BlackList Senders and Sender Domains

Hi Everyone,

Here is my another Microsoft Exchange post “BlackList Sender domains and individual senders”

Hi Everyone,

Here is my another Microsoft Exchange post “BlackList Sender domains and individual senders”

IMPORTANT:The main problem of using Set-SenderFilterConfig cmdlet is that each time it is run, it completely rewrites (clears) the current block list. To avoid it, each time you have to add a new address/domain to this list, get the current Block List of addresses, add a new one to it and upload it back to Exchange.

The blacklist in Exchange 2013 is configured on Mailbox or Edge Transport server with the installed Exchange anti-spam protection.

The filter based on the Sender filtering checks if the address is in the black list. To edit the black list of addresses, the cmdlet SenderFilterConfig is used. The command has the following syntax:

Set-SenderFilterConfig -BlockedDomains Marketion.ru

After running this command, all messages from senders in Marketion.com domain will not be received by the Exchange users regardless of their contents or attachments.

Blacklist1

You can view the current contents of domains blacklist using this command:

Get-SenderFilterConfig

Blacklist2

If you have to add several domains to the BlackList at once, the command will look like this:

Set-SenderFilterConfig -BlockedDomains microsoft.com,gmail.com

To add a certain email address to the SenderFilter block list, use BlockedSenders parameter:

Set-SenderFilterConfig -BlockedSenders d.rusov@yahoo.com

To add several domains to the Exchange white list (without clearing current list entries), you can use the following script:

$list=(Get-SenderFilterConfig).BlockedDomains
$list.add("domain1.com")
$list.add("domain2.com")
$list.add("domain3.com")
Set-SenderFilterConfig -BlockedDomains $list

If you are adding individual addresses:

$list=(Get-SenderFilterConfig).BlockedSenders
$list.add("bob@gmail.com")
$list.add("john@gmail.com")
Set-SenderFilterConfig -BlockedSenders $list

To delete one entry from the white list of senders, run this command:

Set-SenderFilterConfig -BlockedDomains @{Remove="gmail.com"}

Or:

Set-SenderFilterConfig -BlockedSenders @{Remove="bob@gmail.com"}

IMPORTANT:The main problem of using Set-SenderFilterConfig cmdlet is that each time it is run, it completely rewrites (clears) the current block list. To avoid it, each time you have to add a new address/domain to this list, get the current Block List of addresses, add a new one to it and upload it back to Exchange.

The blacklist in Exchange 2013 is configured on Mailbox or Edge Transport server with the installed Exchange anti-spam protection.

The filter based on the Sender filtering checks if the address is in the black list. To edit the black list of addresses, the cmdlet SenderFilterConfig is used. The command has the following syntax:

Set-SenderFilterConfig -BlockedDomains Marketion.ru

After running this command, all messages from senders in Marketion.com domain will not be received by the Exchange users regardless of their contents or attachments.

Blacklist1

You can view the current contents of domains blacklist using this command:

Get-SenderFilterConfig

Blacklist2

If you have to add several domains to the BlackList at once, the command will look like this:

Set-SenderFilterConfig -BlockedDomains microsoft.com,gmail.com

To add a certain email address to the SenderFilter block list, use BlockedSenders parameter:

Set-SenderFilterConfig -BlockedSenders d.rusov@yahoo.com

To add several domains to the Exchange white list (without clearing current list entries), you can use the following script:

$list=(Get-SenderFilterConfig).BlockedDomains
$list.add("domain1.com")
$list.add("domain2.com")
$list.add("domain3.com")
Set-SenderFilterConfig -BlockedDomains $list

If you are adding individual addresses:

$list=(Get-SenderFilterConfig).BlockedSenders
$list.add("bob@gmail.com")
$list.add("john@gmail.com")
Set-SenderFilterConfig -BlockedSenders $list

To delete one entry from the white list of senders, run this command:

Set-SenderFilterConfig -BlockedDomains @{Remove="gmail.com"}

Or:

Set-SenderFilterConfig -BlockedSenders @{Remove="bob@gmail.com"}

Leave a Reply

Your email address will not be published. Required fields are marked *

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