Help Contact
DNS

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

Learn how to configure DNS records (Mail A, MX, SPF, DKIM) on Cloudflare or any external DNS provider to send and receive emails and access Roundcube Webmail.

Sep 05, 2026 5 views

If your domain is using CloudZex Default Nameservers (dns1.cloudzex.com and dns2.cloudzex.com), all email DNS records are automatically managed by your control panel. You do not need to configure anything manually.

However, if your domain uses Cloudflare or any external DNS provider (such as Namecheap, GoDaddy, or Route 53), you must add specific DNS records so that you can send, receive emails, and access Webmail without errors.


1. Required DNS Records for Email

Log in to your DNS provider (e.g., Cloudflare Dashboard > DNS > Records) and add the following records for your domain:

Type Name / Host Content / Value Proxy Status (Cloudflare) TTL
A mail 51.79.254.135 (or your server IP) DNS Only (Grey Cloud) * Auto
MX @ (or root domain) mail.yourdomain.com Priority: 10 Auto
TXT @ (SPF Record) v=spf1 mx ip4:51.79.254.135 ~all N/A Auto
TXT _dmarc v=DMARC1; p=none; N/A Auto
⚠️ CRITICAL CLOUDFLARE NOTE:

For the mail A record, you MUST turn OFF Cloudflare Proxy (set to DNS Only / Grey Cloud). If it is proxied (Orange Cloud), mail protocols (SMTP, IMAP, POP3) and Webmail SSL will be blocked because Cloudflare's free proxy does not proxy non-HTTP mail ports.


2. Setting up DKIM (DomainKeys Identified Mail)

DKIM adds a cryptographic signature to your emails, ensuring that emails sent from your domain are not marked as spam by Gmail, Yahoo, or Outlook.

  1. Log in to your Enhance Control Panel at https://panel.cloudzex.com/.
  2. Navigate to Websites > Select your domain > Emails.
  3. Click on the DKIM or DNS Records tab to view your unique DKIM TXT record (name and key value).
  4. Copy the DKIM record and paste it into your Cloudflare or DNS provider as a TXT record.

3. How to Access Your Webmail

Once your DNS records propagate (typically takes 5 to 30 minutes):

  1. Open your web browser and go to: https://mail.yourdomain.com (replace yourdomain.com with your actual domain name).
  2. Enter your full email address as the username (e.g., [email protected]).
  3. Enter your mailbox password and click Login.

You can also access Roundcube Webmail directly from the Enhance Control Panel by clicking the Webmail button next to your email address.

Chat with support

Online - We reply immediately
AI

Please introduce yourself to start chatting with us.

Or contact us via
WhatsApp Call Us
Powered by CloudZex