Skip to content
Hermesmail
Docs pages

Sending domains and DNS

Before transactional mail leaves Hermesmail from your own address, publish three DNS records on the domain and let Hermesmail verify them. An optional DMARC record sits beside them to tell receiving mail servers how to handle unauthenticated messages.

DNS records

Every sending domain receives three required records. Names are shown relative to the registrable domain, which is the format most DNS control panels ask for:

  • DKIM (TXT at hermes._domainkey): publishes the public half of your domain's 2048-bit RSA signing key (p=...). Hermesmail uses the selector hermes. Because a 2048-bit DKIM value is 394 characters long, DNS hosts that enforce the 255-character string limit require either automatic splitting or adjacent double-quoted strings inside a single TXT record.
  • MAIL FROM (MX at send): points bounce and delivery feedback for your domain to the region-specific feedback server (feedback-smtp.<region>.amazonses.com) with priority 10 and no other MX record at that same subdomain. Placing MAIL FROM on a dedicated return-path subdomain leaves your root domain's incoming mail untouched.
  • SPF (TXT at send): authorises amazonses.com to send mail using your return-path subdomain (v=spf1 include:amazonses.com ~all). Hermesmail never asks for a CNAME record for SPF.

When the sending domain is itself a subdomain such as updates.example.test, its relative record names include that subdomain label (hermes._domainkey.updates and send.updates) inside the parent zone example.test. If your DNS host keeps the subdomain in a zone of its own, use the short names (hermes._domainkey and send) inside that child zone instead.

Example records

The table below is generated by the same record builder used for live domains, shown for the fixture domain example.test with return path send in US East (N. Virginia) — region code us-east-1 — as an example. A real domain uses the sending region shown in your dashboard and its own generated public key.

Record Type Host Full host Value Priority TTL
DKIM TXT hermes._domainkey hermes._domainkey.example.test p=EXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEY — Auto
SPF MX send send.example.test feedback-smtp.us-east-1.amazonses.com 10 Auto
SPF TXT send send.example.test v=spf1 include:amazonses.com ~all — Auto

The dashboard also builds a copyable plain-text summary for each domain containing both the relative host and the full host name, the exact record values and a reminder to leave proxying off:

DNS records for example.test

Add these 3 records where the DNS for example.test is managed, and copy each value exactly as it is written here. Most DNS hosts want the short host shown first; if yours asks for full names, or keeps a subdomain in a zone of its own, use the full host name. Leave the TTL at your host's default.

1. TXT record (DKIM)
   Host: hermes._domainkey
   Full host name: hermes._domainkey.example.test
   Value: p=EXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEYEXAMPLE2048KEY

2. MX record (SPF)
   Host: send
   Full host name: send.example.test
   Priority: 10
   Value: feedback-smtp.us-east-1.amazonses.com

3. TXT record (SPF)
   Host: send
   Full host name: send.example.test
   Value: v=spf1 include:amazonses.com ~all

If your DNS host can proxy records through its own network, turn proxying off for each of these records so they stay DNS only: mail servers must read them exactly as written.

DMARC is recommended for mail authentication, though Hermesmail never blocks domain verification on it and keeps it separate from the required record set. Publish one TXT record at _dmarc under your organisational domain if none exists yet:

Type Host Full host Value TTL
TXT _dmarc _dmarc.example.test v=DMARC1; p=none; Auto

This starting policy (p=none) asks receiving servers to observe alignment without quarantining or rejecting mail, and omits rua and ruf tags so aggregate or forensic reports are not directed to Hermesmail. Once traffic is flowing cleanly, tighten the policy to p=quarantine or p=reject and point rua to a reporting mailbox your team controls.

How verification and re-checks work

A newly added domain starts in not_started. Triggering verification moves it to pending, runs an immediate lookup and then polls on the following schedule from the start of the window:

Elapsed time Check interval
First 10 minutes Every 1 minute
10 minutes to 1 hour Every 5 minutes
1 hour to 24 hours Every 15 minutes
24 hours to 72 hours Every 1 hour

