I am trying to hide internal hostname from outgoing email through an Exchange Send Connector and have used the following command, as per a few blogs, including this one http://exchangepedia.com/2008/05/removing-internal-host-names-and-ip-addresses-from-message-headers.html
However, when I run the command from Exchange Management Console I get errors, as shown below.
r "AVG AntiSpam Outbound" | Remove-ADPermission -AccessRight ExtendedRight -Ext
ng -user "NT AUTHORITY\Anonymous Logon"
Are you sure you want to perform this action?
Removing Active Directory permission "AVG AntiSpam Outbound" for user "NT AUTHORITY\Anonymous Logon" with access rights
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y
WARNING: Can't remove the access control entry on the object "CN=AVG AntiSpam Outbound,CN=Connections,CN
Routing Group (DWBGZMFD01QNBJR),CN=Routi
ng Groups,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Admin
C=local" for attribute "ExtendedRight
)" because the ACE isn't present.
I have used ADSIedit to check the object is present but not sure how to investigate after this and am hoping someone has experience if this? Please help.
The OS of the Exchange server and DC is Windows 2012 R2 and the AD is at the latest Windows 2012 version.