Skip to content
Hermesmail
Docs pages

Cloudflare DNS setup

Follow this walkthrough when your domain's authoritative nameservers belong to Cloudflare (*.ns.cloudflare.com, secondary.cloudflare.com or Foundation DNS).

DNS settings: Open Cloudflare DNS settings

Quick path: Choose the domain in the dashboard and open DNS > Records; add each record with its proxy status set to DNS only.

Where records go

  1. Sign in to the Cloudflare dashboard and select your domain from the account home screen.
  2. Open DNS and then Records in the left sidebar.
  3. Click Add record for each required Hermesmail entry (TXT for DKIM, MX for MAIL FROM and TXT for SPF), plus the optional _dmarc TXT record.
  4. Leave TTL set to Auto, enter priority 10 on the MX record, and click Save after each entry.

How Cloudflare handles the zone name

Cloudflare appends the zone name automatically to relative host names. Enter the short Name values shown in Hermesmail—hermes._domainkey, send and _dmarc—rather than repeating your domain. For a subdomain sending domain such as updates.example.test, enter hermes._domainkey.updates and send.updates inside the example.test zone.

If you paste a full host name ending in your zone apex, Cloudflare normally trims the trailing domain when saving, though using the short relative name avoids accidental typos and doubled names.

Entering TXT values over 255 characters

A Hermesmail 2048-bit DKIM TXT value is 394 characters long, which passes the 255-character limit of a single DNS text string. Paste the entire p=... value directly into Cloudflare's Content field as one continuous string without adding manual quotation marks or line breaks. Cloudflare splits long TXT records into adjacent quoted strings automatically in authoritative DNS.

Do not create two separate TXT records at hermes._domainkey, as that causes a multiple_values verification failure.

Keep records DNS-only (not proxied)

Every Hermesmail DNS record must remain DNS only (grey cloud, proxy off). Cloudflare keeps TXT and MX records unproxied automatically, and no orange-clouded CNAME, A or AAAA record may sit at hermes._domainkey or send. If a proxied or unproxied CNAME already occupies send, remove it or choose a different return-path subdomain in Hermesmail.

Next steps

Return to Sending domains and DNS for the full record table and re-check schedule, or open Domain verification troubleshooting if any record reports a check failure.