04-24-2025 12:54 PM
We have a customer that is migrating to Office365.
Emails are received as Relay from O365, since there are users on both the old and new system and emails need to flow back and forth. However also emails from other domains to the customer domain come in through the relay. I've had O365 setup a special header for sourced emails from the customer domain. But I'm not seeing how I can move emails to the inbound process, when the sending domain is not the customer.
Any suggestions would be appreciated...
04-24-2025 01:16 PM
04-24-2025 01:31 PM
These are on-prem ESA's.
04-24-2025 01:44 PM
04-24-2025 02:21 PM
In our case the ESA is used both for inbound and outbound security.
So far we have traffic being delivered correctly for the customer's domain both ways.
I'm just concerned with external traffic coming from O365 destined to the customer, that is not correctly filtered, since it's not handled as incoming traffic.
Also I still have a concern with outbound O365 traffic, that is not coming from the customer domain. So far, I have not seen it, and we have a block in place, but am still concerned for things falling over within O365, as it's beyond our control.
04-24-2025 02:48 PM
04-24-2025 03:52 PM
Yes, we only have one listener interface. Though I don't see that making a difference for receiving emails from O365.
The "fall over" reference is in regards to when configuration changes are done on O365 and unintended traffic flow is activated. We never know when changes are made.
Our customer uses an "onmicrosoft.com" subdomain, not sure why you need that blocked specifically, as I see also private domains coming from O365...
04-24-2025 08:09 PM
04-25-2025 11:55 AM
First of all there is no Exchange server in play here. (The legacy server is a Domino server and will be retired.)
Secondly, the ESA remains to be used for O365 outbound verification.
Regardless of the amount of listeners, O365 can only be detected by the sender QDN "protection.outlook.com". The complication is that this is independent of the sender domain. We have no way to know at HAT level (sender group selection) if the O365 is Outbound or Inbound traffic. That's why my original question was, if it was possible to redirect the process flow from outbound to inbound mail processing.
Hope this helps clear up my conundrum.
Thank you, Chris Klomp
647-837-4158
Shift: 11:00 - 19:00 EST
04-25-2025 12:35 PM
Yes...that helps to clear the confusion.
How mail is treated is based on the listener type, that got set at creation.
You can create new ones with the required types, but this is how the ESA decides how to deal with mail...
There's also the Mailflow policy that is applied to a SenderGroup.. that policy might be set to Relay, and if your traffic hits that, its treated as "outbound"...
What I'm missing is why your internal traffic from O365 is being treated differently from MY traffic to you from my O365... generally it would all be "inbound". Then on that listener, there'd be a sendergroup with a mail flow policy that's set for Relay, and the IPS of your internal mail servers would be the only thing in it... Every thing else should hit a Sendergroup for "inbound" mail.
04-25-2025 12:43 PM - edited 04-25-2025 12:43 PM
So if I am reading it right, you are expecting only email from the domain to come in this relay, but in the chance they mess up and more come through to your domain you want it processed as an incoming flow.
Depending on how you want to do it, you could make a new listener, or you may be able to break the flow off to the current incoming listener.
1: make an outbound mail policy saying basically recipient is @mydomain.com. This will break it into a new flow in case they send to multiple recipients.
2: From this make a content filter that sends to a alternate host and apply to this flow. Set the alternate host to your inbound IP. Assuming it is standard port 25.
Another option is to do a separate listener to use.
1: create a new public listener on another port ie2525 or something.
2: do the 2 steps above, but set the alt server as a DNS name. IE redirect.mydomain.com
3: under network -> SMTP routes, set the receiving domain redirect.mydomain.com to destination host <IP>:<Port> of the new listener.
With this you have a different flow of content filters etc you can use. Hope that makes sense.
04-25-2025 12:43 PM
The problem with O365 is that the SenderGroup for O365 is the same for traffic from different SenderDomains.
Traffic for my customer's SenderDomain should be treated as Relay and the rest should be treated as Inbound. However multiple SenderDomains are coming from the same SenderGroup.
04-25-2025 01:14 PM
so office is sending multiple domains through the interface?
So take what I said, but instead of the recipient being @mydomain.com, set it to sender does not end with @mydomain.com That will break off any email not from the domain specified into another flow and then you can redirect them.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide