Google Workspace

Google Workspace · DKIM · Multiple domains

Google Workspace DKIM fails only for a secondary or alias domain

First published 27 October 2026 · Updated on 12 November 2026 · Verified against Google Workspace Help (Set up DKIM: per-domain keys, 24–72 hour wait, Start authentication) (sources listed below)

Merroway Editorial · Verified against governing standards and vendor documentation.

The fast answer

Do not re-do the primary domain’s DKIM. In the Admin console, go to Apps → Google Workspace → Gmail → Authenticate email, select the failing domain in the Selected domain menu, generate its own key, publish that key in that domain’s DNS, wait for propagation, and click Start authentication for that domain. Then check which sending path the failing mail uses: an alias address can still carry the primary domain as its envelope sender, which changes which check must align.

Advertisements

What you are looking at, in plain words

Google Workspace treats each domain separately for DKIM. The Admin console’s Authenticate email page has a Selected domain menu precisely because the key, the DNS record and the signing switch belong to one domain at a time; completing them for the primary domain does nothing for a secondary domain or an alias domain. Two further distinctions matter. A secondary domain has its own users and its own mail flow, so it needs the full treatment: its own SPF, its own DKIM key, its own DMARC record. A domain alias (or a user alias / “send mail as” address) shares the primary domain’s users, and mail sent from the alias address often still uses the primary domain as its envelope (Return-Path) sender — so SPF aligns to the primary domain while DKIM must align to the alias domain in the From address. That asymmetry is why alias mail fails in a distinctive way: DKIM is the leg that must be fixed, not SPF. Finally, Google documents a trap for new domains: after turning on Gmail for an organisation, you must wait 24–72 hours before a DKIM key can be generated in the Admin console at all. An error in that window is not a broken setup; it is a wait.

Domain typeWhat it needs
Secondary domainOwn users, own SPF, own DKIM key, own DMARC — full setup
Domain alias / alias addressOwn DKIM key for the alias domain; SPF may still ride on the primary envelope domain
Newly enabled domainWait 24–72 hours before key generation is even available

Step 0 — Prove which part is failing

  1. List every domain that appears in a From address in your failing mail: primary, secondary, alias. Confirm which one fails — test one message per domain to an outside mailbox and read each one’s headers separately.
  2. For the failing domain, check the Admin console: Authenticate email, with that domain selected. Is there a generated record? Has Start authentication been clicked for that domain? Is the status “Authenticating email with DKIM”?
  3. Query that domain’s DNS: dig TXT google._domainkey.failingdomain +short (or your chosen selector). Compare with the TXT value the console shows for that domain — not the primary domain’s value.
  4. For alias mail, read the headers: what are the From domain, the Return-Path domain and the DKIM d= domain? An alias whose DKIM d= is the primary domain has not had alias DKIM set up at all.
Do not fix the wrong thing first. Do not copy the primary domain’s DKIM TXT value into the secondary domain’s DNS. Keys are per-domain: a primary key published under a secondary domain’s selector does not authenticate the secondary domain, and it wastes the one debugging session you have before confusion sets in. Generate the failing domain’s own key.

Fix 1 — Generate the failing domain’s own DKIM key

As a super administrator, go to Apps → Google Workspace → Gmail → Authenticate email, select the failing domain, and click Generate New Record. Choose 2048-bit if the domain’s DNS host supports long TXT records (see our 2048-bit split guide if it truncates), or 1024-bit if it does not. The default selector is google; use a different prefix only if that domain already uses a google DKIM key for another service. Then click Generate and copy the TXT value shown for this domain.

Fix 2 — Publish it in the right domain’s DNS, then start authentication

Add the TXT record at google._domainkey (or your selector) in the failing domain’s DNS — not the primary domain’s zone. If the host appends the domain automatically, enter only google._domainkey. Wait for propagation (Google notes up to 48 hours for DKIM to start working, and its console may keep showing a “must update DNS” message for up to 48 hours even when the record is correct — ignore that message if dig confirms the record). Then, back in Authenticate email with the failing domain selected, click Start authentication. Success is the status changing to “Authenticating email with DKIM” for that domain.

Fix 3 — For alias mail, verify the DKIM leg specifically

Send from the alias address to an outside mailbox and confirm dkim=pass with header.d= showing the alias domain, matching the From domain. If DKIM passes for the primary domain instead, the alias domain’s key is still missing or not started — return to Fix 1 with the alias domain selected. Remember: for alias mail, SPF passing for the primary envelope domain does not rescue DMARC if DKIM does not align to the alias From domain, and vice versa — you need the DKIM leg for the domain the reader sees.

Fix 4 — If key generation errors on a new domain, wait out the 24–72 hours

Google states that after turning on Gmail, you must wait 24–72 hours before you can get a DKIM key, and trying earlier may produce an error that the record was not created. Do not rebuild DNS, do not regenerate repeatedly, and do not conclude the domain is broken. Note the time Gmail was enabled, wait the window, then generate once.

Advertisements

Prove it worked

  1. Send from each domain (primary, secondary, alias) to an outside mailbox and confirm dkim=pass with header.d= matching that message’s From domain, for every domain.
  2. Confirm the Admin console shows “Authenticating email with DKIM” with each domain selected in turn — checking only the primary proves nothing about the others.
  3. Confirm DMARC passes for each domain’s mail, on at least one aligned leg.

Still not working? Work this ladder in order

  1. Secondary domain still fails after publishing. Check you published in the secondary domain’s zone, with its own key value, and clicked Start authentication with that domain selected. All three are per-domain failure points.
  2. Console still says DNS must be updated after 48 hours. Verify with dig, not the console message: if dig shows the correct record, the message is stale; if dig does not, the record is in the wrong zone or under the wrong name.
  3. Alias mail signs with the primary domain. Alias DKIM was never generated. Generate it for the alias domain (Fix 1) — the primary key cannot stand in for it.
  4. Key generation errors immediately. Check the 24–72 hour window since Gmail was enabled for that domain before debugging anything else.

Mistakes that make it worse

  • Copying the primary domain’s DKIM value into another domain’s DNS.
  • Clicking Start authentication with the primary domain selected and assuming it covered all domains.
  • Publishing the key in the wrong domain’s DNS zone.
  • Treating the 24–72 hour key-generation wait as a broken setup and rebuilding DNS.

FAQ

Does each Google Workspace domain really need its own DKIM key?

Yes. Google’s own DKIM setup says: “If you are setting up DKIM for more than one domain, complete these steps for each domain. You must get a unique DKIM key from the Admin Console for each domain.”

Why does alias mail fail when the primary domain passes?

Because the alias From domain needs its own DKIM alignment. The envelope sender may still be the primary domain, so SPF can pass while DKIM for the alias domain is missing — and DMARC needs an aligned leg for the domain in the From address.

How long after enabling Gmail can I generate a DKIM key?

Google documents a 24–72 hour wait after turning on Gmail before the DKIM key can be generated in the Admin console.

Sources

Google Workspace Help — Set up DKIM (Selected domain menu, per-domain unique keys, 24–72 hour wait, Start authentication, “Authenticating email with DKIM” status, 48-hour propagation notes) · Google Workspace Help — Add a user alias domain or secondary domain (alias domains share the primary domain’s users; secondary domains have their own users) · Merroway — 2048-bit DKIM TXT split.

Verification note: record values, limits and procedure order on this page were checked against the official sources listed above on 12 November 2026.