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:

SetSenderFilterConfig 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:

GetSenderFilterConfig

Blacklist2

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

SetSenderFilterConfig BlockedDomains microsoft.com,gmail.com

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

SetSenderFilterConfig 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=(GetSenderFilterConfig).BlockedDomains
$list.add("domain1.com")
$list.add("domain2.com")
$list.add("domain3.com")
SetSenderFilterConfig BlockedDomains $list

If you are adding individual addresses:

$list=(GetSenderFilterConfig).BlockedSenders
$list.add("bob@gmail.com")
$list.add("john@gmail.com")
SetSenderFilterConfig BlockedSenders $list

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

SetSenderFilterConfig BlockedDomains @{Remove="gmail.com"}

Or:

SetSenderFilterConfig 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:

SetSenderFilterConfig 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:

GetSenderFilterConfig

Blacklist2

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

SetSenderFilterConfig BlockedDomains microsoft.com,gmail.com

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

SetSenderFilterConfig 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=(GetSenderFilterConfig).BlockedDomains
$list.add("domain1.com")
$list.add("domain2.com")
$list.add("domain3.com")
SetSenderFilterConfig BlockedDomains $list

If you are adding individual addresses:

$list=(GetSenderFilterConfig).BlockedSenders
$list.add("bob@gmail.com")
$list.add("john@gmail.com")
SetSenderFilterConfig BlockedSenders $list

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

SetSenderFilterConfig BlockedDomains @{Remove="gmail.com"}

Or:

SetSenderFilterConfig 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.