Help Contact
DNS

How to Configure Email & Webmail DNS Records (Cloudflare & External DNS)

If your DNS is not hosted with CloudZex (for example Cloudflare), add the mail, MX, SPF, DKIM and DMARC records yourself so email and webmail work.

Sep 05, 2026 49 views

Quick answer: if your domain uses dns1.cloudzex.com and dns2.cloudzex.com, the email records are created for you. If DNS is hosted elsewhere (Cloudflare, Namecheap, GoDaddy...), add four things at your DNS provider: a mail A record to your hosting server's IP (set to DNS only on Cloudflare), an MX record to mail.yourdomain.com, an SPF TXT record, and your DKIM key from the control panel.

1. Records to add

TypeNameValueNote
Amailyour hosting server's IPCloudflare: DNS only (grey cloud)
MX@mail.yourdomain.com (priority 10)
TXT@v=spf1 mx ip4:YOUR_SERVER_IP ~allSPF
TXT_dmarcv=DMARC1; p=none;monitoring only

Your hosting server's IP is in your welcome email. If you cannot find it, ask our support team in a ticket. Do not copy an IP from someone else's guide.

Cloudflare: the mail A record must be DNS only. The Cloudflare proxy does not carry mail ports, so a proxied record breaks email and webmail.

2. DKIM

  1. Open the control panel, go to Websites, choose your site and open the Domains tab.
  2. Find Email authentication for the domain and follow the on-screen steps to get the DKIM record.
  3. Add that TXT record at your DNS provider.

3. Open webmail

After DNS updates (5 to 30 minutes) go to https://mail.yourdomain.com and log in with the full email address and its password.

Chat with support

Online - We reply immediately
AI

Please introduce yourself to start chatting with us.

Or contact us via
Powered by CloudZex