Forum Discussion
Jude Perera
Nov 28, 2018Copper Contributor
3rd Party Gateway, Exchange hybrid and message header
Hi team, I would like to know and clarify a scenario. Imagine there is a hybrid in place. In the exchange online to on-premise mail routing path, lets say there is a 3rd party spam gateway in the m...
boneyfrancis
Nov 30, 2018Iron Contributor
That's right, this is not a supported scenario. One of the consequences, as you rightly identified, is the stripping of certain X-headers which causes the 'X-MS-Exchange-Organization-AuthAs' header to get stamped as 'Anonymous'.
This can be overcome by creating a transport rule in your on-premise Exchange to stamp "X-MS-Exchange-Organization-AuthAs: Internal" (for mails matching a pattern that proves it's originating from O365). However that's not the only issue you'll notice, which is why this setup is not supported in the first place. I'd recommend by-passing the spam filter for all mail traffic between on-premise hybrid servers and O365.