Common hosting task

How to set up email records for hosting

Email breaks when DNS changes are treated like a single website switch. Copy the mail records first, then move the web records.

Use this as a focused checklist for one common hosting task. The larger setup guides still cover full-site and full-server builds.

Difficulty
Beginner
Time
20 to 60 minutes
Images
3 official examples

1. Copy the existing DNS zone first

Before changing nameservers or web records, record every mail-related value from the current DNS provider. At minimum, keep MX, SPF, DKIM, DMARC, autodiscover, and webmail records.

Hostinger domain pointing records section
Hostinger domain pointing: When only the website is moving, preserve existing DNS records that support email and third-party services.
GreenGeeks onboarding sections
GreenGeeks getting started: Hosting setup spans domains, email, and site launch, not just the website files.

2. Set MX records for the mail provider

MX records decide where incoming mail goes. If email stays at Google Workspace, Microsoft 365, Zoho, or another provider, keep those MX values even if the website moves to a new host.

Warning

Changing nameservers without recreating MX records is the common way to make a domain stop receiving mail.

3. Add SPF, DKIM, and DMARC TXT records

SPF

Authorizes which mail services can send for the domain.

DKIM

Signs outgoing mail so receiving servers can verify it.

DMARC

Tells receivers what to do when SPF or DKIM fails.

TXT records

Keep verification records for Google, Microsoft, Stripe, and other apps.

Hostinger nameserver values section
Hostinger nameservers: If nameservers move, recreate mail records inside the new DNS zone.

4. Test sending and receiving mail

dig MX example.com
dig TXT example.com
dig TXT _dmarc.example.com

Send a message from the domain to an outside mailbox, reply to it, and check that the message doesn't land in spam. Test this before canceling the old host or DNS provider.

Official sources checked

Hostinger domain pointing

Used for DNS record versus nameserver setup logic.

Hostinger nameservers

Used for nameserver-change context.

GreenGeeks getting started

Used for account, domain, and email setup context.

© 2026 WebHostWatch. We may earn affiliate commissions from links. Recommendations remain editorially independent.