Field note · 8 min read

How to Host Email and Website Separately (And What Breaks If You Don't)

Yes. Point web records at your site builder and mail records at your email host. Step-by-step split DNS setup for Cloudflare, Shopify, and Vercel.

Can you host email and website separately?

Yes. You can host your email and your website with completely different providers on the same custom domain. In the Domain Name System (DNS), website traffic is controlled by A, AAAA, and CNAME records pointing to your web host (such as Shopify, Vercel, or WordPress), while email routing is controlled entirely by MX records pointing to your email host. You do not need to buy email from your web host, and switching website hosts never disrupts email delivery.

This technical guide is published by Folio, an independent email platform built for solo operators managing multiple business domains from a unified inbox. Technical DNS standards and registrar behaviors were verified on November 15, 2026. DNS propagation and delivery depend on correct record publication at your authoritative nameservers.

How DNS separates web and email requests

Every custom domain name relies on authoritative DNS servers to translate human-readable names into machine-readable network destinations. Crucially, DNS does not treat a domain as a single monolithic service. Instead, it categorizes network traffic using dedicated resource record types defined by Internet Engineering Task Force (IETF) standards.

When a customer opens a browser and navigates to example.com, the browser's operating system requests the Address (A) record or IPv6 Address (AAAA) record for example.com. The authoritative DNS server returns the IP address of your web server (for example, a Vercel edge node or a Shopify cluster). The browser connects directly to that IP address over port 80 or 443 to fetch web pages. At no point in this exchange does the browser inspect or interact with email records.

Conversely, when someone sends an email to alex@example.com, the sending mail transfer agent (MTA) requests the Mail Exchanger (MX) records for example.com per RFC 5321 (SMTP). The DNS server returns the mail host's server hostnames and priority numbers. The sending mail server connects directly to that mail server over port 25. The web server is never contacted.

Because web records and email records operate in complete protocol isolation, you can host your website on Vercel, your primary web store on Shopify, your marketing blog on Ghost, and your email on a dedicated multi-domain provider like Folio—all sharing the exact same domain name without conflict.

DNS record division for split website and email hosting
DNS Record Type Record Name (Host) Destination Value (Points To) Controls Traffic For
A Record @ (root domain) IPv4 Address of Web Server (e.g., 76.76.21.21) Website (Apex Domain)
CNAME Record www Web Host CNAME Target (e.g., shops.myshopify.com) Website (WWW Subdomain)
MX Records @ (root domain) Mail Host Servers (e.g., mail.folioinbox.com, priority 10) Inbound Email Routing
TXT Record (SPF) @ (root domain) Authorized Mail Senders (v=spf1 include:_spf.example.com ~all) Outbound Email Authentication
CNAME or TXT selector._domainkey Cryptographic DKIM Key provided by Email Host Cryptographic Email Signing
TXT Record (DMARC) _dmarc Policy String (v=DMARC1; p=none; rua=mailto:dmarc@...) Email Alignment & Spoofing Defense

Split DNS configurations across popular web platforms

Different web hosting platforms handle DNS differently. Understanding your web host's specific requirements prevents accidental disruption of your email service:

1. Modern static and Jamstack hosts (Vercel, Netlify, Cloudflare Pages)

When deploying web applications to Vercel or Netlify, developers often encounter a prompt asking them to "change nameservers" to the platform's custom DNS. Never change your nameservers to your web host if you have active email. If you point nameservers to Vercel or Netlify, your previous registrar DNS zone is bypassed, deleting your active MX and SPF records and immediately bouncing incoming email.

Instead, keep your domain's authoritative nameservers at your domain registrar (such as Cloudflare, Porkbun, or Namecheap). In your registrar's DNS panel, add an A record pointing @ to Vercel's IP address (76.76.21.21) and a CNAME record pointing www to cname.vercel-dns.com. Your MX, SPF, DKIM, and DMARC records remain alongside these web records untouched, ensuring uninterrupted mail delivery while code deploys freely.

2. Ecommerce platforms (Shopify, BigCommerce)

Shopify does not provide email hosting. When merchants connect a domain to Shopify, they should keep their domain DNS at their registrar. Shopify requires an A record pointing @ to 23.227.38.65 and a CNAME pointing www to shops.myshopify.com. All email hosting records (MX, SPF include, DKIM keys) are configured independently. If you send transactional store notifications through Shopify while receiving customer support in an external inbox, your SPF record must include both systems (e.g., v=spf1 include:shops.shopify.com include:_spf.folioinbox.com ~all) per RFC 7208.

3. Cloudflare DNS with Cloudflare Proxy (Orange Cloud Warning)

If you use Cloudflare for DNS management, Cloudflare allows you to proxy web traffic through its content delivery network by toggling the "Proxy status" cloud icon to Orange. However, Cloudflare cannot proxy email traffic. Any MX record or mail subdomain must be set to "DNS only" (Grey Cloud). If an MX record points to a hostname that has the Orange Cloud proxy enabled, incoming mail will bounce. Keep web records (A, CNAME) proxied for security and speed, and keep email records (MX, mail host CNAMEs) strictly unproxied per Cloudflare's email record documentation.

Step-by-step setup: How to separate web and email safely

Follow this checklist to separate existing services or launch new ones without downtime:

  1. Identify authoritative nameservers: Use Folio's free email domain health checker to verify which nameservers currently control your domain. All DNS edits must be made at these authoritative nameservers.
  2. Keep nameservers at your registrar or dedicated DNS provider: Avoid delegating nameservers to web hosts or site builders. Managing DNS at an independent registrar gives you permanent control over all service endpoints.
  3. Configure email host records first: Add your mail host's MX records, SPF TXT record, and DKIM selector keys. Verify that incoming and outgoing mail functions correctly before modifying web records.
  4. Configure web records independently: Add the A or CNAME records specified by your website builder. Double-check that your web host does not attempt to add conflicting MX records or delete existing TXT records.
  5. Publish DMARC monitoring: Add a DMARC policy record at _dmarc.yourdomain.com per RFC 7489 to receive automated feedback on whether both web notification services and manual mailboxes pass authentication.

For founders operating email on a domain that does not yet have a website, see our guide on custom domain email without a website. For complete pricing across providers, explore the multi-domain email price index.

Why separating email from web hosting is best practice

Bundling email and web hosting with a single legacy hosting company (such as shared cPanel hosting) introduces major operational vulnerabilities:

  • Server IP reputation contamination: Shared web hosts host thousands of websites and mailboxes on shared IP addresses. If an unrelated website on your shared server sends spam or malware, the entire IP address is blacklisted by Spamhaus or Google, causing your business emails to land in spam regardless of your personal sending habits.
  • Migration lock-in: If your email and website are trapped in the same cPanel backup, migrating your website to a modern platform like Shopify or Webflow forces you to scramble to export and migrate years of email history simultaneously. Separating them allows you to redesign or switch web hosts anytime with zero fear of losing mail.
  • Uptime and operational isolation: If high web traffic or a software bug crashes your web server, your email servers remain 100% operational, allowing customers, partners, and vendors to reach you during an outage.

For solo operators managing multiple business ventures, keeping email independent and unified in a dedicated service like Folio provides clean brand isolation at flat pricing starting at $2.99 per month, with 100 sends on one domain, no card required in the free preview. Compare full features and plan limits on Folio's pricing page.

Decoupling your communication infrastructure from your web runtime is the single most resilient architecture for modern internet businesses. It protects your brand reputation, eliminates vendor lock-in, and ensures that critical client and financial communications remain accessible regardless of web redesigns, server maintenance, or platform migrations.

Frequently Asked Questions

Will switching my web host affect my email?

No, as long as your domain nameservers remain at your registrar and you only update A and CNAME records. Your email will only break if you change nameservers to a new web host that lacks your existing MX, SPF, and DKIM records.

Can my website and my email host send from the same domain?

Yes. If your website sends transactional receipts or password resets while you also send personal correspondence from your mailbox, both services must be authorized in a single SPF record. Combine the authorizations using include: mechanisms (e.g., v=spf1 include:_spf.webhost.com include:_spf.mailhost.com ~all). Never publish two separate SPF records for one domain.

How do I split email away from an existing cPanel web host?

In your cPanel DNS zone editor, update the MX records to point to your new email provider and set the 'Email Routing' setting from 'Local Mail Exchanger' to 'Remote Mail Exchanger'. This tells the cPanel server to route mail to your external email host instead of attempting local delivery.

Do I need a website before setting up custom domain email?

No. You can register a domain name and configure email hosting immediately. Web records are entirely optional and can be added months or years later without affecting email.

§ Sources & further reading

§ Google Search

Make Folio a preferred source.

If you read Folio often, add it as a preferred source. Google can then mark our writing as preferred in Top Stories, AI Overviews, and AI Mode for you.

Change or remove it any time in Google’s source preferences.