Why separate email from web hosting
Many small businesses still run on free mailboxes or the mailboxes bundled with their website hosting. That works until you change hosting, the shared server lands on a blocklist because of another customer, or you need aliases, shared mailboxes and access from several devices. Moving business email on your custom domain to a dedicated platform such as Google Workspace or Microsoft 365 separates two services with different needs: the website can move servers without touching mail, and vice versa.
Technically the split is simple: the domain's MX records say where mail is delivered, while A and CNAME records say where the website lives. For a refresher on how these records fit together, our technical guide to DNS, domains and hosting starts from the basics.
Google Workspace or Microsoft 365: how to choose
Both platforms offer mail, calendar, storage and video calls at comparable per-user prices. The decision mostly depends on how your team works:
- Productivity tools: if you use desktop Word and Excel, files with macros or shared templates, Microsoft 365 causes less friction. If you work in the browser on shared documents, Google Workspace is more straightforward.
- Devices: with centrally managed Windows PCs, Microsoft 365 integrates better; with Macs, Chromebooks or mixed fleets the gap narrows.
- Administration: Google's admin console is more compact; Microsoft's admin center has more options but takes longer to learn.
- Clients and suppliers: if you often exchange complex Office files, working in the native format avoids conversion issues.
For a small firm already working in desktop Office, we would choose Microsoft 365. For small teams that live in the browser, Google Workspace needs less maintenance.
MX records: what they are and where to set them
The MX record tells mail servers worldwide which server should receive email for your domain. You edit it in the DNS panel of whoever hosts the zone: the registrar, the web host or a service such as Cloudflare.
Values for Google Workspace
Google specifies a single MX record with value smtp.google.com and priority 1. Accounts set up before 2023 may still use the older records starting with aspmx; Google says no change is needed if mail is working. Remove every other MX record, because leftover or incorrect records can stop delivery.
Values for Microsoft 365
In Microsoft 365 the MX value is specific to your domain and must be copied from the admin center under Settings > Domains > DNS records. The documentation specifies host @, the highest available priority (typically 0) and a TTL of 3600 seconds. The autodiscover CNAME is also recommended, as it configures Outlook automatically.
SPF and DKIM for the new platform
SPF and DKIM prove to recipients that messages come from servers your domain has authorised. Without them, company mail is more likely to land in spam or be rejected.
- SPF for Google Workspace:
v=spf1 include:_spf.google.com ~all. - SPF for Microsoft 365:
v=spf1 include:spf.protection.outlook.com -all.
A domain must have only one SPF record: RFC 7208 returns a permanent error when it finds more than one, and caps DNS-querying mechanisms at 10. If you also send newsletters or invoices from other services, add their include to the same record instead of creating a new one.
Turning on DKIM
In Google Workspace go to Admin console > Apps > Google Workspace > Gmail > Authenticate email, generate the key (2048-bit if your DNS host supports it), publish the TXT record at google._domainkey and then click Start authentication. In Microsoft 365 you publish two CNAME records, selector1._domainkey and selector2._domainkey, with the values shown in the admin center. Once SPF and DKIM pass, add a DMARC record; moving it gradually towards enforcement is covered in our guide to DMARC enforcement and reporting.
Migrating existing mailboxes
Both platforms provide IMAP migration from the old mailbox:
- Google Workspace: the data migration service in the admin console (Data > Data import & export), up to 100 IMAP accounts per migration, keeping folders and read/unread status.
- Microsoft 365: IMAP migration from the Exchange admin center. It copies email only, not contacts, calendars or tasks, with a limit of 500,000 items per mailbox and 35 MB per message.
Contacts and calendars must be exported and imported separately, usually as vCard and iCalendar files. Do not forget mailboxes used by the website and business software: a contact form that sends through the host's SMTP server needs reconfiguring.
Aliases, groups and shared mailboxes
You do not need a licence for every address. Use aliases for alternative personal addresses, groups for addresses such as info@ or orders@ read by several people, and in Microsoft 365 shared mailboxes, which do not need their own licence within the stated limits. Service addresses should never be tied to one employee's account, so the mailbox survives when that person leaves.
Cutover day checklist
- A few days ahead, lower the TTL of the current MX records, for example to 300 seconds.
- Verify the domain on the new platform and create users, aliases and groups.
- Start the IMAP migration of the mailboxes.
- Switch the MX records and remove the old ones.
- On cPanel hosting, set Email Routing to Remote Mail Exchanger; otherwise the server keeps delivering website-generated mail locally.
- Update SPF, enable DKIM and check the headers of a test message.
- After 48-72 hours, run a final sync and retire the old mailboxes.
If mail from your domain already lands in spam, our email deliverability guide shows where to start. We can run the diagnosis through our service for emails going to spam, or you can contact us to plan the move to Google Workspace or Microsoft 365.
- email aziendale
- google workspace
- microsoft 365
- record mx
- spf
- dkim
- dns
- migrazione email
Frequently asked questions
Is Google Workspace or Microsoft 365 better for a small business?
It depends on how the team works. If you already rely on desktop Word and Excel, macros or Windows file shares, Microsoft 365 causes less friction. If you mostly work in the browser on shared documents, Google Workspace is easier to run. Both handle mail, calendar and video calls well.
Will I lose email when I change MX records?
Not if you follow the right order: users created on the new platform, TTL lowered in advance, old MX records removed at cutover. For a few hours mail may land in both systems, so keep the old mailboxes active and run a final sync.
Can I keep email on my hosting and the website elsewhere?
Yes. MX records are independent from the website's A records. The risk is losing email when you change hosting. Moving email to a dedicated platform makes the two services independent.
How long until new MX records take effect?
It depends on the TTL of the previous records. Google says changes can take up to 72 hours to be recognised everywhere, although most traffic usually moves much sooner if you lowered the TTL a few days earlier.
Sources
- Set up MX records for Google Workspace — Google Workspace Admin Help
- Set up SPF — Google Workspace Admin Help
- Set up DKIM — Google Workspace Admin Help
- Migrate email from an IMAP account — Google Workspace Admin Help
- Connect your domain by adding DNS records — Microsoft Learn
- What you need to know about migrating your IMAP mailboxes to Microsoft 365 — Microsoft Learn
- RFC 7208: Sender Policy Framework (SPF) — RFC Editor
Related articles
Server & Domains · 7 min read
DNS, domain and hosting: technical guide to configuring everything correctly
Understanding the difference between registrar, DNS, hosting and server. How to configure Cloudflare, SSL, MX records and everything needed for solid infrastructure.
Email Marketing · 6 min read
DMARC Enforcement & Reporting: Advanced Strategies for Email Deliverability and Security
Google and Yahoo's recent directives mandate DMARC enforcement. Learn how to implement 'quarantine' or 'reject' policies, analyze XML reports, and protect your brand from spoofing and phishing, ensuring maximum
Email Marketing · 10 min read
Email deliverability: why your emails end up in spam and how to fix it
Misconfigured DNS, damaged IP reputation, problematic content: here are the real reasons your email campaigns don't reach their destination.
