You can move a website while keeping its email in Microsoft 365. The usual approach is to leave the email service and its DNS records alone, then change only what points visitors to the website. The important exception is when the old provider also runs your domain’s DNS. Cancelling that account or changing nameservers without preparing the new DNS zone can affect email, even when the mailboxes themselves never move.
Find out who controls each part
Before booking a switch, identify the domain registrar, the DNS host, the old website host and the Microsoft 365 administrator. One company might manage several of them. The registrar holds the domain registration, while the nameservers determine which DNS service is answering for the domain. The host serves the website. Microsoft 365 holds the mailboxes if that is where your business has set them up. Ask the provider who will still manage DNS when the old hosting plan ends. Confirm the answer before cancelling anything.
For example, a business might pay a hosting company for the website but use an independent DNS service and Microsoft 365. If the DNS service remains in place, the person making the switch usually needs to update only the records for the website. If the hosting account also pays for the DNS zone, the work is different. You need a copy of the whole zone, an agreed record-by-record comparison and a plan for when the new nameservers are made authoritative. The new host should not replace that information with its default web and email settings.
Know which records move and which stay
- Website records
- The domain itself and the
wwwname may point to the site using address records or aliases, depending on the new host and DNS provider. Confirm the exact records that should change, check both names and remove stale website addresses only as part of the agreed change. - Incoming mail
- The MX record sends incoming mail to your configured mail service. Leave the working route intact. If there is a filtering gateway or a hybrid environment in front of Microsoft 365, the public MX record may refer to that intermediary. Do not replace it with a generic Microsoft value.
- Outlook setup and sender authentication
- Preserve the existing Autodiscover, SPF, DKIM and DMARC settings where they apply, along with verification records and other services in the zone. SPF should remain a single record for the domain. If a new web service needs permission to send, ask whoever administers the domain to assess the sender and update the existing configuration rather than creating a second SPF record.
Use Microsoft’s DNS reference to understand the roles of the records. Values are specific to your setup. Work from your current working zone and the applicable tenant configuration, not from copied examples. A business with a gateway, split delivery, internal DNS or a signed DNS zone should have its administrator approve the cutover before work starts.
Test the website form as a separate mail route
A Microsoft 365 mailbox can keep receiving ordinary mail while the new website’s form quietly stops sending. That is because the website may have a separate delivery service. Some forms are delivered by the old hosting account or a plugin that depends on specific credentials. Find out how yours works before the move. Agree which authorised mail service will send on the new host, which mailbox gets the enquiry and where a failed send is recorded.
Test a submission with dummy details and a distinctive reference. Check that the message reaches the right inbox, that the reply goes to the test submitter and that the site does not show success on an invalid submission. Treat replies from a domain mailbox as different from the form’s outgoing mail. If the form also sends a customer receipt, test delivery of that receipt to an outside address. Do not pass around real passwords or customer details in screenshots used for the migration.
Make the change with a way back
- Before: Record the working DNS setup and take a website backup you can restore. Test the new site at its preview address and confirm who can make DNS changes. Agree how long to retain the old environment and what would trigger a rollback.
- During: Change only the agreed website records if the existing DNS host will stay. When the DNS host itself must change, confirm the full replacement zone first, including mail and any other services. Verify that the new website is available at the intended addresses and has a valid certificate.
- After: Send mail in and out using an external test address, reply to it and repeat the form test. Check any important shared inbox such as sales or billing. DNS changes can be visible at different times across networks. Keep the old site and any still-required DNS service available until the agreed checks are complete.
If the new site works but mail has stopped, compare the actual DNS answers with the saved configuration and get the mail administrator involved. If ordinary mail works and only the form fails, start with the form’s sending path and logs. Those two failures call for different checks. See our website migration checklist for the wider move, or bring your current setup to Wonkla hosting when you need help identifying what should stay put.