Deleting addresses from the Anti-Spam address denylist

Users who have been assigned the Administrator role can delete addresses from the Anti-Spam address denylist in Windows PowerShell.

You can:

To delete all records from the Anti-Spam address denylist:

  1. Run Windows PowerShell (Run as Administrator) and connect the Kse.Powershell library.
  2. Run command:

    Get-KSEAntiSpamBlackList -Server <server name> | Remove-KSEAntiSpamBlackListItem -Server <server name>

    where <server name> is the name of the protected Microsoft Exchange server. We recommend that you specify the full address of the server in FQDN format or the IP address. If you use any profiles to manage servers, you can replace -Server <server name> with -Profile <profile name>.

All records will be deleted from the address denylist on the server.

You can delete one or several records from the list. To do this, select the records that you need to delete, using filtering commands (see examples).

To delete all records found in the address denylist on Server 2 from the address denylist on Server 1:

  1. Run Windows PowerShell (Run as Administrator) and connect the Kse.Powershell library.
  2. Run command:

    Get-KSEAntiSpamBlackList -Server <Server 2 name> | Remove-KSEAntiSpamBlackListItem -Server <Server 1 name>

    where:

    • <Server 1 name> is the name of the server from which you want to delete records from the address denylist.
    • <Server 2 name> is the name of the server whose address denylist contains records that you want to delete from the address denylist on Server 1.

      If you use any profiles to manage servers, you can replace -Server <server name> with -Profile <profile name>.

All records that are also present on the address denylist on Server 2 will be deleted from the address denylist on Server 1.

You can delete one or several records from the list. To do this, select the records that you need to delete, using filtering commands (see examples).

Examples:

1. Clearing the address denylist on server.domain.com:

Get-KSEAntiSpamBlackList -Server server.domain.com | Remove-KSEAntiSpamBlackListItem -Server server.domain.com

2. Deleting records found in the address denylist of profilename from the address denylist on server.domain.com:

Get-KSEAntiSpamBlackList -Profile profilename | Remove-KSEAntiSpamBlackListItem -Server server.domain.com

3. Deleting records whose comments contain the word "obsolete" from the address denylist on server.domain.com:

Get-KSEAntiSpamBlackList -Server server.domain.com | Where-Object {$_.Comment -like "*obsolete*"} | Remove-KSEAntiSpamBlackListItem -Server server.domain.com

Page top