Reviewed October 12, 2026
How to set up a custom domain on Shopify without breaking email
Connecting a domain to Shopify is easy; keeping your email working through the change is where stores get burned. The DNS order of operations that keeps both working.
Why email breaks during domain setup
Email breaks because domain setup and email both live in DNS, and changes to one can clobber the other. The classic failure: you point your domain at Shopify, Shopify helpfully manages your DNS, and your MX records, the ones that route your email, get replaced or dropped in the process. Email silently stops arriving and nobody notices for days.
The other classic failure is impatience. DNS changes take time to propagate, and during the transition some mail servers see the old records and some see the new ones. Changing MX records and nameservers in quick succession multiplies the confusion.
Before you touch anything: document current DNS
Screenshot or export your current DNS records before making changes. Every record: A, CNAME, MX, TXT, especially the SPF, DKIM, and DMARC records that govern email deliverability. If something breaks, this record is what lets you restore service in minutes instead of hours.
Identify where your email actually lives. Is it Google Workspace, Microsoft 365, your registrar email, or something else? You need the correct MX records and authentication records for that provider written down before the domain moves anywhere.
The safe order of operations
First, connect the domain to Shopify without transferring DNS management if your email is working where it is. Point the A record at Shopify IP and the CNAME for www at shops.myshopify.com, and leave everything else, especially MX and TXT records, exactly as it is. Your email never notices.
Only transfer DNS management to Shopify after the domain connection is stable and you have re-entered your email records. If you do transfer, add the MX, SPF, DKIM, and DMARC records back immediately, in the same session, before closing the tab. Verify email still flows with a test message to and from the domain address.
SPF, DKIM, and DMARC after the move
These three TXT records are what keep your order notifications out of spam folders, and they are the most commonly lost in a domain move. SPF lists which servers may send mail for your domain, DKIM cryptographically signs it, and DMARC tells receivers what to do with failures. Lose them and your deliverability quietly degrades.
After any DNS change, verify all three with a lookup tool. Send a test order notification to a Gmail address and check whether it lands in spam. If it does, your authentication records are wrong or missing, and every customer email is going through the same filter.
The propagation waiting game
After changes, wait. DNS propagation takes minutes to hours, occasionally up to a day. During that window, do not make additional DNS changes; stacking changes on top of propagating changes is how records end up in inconsistent states across providers.
Test from multiple angles: your storefront in a fresh browser, email send and receive, and a DNS propagation checker showing the new records worldwide. When all three agree, the move is done. Until then, keep the old records documented and your email provider support page bookmarked.
Frequently asked questions
Will connecting my domain to Shopify break my email?
It can, if your MX records get changed or dropped during the move. The safe approach is to point only the A and www CNAME records at Shopify while leaving your MX, SPF, DKIM, and DMARC records untouched. Document all DNS records before you start so you can restore them if needed.
Should I transfer my domain to Shopify or just connect it?
Connecting, pointing DNS at Shopify while your registrar manages it, is safer when email is working at your current provider. Transferring moves DNS management to Shopify, which is fine, but you must re-enter all email records immediately. If email continuity matters, connect first and transfer later, if ever.
How long does Shopify domain setup take?
The Shopify side takes minutes, but DNS propagation takes longer: usually under an hour, sometimes up to 24. SSL certificate provisioning adds a bit more. Do not make further DNS changes during propagation, and verify the store, email, and DNS records all agree before considering it done.
What are MX records and why do they matter?
MX records tell the internet where to deliver email for your domain. If they point to the wrong place, or get deleted during a domain move, incoming email bounces or vanishes. They are the single most important DNS record to preserve when connecting a domain to Shopify.