Synchronizing black / white lists of Anti-Spam addresses

You can synchronize white and black lists on different Microsoft Exchange servers or in different profiles using combinations of commands intended for adding addresses to a white / black list and deleting addresses from white / black list of Anti-Spam addresses.

Lists are synchronized by replacing a list with another one. Synchronization comprises two stages:

  1. Deleting all records from the list that needs to be synchronized with another one
  2. Adding all records from the second list to the first one, which is blank

    Examples:

    1. Synchronizing the white list on server2.domain.com with the white list on server1.domain.com:

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

    Get-KSEAntiSpamWhiteList -Server server1.domain.com | Add-KSEAntiSpamWhiteListItem -Server server2.domain.com

    2. Synchronizing the black list in profile2 with the black list in profile1:

    Get-KSEAntiSpamBlackList -Profile profile2 | Remove-KSEAntiSpamBlackListItem -Profile profile2

    Get-KSEAntiSpamBlackList -Profile profile1 | Add-KSEAntiSpamBlackListItem -Profile profile2

Page top