Every check verifies both public DNS and confirmation from the sending provider:

  • Verification window: if all three required records are not confirmed within 72 hours of starting verification, the domain and any unverified records move to failed. Restarting verification opens a new window while preserving records that are already verified.
  • Ongoing re-checks: once verified, Hermesmail re-checks the domain every 6 hours to catch accidental DNS edits.
  • Temporary failure grace period: if a previously verified record goes missing or stops matching, the domain moves to temporary_failure and checks run every 15 minutes until either all records match again or 72 hours pass, at which point the domain becomes failed.
  • Transient lookup errors: a DNS timeout or SERVFAIL never downgrades a record's status. After 3 consecutive lookup errors, the dashboard warns that DNS lookups are failing.
  • Deleted domain keys: when a domain is deleted, Hermesmail keeps its DKIM key for 30 days so re-adding the same domain in the same team reuses the existing DKIM TXT value.

DNS propagation

Hermesmail holds no internal DNS cache in its verification worker, so new records appear as soon as the recursive resolvers stop serving a cached answer. Fresh records typically verify within a few minutes.

When editing or replacing an existing record, resolvers wait until the old record's TTL expires before fetching the updated value. Likewise, querying a hostname before creating the record causes resolvers to cache the missing answer for the zone's SOA negative-caching TTL. Leaving TTL at Auto or the host's default keeps propagation predictable.

Common mistakes

  • Appending the domain name twice: pasting hermes._domainkey.example.test into a DNS form that already appends .example.test publishes hermes._domainkey.example.test.example.test, leaving the true name empty.
  • Leaving a proxy enabled: any DNS host that offers traffic proxying must keep Hermesmail's records set to DNS-only so mail servers read the exact MX and TXT values.
  • Splitting a long DKIM value into separate records: a 2048-bit key must stay inside a single TXT record (either pasted whole on hosts that auto-split, or formatted as adjacent quoted strings of up to 255 characters each). Creating two separate TXT records at hermes._domainkey fails verification.
  • Conflicting records on the return-path subdomain: a CNAME at send, an MX pointing to another mail server, or two SPF TXT records at the same name will block MAIL FROM verification.
  • Editing the wrong DNS zone: if your domain is registered at one company while its authoritative nameservers belong to another, only records published at the active nameserver host take effect.

See Domain verification troubleshooting for every check detail code Hermesmail reports and the exact fix for each one.

DNS host guides

Pick the host serving your domain's authoritative nameservers for step-by-step instructions covering where records live, zone-appending behaviour, long TXT values and keeping records DNS-only:

DNS host Where records go
Cloudflare Choose the domain in the dashboard and open DNS > Records; add each record with its proxy status set to DNS only.
Amazon Route 53 Open Hosted zones in the Route 53 console, choose the public zone for the domain and create each record in it.
GoDaddy Open the domain from your Domain Portfolio, choose DNS and add each record to its DNS records list.
Namecheap Choose Manage beside the domain in Domain List, open Advanced DNS and add each record, typing the host without the domain name.
Porkbun Open Domain Management from your account, then the DNS records of the domain, and add each record there.
Squarespace Choose the domain in the domains dashboard, open DNS and add each record as a custom record.
Vercel Open Domains in the team's dashboard, choose the domain and add each record to its DNS records.
Hetzner Open the project in the Hetzner Console, choose DNS in the side menu, then the zone, and add each record; a konsoleH package keeps its zone in konsoleH.
IONOS Under Domains & SSL, open the gear menu beside the domain, choose DNS and add each record.
Gandi Open Domain, choose the domain and add each record on its DNS records tab; the domain must be on LiveDNS.
DreamHost Open Manage Websites in the panel, then the domain's DNS settings, and add each record as a custom record.
Hostinger Open Domains in hPanel, choose the domain, then DNS / Nameservers, and add each record to its DNS records.
STRATO Open Domains > Domain management, choose the gear beside the domain and the DNS tab; TXT records are under TXT and CNAME records, the MX under MX record.