Good morning,
I do have the need to remove a specific x-header on an Exchange Edge server.
I know that I could use the header firewall but the problem is that this header is being set by our antivirus running on Edge and the vendor is not able to remove this header right now.
New-TransportRule, parameters -Name "Test" -RuleErrorAction "Ignore" -Comments "" -StopRuleProcessing "False" -Mode "Enforce" -FromScope "InOrganization" -SenderAddressLocation "Header" -RemoveHeader "X-AV-HEADER-WHICHNEEDSTOBEREMOVED"
results in the following error:
New-TransportRule : A parameter was specified that isn't valid on an Edge Transport server.At line:1 char:1
+ New-TransportRule Test -Mode "Enforce" -SentToScope "NotInOrganization" -SetAudi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (SentToScope:String) [New-TransportRule], ArgumentException
+ FullyQualifiedErrorId : [Server=DEMUC-SRVEDGE6,RequestId=65900a08-1284-4207-a1d4-20dc9ab5419e,TimeStamp=01.02.20
16 12:29:41] [FailureCategory=Cmdlet-ArgumentException] 7DA8A79C,Microsoft.Exchange.MessagingPolicies.Rules.Tasks.
NewTransportRule
I need a rule which applies to all e-mails leaving edge to the internet.
Any ideas?
Thank you.
Kind regards
Carsten