For information, please see the link below for the range of IP Addresses that you may need to define as Inbound Servers in CMN or permit through firewalls when working with Office 365.
Please see this external link from Microsoft that details the Office 365 IP Address Ranges:
https://docs.microsoft.com/en-us/office365/enterprise/urls-and-ip-address-ranges