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.
- Sign in to the Cloudflare dashboard and select your domain from the account home screen.
- Open DNS and then Records in the left sidebar.
- Click Add record for each required Hermesmail entry (
TXTfor DKIM,MXfor MAIL FROM andTXTfor SPF), plus the optional_dmarcTXTrecord. - Leave TTL set to Auto, enter priority
10
on the
MXrecord, and click Save after each entry.
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.
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.
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.
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.