Confirm that Cloudflare is authoritative
Editing a zone helps only if your domain is actually using that zone’s nameservers. Check your authoritative DNS provider before changing records. If the domain uses a different provider, update records there instead.
Export or record the current zone before making changes. Website routing, verification records and other services can depend on entries that look unrelated to email.
Use the mail records supplied for your account
Add the exact MX targets and priorities supplied by your email service. A hosted service may give you provider-managed hostnames; do not create your own mail-server address unless its instructions require it. MX records point to hostnames, not directly to IP addresses.
Decide which service will receive mail. Leaving conflicting routes from a previous host can cause unexpected delivery. Keep the old service available while you complete the transition.
Keep mail hosts DNS-only when required
Cloudflare’s normal website proxy is not a general-purpose SMTP, IMAP or POP proxy. If your provider requires an A or AAAA record for a mail host, follow its instructions and use DNS-only for the mail endpoint. Website proxy settings can remain different.
Do not make assumptions based on whether the orange-cloud icon is enabled for the main website. Email routing and website traffic use different records and protocols.
Preserve authorised senders
Update SPF without creating a second SPF record for the same hostname. Publish the correct DKIM selector and key or CNAME. Review DMARC after identifying your legitimate senders. Keep any verification records still needed by your website, billing system or other approved services.
Never paste generic MX targets or authentication keys from an article into a live zone. The correct values come from the account that will send and receive your mail.
Test sending and receiving independently
Check the published records, then send test messages in both directions using an independent mailbox. Inspect authentication results and verify important aliases. Test website forms and SMTP applications separately.
DNS caching can delay the point at which every sender uses the new route. Changing a record does not instantly clear caches elsewhere. Keep a record of what changed and when.
References
References checked 19 October 2026. This guide explains general setup principles; account-specific settings may differ.