Office365 allows us to manage email with this system by modifying a series of DNS records in our domain. We will explain how to modify them and what records we need to add.
Firstly, to modify the records, we show you how in this guide: Modify DNS records of our domain
The records we must add are the following (note that the data provided by Office365 may be different):
domain.com MX domain-com.mail.protection.outlook.com Priority 0autodiscover.domain.com CNAME autodiscover.outlook.comsip.domain.com CNAME sipdir.online.lync.comlyncdiscover.domain.com CNAME webdir.online.lync.commsoid.domain.com CNAME clientconfig.microsoftonline-p.net
We add include:spf.protection.outlook.com to our SPF record.
And we add the following SRV records:
Service: _sip (we do not indicate the _)Protocol: _tls (we do not indicate the _)Priority: 100Weight: 1Port: 443sipdir.online.lync.com
Service: _sipfederationtls (we do not indicate the _)Protocol: _tcp (we do not indicate the _)Priority: 100Weight: 1Port: 5061sipfed.online.lync.com