It sounds like your autodiscover records and perhaps your mx records got switched in your DNS when you setup your office 365 tenant. You can confirm this with mxtoolbox.com and see where everything is pointing. All of those connections are set through public dns.