عربي
News
●E-invoicing: the last date to connect for wave 25 is February 1, 2027●WhatsApp Business: service messages are paid after 1,000 free per month●Salla acquires Paylink to strengthen payment solutions for merchants●Google launches a Gemini agent for businesses first, then consumers●Hostinger's White Friday deals continue until December 14

Authenticate your domain's email (SPF, DKIM and DMARC) in Google Workspace

So your invoices and offers don't land in spam, and nobody can impersonate your domain: three records, step by step.

The problem

You send a quote or an invoice from your company email and it lands in the client's spam folder. Or worse: someone sends messages in your domain's name without your knowledge, and your customers lose trust in you. The fix is to prove to email providers that messages sent from your domain are authorized, using three DNS records known as SPF, DKIM and DMARC.

The tool

The Google Workspace admin panel (Admin console), together with the DNS settings at the company where you bought the domain. You need super administrator permission and Gmail settings permission to generate the DKIM key. The steps are taken from Google Workspace's official help pages.

The steps

  1. First check whether your domain already has an SPF record, using one of the free checking tools online. If one exists, edit it and don't add a second one, because each domain should have a single SPF record.
  2. Add the SPF record. In the DNS panel create a record of type TXT, with the host (Host) set to @ for the root domain, and the value, if you send from Google only: v=spf1 include:_spf.google.com ~all. If you also send from other services (such as a newsletter platform), add their include inside the same record, up to a maximum of 10 include tags. Some providers may ask you to put the value between quotation marks. It takes up to 48 hours to take effect.
  3. Prepare DKIM. If you only just turned on Gmail, wait 24 to 72 hours before generating the key, or an error may show up in the DKIM record. In the Admin console go to Apps then Google Workspace then Gmail, and click Authenticate email.
  4. Choose the domain from the Selected domain list, then click Generate New Record. Choose a key length of 2048 if your domain provider supports it, otherwise choose 1024. Keep the default prefix google unless it is already used for another key. Click Generate.
  5. Copy the host name (it looks like google._domainkey) and the value that starts with v=DKIM1; k=rsa; p=. Don't click Start authentication yet.
  6. Create a TXT record in the DNS panel with this host and this value. If the provider rejects the value because of its length, check the length limits in its documentation. DKIM may need up to 48 hours to work.
  7. Go back to Authenticate email, choose the domain, and click Start authentication. When it succeeds, the status changes to Authenticating email with DKIM.
  8. Verify DKIM: send a message to a Gmail address other than your own (sending to yourself proves nothing), open the message and then view the full header, and look in the Authentication-Results line for the DKIM result with the value pass.
  9. After 48 hours have passed since you turned on SPF and DKIM, prepare DMARC. Create a group or a dedicated mailbox to receive the daily DMARC reports, such as dmarc@yourdomain.
  10. Add a TXT record with the host _dmarc, and start with a monitoring-only policy: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com. Some DNS providers add the domain name automatically, so check the record after saving it and verify it with a free DMARC checking tool.
  11. Review the reports for days or weeks. If legitimate services show up failing SPF and DKIM (newsletters, invoices, the store), configure them with their provider. Then move to p=quarantine to send suspicious mail to spam, and finally p=reject. Google recommends starting with none and then upgrading gradually, and you can use pct= to apply the policy to part of the messages first.

The real cost

There is no extra cost in Google Workspace itself, nor in the DNS records at most domain providers. The real cost is your time spent reviewing reports, or the price of a DMARC report analysis service if you want to read them in a simplified form.

The free alternative

If your email is with a provider other than Google, the same records (SPF, DKIM and DMARC) exist there with different values, so follow your provider's documentation. And the free DNS checking tools online are enough to verify the result.

Heads-up

  • We haven't tried these steps ourselves yet, and they are based on Google's current official help pages.
  • Don't jump straight to p=reject: legitimate messages may be blocked from services you haven't configured yet.
  • The ruf option in DMARC isn't supported in Gmail, so rely on rua reports.
  • Any service that sends in your domain's name must pass SPF and DKIM, so make sure it's set up with its provider before you tighten the policy.

Sources

  1. knowledge.workspace.google.com
  2. knowledge.workspace.google.com
  3. knowledge.workspace.google.com

Did you like this guide?

The weekly newsletter is being prepared. Leave your email and we'll send it when it launches.

We use your email only to send the newsletter. Privacy policy