Cloudflare dkim DNS record propagation timeout

Your question

2026-Oct-20 05:55:11
2026-10-20T05:55:11Z INFO DNS record created (dns.record-created) hostname = “v1-rsa-20261020._domainkey.mail..", details = "mail.f”, type = “TXT”, value = ["v=DKIM1; k=rsa; h=sha256; p=MII
2026-10-20T05:56:11Z WARN DNS record propagation timeout (dns.record-propagation-timeout) hostname = “v1-rsa-20261020._domainkey.mail..", details = "mail.”, type = “TXT”, value = "v=DKIM1; k=rsa; h=sha256; p=MIIBI

The SPF record was created successfully (verified on Cloudflare), but DNS timeouts are a frequent occurrence. It may only return to normal after multiple task creation attempts.

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

Now let’s look up the DnsServer object settings (propagationDelay, pollingInterval, propagationTimeout) to give actionable guidance.

Default propagation timeout is 60 seconds (60000ms), which matches the gap in your log between dns.record-created at 05:55:11 and the timeout at 05:56:11. Cloudflare’s TXT record propagation (especially for longer DKIM RSA keys split across multiple strings) sometimes exceeds that window, which triggers the warning even though the record was actually written correctly, as you saw by verifying it on Cloudflare directly.

This gives exactly what’s needed: the propagation timeout is configurable per DnsServer, with a propagationTimeout default of 60 seconds and propagationDelay for slow providers.

Why this happens: Stalwart’s DNS record publication waits a propagationDelay, then polls Cloudflare every pollingInterval (default 15s) until the record is visible or propagationTimeout (default 60s) is reached. If Cloudflare’s own propagation to the resolver(s) Stalwart queries takes longer than 60 seconds (which does happen occasionally), you’ll get a dns.record-propagation-timeout warning even though the record was created correctly, as you saw.

How to fix it: On the DnsServer object for your Cloudflare provider, increase propagationTimeout and/or propagationDelay (and optionally pollingInterval) to give Cloudflare more time before Stalwart gives up polling. These are edited on the DnsServer object (Settings > Network > DNS > DNS Providers in the WebUI, or via stalwart-cli):

  • propagationDelay — initial delay before the first check (useful for slow providers)
  • pollingInterval — default 15s, how often it rechecks
  • propagationTimeout — default 60s, how long it polls before giving up

The timeout warning doesn’t mean the record creation failed, only that Stalwart’s own verification step gave up before Cloudflare’s resolvers caught up; the record itself (as you confirmed) was published fine. Increasing these values should reduce the frequency of these warnings.

For reference: DNS records lifecycle and DnsServer object reference.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

The record is being created; the check just doesn’t see it within the 60 seconds. Stalwart starts polling right after the Cloudflare API call, and if that first lookup gets NXDOMAIN, the resolver caches the negative answer, so the remaining polls keep getting it until the timeout. Retries use the same selector name for the whole day, which is why it eventually works after a few attempts once the negative cache expires.

On your Cloudflare entry under Network › DNS › DNS Providers, add a delay before the first lookup and give it more time:

{"propagationDelay": 30000, "propagationTimeout": 300000}

If the server uses a caching resolver with a long negative TTL, that adds to it (DNS records | Stalwart). Your log shows the record as v1-rsa-20261020._domainkey.mail.<domain>, so the domain in Stalwart seems to be mail.<domain> rather than the bare domain. If your users send as @<domain>, the domain there needs to be the bare one.