13 min read Diesen Artikel auf Deutsch lesen Lire cet article en français Ler este artigo em português
G Suite DKIM Setup: Steps, Record and Fixes
The short answer
G Suite DKIM is now set up in Google Workspace. Open Admin console > Apps > Google Workspace > Gmail > Authenticate email, generate a key and publish it as a TXT record at google._domainkey.yourdomain. Wait until it resolves, then click Start authentication. That key only signs mail that leaves Google's servers. Mail that EmailFlow OS sends through your own Brevo account needs Brevo's own DKIM record on the same domain, under a separate selector.
In this article
- What is G Suite DKIM and where do you turn it on?
- How do I set up DKIM in G Suite step by step?
- What does a G Suite DKIM record look like?
- Which DKIM key length should you pick in Google Workspace?
- Why does DKIM still fail after publishing the Google record?
- How do I check that G Suite DKIM is working?
- How do I rotate a G Suite DKIM key?
- Does G Suite DKIM cover email sent through Brevo?
- How do I set up DKIM for Brevo next to Google Workspace?
- How do SPF and DMARC fit with Google and Brevo on one domain?
- Questions people ask
What is G Suite DKIM and where do you turn it on?
To turn on G Suite DKIM, you generate a key in the Google Admin console, publish it as a TXT record in your DNS and then click Start authentication. G Suite is the old name for Google Workspace, so the setting now sits under Workspace, but the mechanism hasn't changed. Google's outgoing servers sign each message with a private key, and receiving servers look up the matching public key in your DNS to check the signature. If you skip the setup, Google still signs your mail. Google Workspace Admin Help ("Set up DKIM") explains that in that case it uses a default key on a Google-owned gappssmtp.com domain instead of your own. That signature passes DKIM, but it doesn't align with your From domain, so it doesn't help with DMARC.
To sign with your own domain, a super admin opens the Admin console and goes to Apps > Google Workspace > Gmail > Authenticate email. Pick the domain, click Generate new record and choose a key length. Google shows the host name and TXT value to publish. Signing only begins once you come back to the same screen and click Start authentication. That step gets skipped a lot, because publishing the DNS record feels like the end of the job.
How do I set up DKIM in G Suite step by step?
Setting up DKIM in G Suite takes place in two systems: the Google Admin console and your DNS host. You need super admin rights in Workspace and edit access to the DNS zone that actually serves your domain. If your domain's nameservers point somewhere other than your registrar, edit the records there and not at the registrar. Our overview of Google Workspace DNS records for MX, SPF and DKIM lists every record Workspace expects.
- Sign in to admin.google.com with a super admin account.
- Go to Apps > Google Workspace > Gmail > Authenticate email. If you run more than one domain, pick the right one from the drop-down.
- Click Generate new record. Google offers two key lengths. Choose the longer one if your DNS host can store it, and keep the default prefix google unless you're rotating keys.
- Copy the two values Google shows: the host name google._domainkey and the TXT value. The value starts with a DKIM version tag, then k=rsa, then p= followed by a long encoded public key.
- In your DNS panel, create one TXT record with the host google._domainkey and paste the full value. Don't add a second record for the same host.
- Wait until the record resolves, because DNS changes take time to spread. Check with dig TXT google._domainkey.yourdomain.com and only continue once it returns the full value.
- Go back to Authenticate email and click Start authentication. Then send a test message to a Gmail address, open Show original and confirm DKIM: PASS with d=yourdomain.com in the DKIM-Signature header.
What does a G Suite DKIM record look like?
A G Suite DKIM record is a TXT record in your domain's DNS. The DKIM specification says the host name is the selector followed by the fixed label _domainkey. Google's default selector is google, so the full name is google._domainkey.yourdomain.com. You can pick a different prefix when you generate the key, which is useful when you rotate keys or run several Workspace domains. The value is a list of tags: a version tag, then k=rsa for the key type, then p= and the encoded public key. Copy the value exactly as Google shows it. One missing character or a stray space in the p= string breaks the signature on every message.
Most DNS panels want only the host part, so just google._domainkey. If you type the full name, many providers append the zone anyway and you end up with google._domainkey.yourdomain.com.yourdomain.com. Our GoDaddy DKIM setup for Brevo senders shows the same doubled-host problem. To see what's actually published, run dig TXT google._domainkey.yourdomain.com and compare the p= value character by character with the one in the Admin console.
Which DKIM key length should you pick in Google Workspace?
Pick the longer of the two keys Google offers. Fall back to the shorter one only if your DNS host can't store the long key. A longer key is harder to break, but it runs into a DNS format limit. The DNS standard caps the length of a single character-string inside a TXT record, and Google's encoded long key is longer than that cap. Most modern DNS panels split the value into several quoted strings for you, and the DKIM specification tells receivers to join those strings back together before checking the key. Some older panels reject the value outright, though, and others cut it short without any warning. A truncated key looks fine in the panel but fails at every receiving server.
- Generate the longer key in Authenticate email and copy the full TXT value.
- Paste it into your DNS panel as one TXT record at google._domainkey.
- If the panel refuses it, split the p= value into chunks that each stay under the per-string limit. Put each chunk in its own quotes, all inside one record.
- Query the record with dig and confirm that the joined strings match Google's value exactly.
- If your provider can't handle multi-string TXT records at all, generate the shorter key. It's weaker, but a key that works beats one that doesn't.
Why does DKIM still fail after publishing the Google record?
Publishing the record is only half the job. Until the record resolves in DNS, the Start authentication button fails or shows an error, so wait until dig returns the full value. If mail still fails after that, it's nearly always one of the five causes below. To check, open a test message in Gmail, choose Show original, and read the DKIM line and the d= domain in the DKIM-Signature header.
- Start authentication was never clicked: the record exists, but Google keeps signing with its default gappssmtp.com domain, so the d= value isn't yours.
- Doubled host name: the panel appended the zone to a fully qualified host, so the record sits at the wrong name.
- Truncated key: the value was longer than the TXT per-string limit, and a panel that doesn't split strings cut it off.
- Wrong nameservers: the record was added at the registrar, but DNS is actually served from somewhere else.
- Body changed in transit: a mailing list or security gateway rewrote the message after it was signed, which breaks the body hash in the signature's bh= tag.
How do I check that G Suite DKIM is working?
You check G Suite DKIM in three places, and each one answers a different question. DNS tells you whether the key is published. The Admin console tells you whether Google is using it. A received message tells you whether receivers accept it. If you only check one of them, you'll miss the failure the other two would catch.
- DNS: run dig TXT google._domainkey.yourdomain.com. You should get exactly one record whose joined value matches the Admin console.
- Admin console: the Authenticate email screen for your domain should show that authentication has started, not just that a record was generated.
- Received message: send to a Gmail address and open Show original. You want DKIM: PASS, d=yourdomain.com and s=google (or your custom prefix) in the DKIM-Signature header.
- DMARC reports: once a _dmarc record with a rua address is live, the aggregate reports list DKIM results per sending source, which shows whether Workspace mail is passing across all receivers rather than in one test.
Our guide on how to read a DMARC report as XML explains which fields hold the DKIM result and the d= domain.
How do I rotate a G Suite DKIM key?
To rotate a G Suite DKIM key, generate a new record under a new prefix, publish it, and switch signing over only after the new record resolves. The selector is what makes this safe. Receivers read the s= tag in each signature and fetch the key at that exact name, so an old key and a new one can sit in DNS side by side. What goes wrong: if you overwrite the existing google._domainkey value in place, messages that were signed with the old key but are still in transit or queued for retry fail verification once the old public key is gone.
- In Authenticate email, generate a new record and enter a prefix that differs from the one in use.
- Publish the new TXT record at newprefix._domainkey and confirm it with dig.
- Click Start authentication so Google signs with the new key.
- Check Show original on a test message for the new s= value.
- Remove the old record only after mail signed with it has had time to be delivered.
Does G Suite DKIM cover email sent through Brevo?
No. The server that sends a message adds the DKIM signature, and Google's key only signs mail that leaves Google's own servers. When EmailFlow OS sends your outreach, it goes out from your own inbox address, through your own Brevo account and your own sending domain. It never uses a shared platform sender. Brevo is the server doing the sending, so Brevo has to sign the mail, and it gives you its own DKIM record to publish on your domain.
Here's how it works in EmailFlow OS. You record one video and upload it, connect your Brevo account and sending domain, and import your prospect list into EmailFlow OS. EmailFlow OS then makes a personalised version of that single recording for each recipient and sends every version through your Brevo account. The Google and Brevo keys use different selectors, so both DKIM records can live on the same domain without clashing. Getting both records in place before you raise volume is part of domain warm-up for cold outreach, and our guide to cold outreach with EmailFlow OS goes into more detail.
How do I set up DKIM for Brevo next to Google Workspace?
Short answer: authenticate your sending domain in your Brevo account, publish the DKIM record Brevo gives you in the same DNS zone that already holds google._domainkey, and don't touch the Google record. DKIM for Brevo and DKIM for Google are two separate keys under two separate selectors. Each one signs only the mail its own servers send, so if both send for your domain, you need both. Our comparison of Brevo vs Mailchimp on billing, DKIM and outreach covers how Brevo handles domain authentication in more depth.
- In your Brevo account, open the domain settings for your sending domain and copy the authentication records Brevo shows. Use the record type, host and value exactly as Brevo shows them.
- Add them in the DNS zone your nameservers actually point to, which is the same place you published google._domainkey.
- Enter only the host part if your panel appends the zone automatically, or you'll end up with a doubled host name.
- Don't delete or overwrite google._domainkey. Workspace mail still needs it.
- Once the records resolve, confirm the domain in Brevo, then send a test through Brevo to a Gmail address. In Show original, the DKIM-Signature header should show d=yourdomain.com and a selector other than google.
Where it stops: a Brevo DKIM key does nothing for mail sent from the Gmail web interface, and the Google key does nothing for mail sent through Brevo. If the d= domain in Brevo's signature isn't your From domain, DKIM can pass while DMARC alignment still fails. SPF also works differently from DKIM. You don't add a second SPF record for Brevo. You merge Brevo's include into the one SPF record you already have.
How do SPF and DMARC fit with Google and Brevo on one domain?
DKIM is only one of three records mailbox providers check. Google's Email sender guidelines ask everyone who sends to Gmail accounts to set up SPF or DKIM, and they require bulk senders to use SPF, DKIM and DMARC together. When Workspace and Brevo both send for the same domain, these are the details that usually go wrong. If you're already seeing failures, our page on SPF failed causes, checks and fixes walks through the error results.
- One SPF record only: the SPF specification allows a single SPF TXT record per domain, and two records produce a permerror. Merge Google's include:_spf.google.com and Brevo's include into one record instead of publishing two.
- Lookup cap: the SPF specification limits how many DNS-querying terms one check may trigger. Past that limit, evaluation fails with a permerror, and every include counts toward it.
- DMARC alignment: the d= domain in at least one passing DKIM signature, or the SPF domain, has to match your From domain. Under relaxed alignment, a subdomain of the same organisational domain counts.
- Start with p=none: publish _dmarc with p=none and a rua address, and read the aggregate reports for both senders. Move to quarantine or reject only after that.
Google Workspace DMARC: record and rollout covers the move from p=none to enforcement, and DKIM, DMARC and SPF for cold email senders explains how all three checks work together. For the header and structure requirements of the messages themselves, see our cold email format guide, which covers structure, headers and video.
Questions people ask
- Is G Suite DKIM the same as Google Workspace DKIM?
- Yes. G Suite is the old name for Google Workspace, and the DKIM feature works the same way. You still generate the key under Apps > Google Workspace > Gmail > Authenticate email, publish it as a TXT record at google._domainkey by default, and turn signing on with Start authentication.
- How long does Google DKIM take to start working?
- It depends on how quickly your DNS change spreads. Once dig returns the full TXT value at google._domainkey, you can click Start authentication, and new outgoing mail is signed with your key. Mail sent before then keeps Google's default signature on a gappssmtp.com domain, which doesn't align with your From address.
- How does DKIM for Brevo work with Google Workspace?
- Brevo DKIM is a separate key that signs only the mail Brevo sends for your domain. You copy the record from your Brevo account's domain settings, publish it next to google._domainkey under its own selector, and confirm the domain in Brevo. SPF allows only one record per domain, but both DKIM keys can sit side by side.
- Can I have two DKIM records on one domain?
- Yes. Each DKIM record lives at its own selector, for example google._domainkey for Workspace and a separate selector for Brevo. Receivers read the s= tag in each message's DKIM-Signature header to know which key to fetch, so several keys don't conflict. SPF is different: the SPF specification allows only one record per domain.
- What happens if I skip DKIM for my own domain in Workspace?
- Google still signs your mail, but with a default key on a Google-owned gappssmtp.com domain. DKIM passes, but the signature doesn't align with your From domain, so DMARC can only pass through SPF. Once a message is forwarded, SPF usually fails, because the forwarding server isn't listed in your SPF record, and DMARC then fails too.