Deleting addresses from the white list of Anti-Spam addresses

Users who have been assigned the Administrator role can delete addresses from the white list of Anti-Spam addresses in Windows PowerShell.

You can:

To delete all records from the white list of Anti-Spam addresses:

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

    Get-KSEAntiSpamWhiteList -Server <server name> | Remove-KSEAntiSpamWhiteListItem -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 white list on the server or in the profile.

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 white list on Server 2 from the white list on Server 1:

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

    Get-KSEAntiSpamWhiteList -Server <Server 2 name> | Remove-KSEAntiSpamWhiteListItem -Server <Server 1 name>

    where:

    • <Server 1 name> is the name of the server on which you need to delete records from the white list.
    • <Server 2 name> is the name of the server on which the white list contains records that you need to delete from the white list on Server 1.

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

All records found in the white list on Server 2 will be deleted from the white list 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 white list on server.domain.com:

Get-KSEAntiSpamWhiteList -Server server.domain.com | Remove-KSEAntiSpamWhiteListItem -Server server.domain.com

2. Deleting records found in the white list of profile1 from the white list of profile2:

Get-KSEAntiSpamWhiteList -Profile profile1 | Remove-KSEAntiSpamWhiteListItem -Profile profile2

3. Deleting records with addresses ending with ".mail.com" from the white list on server.domain.com:

Get-KSEAntiSpamWhiteList -Server server.domain.com | Where-Object {$_.ItemValue -like "*.mail.com"} | Remove-KSEAntiSpamWhiteListItem -Server server.domain.com

4. Deleting records with addresses specified as a group of Active Directory user accounts, from the white list in profile profilename:

Get-KSEAntiSpamWhiteList -Profile profilename | Where-Object {$_.ItemType -eq "AdGroup"} | Remove-KSEAntiSpamWhiteListItem -Profile profilename

Page top