Google Workspace email security: SPF, DKIM, DMARC and protection against spoofing — Kloudeal editorial illustration

Google Workspace email security: SPF, DKIM, DMARC and protection against spoofing

Kloudeal Journal · Enterprise Technical Guide

Google Workspace email security starts before an employee opens a message. The recipient needs to check who is using your domain, whether the message is from an authorised sender, and how to handle incorrect authentication. SPF, DKIM and DMARC provide different pieces of that verification. None of them alone make an email trustworthy or prevent all fraud attempts.

A robust setup combines sender inventory, domain authentication, inbound controls, and human procedures for sensitive operations. If a billing application continues to send out of alignment, a restrictive policy can block legitimate messages. If a real account is compromised, the attacker can send authenticated mail. The architecture must respond to both problems without confusing them.

This guide explains how to review the domain, interpret results, and deploy improvements progressively. The records and scenarios are illustrative. They are not a production-ready configuration. The capabilities and syntax are based on official sources, while the work order and tests are recommendations to prepare an enterprise implementation.

Documentation reviewed: October 12, 2026 · Illustrative examples

Separate authentication, deliverability and fraud

Authentication answers technical questions about the message and the domain. Deliverability also includes reputation, sending behaviour, content, and receiver decisions. Fraud can leverage a seemingly legitimate identity or lookalike domain. Treating these three problems as one leads to incomplete diagnoses.

For example, in a hypothetical scenario, the ERP sends invoices that end up in spam even though Gmail correctly delivers personal messages. The analysis must study the ERP flow, its authentication and the recipient’s response. Changing user inbox settings will not resolve a sender configuration problem. It would also not be correct to guarantee that publishing DMARC will put all invoices in the main inbox.

In another hypothetical case, a supplier sends from a truly compromised account and asks to change a bank account. The message can pass the provider’s domain checks. The response requires business process verification, independent channels, and incident management. A pass result demonstrates a technical condition, not the legitimacy of a payment request.

Quick answer

SPF authorises senders for a transport identity, DKIM verifies a domain signature, and DMARC requires visible sender-aligned authentication. Enterprise protection adds controls over user accounts, content, and decisions.

Read the identities of a message

The address the user sees in From is not necessarily the identity used during transport. Return-Path reflects a return address related to the envelope. A DKIM signature includes a signing domain in the d= parameter. These differences explain why there may be a valid SPF result that fails to pass DMARC for the visible domain.

The investigation must collect these identities by flow. There is no need to copy the entire message content to an open report. A controlled sample of headers and necessary fields can be retained, with restricted access. Attachments and commercial data from the original email are only included when necessary for the investigation.

An external application can use the provider’s domain for bounces and the client’s domain in From. The organisation should check how that service configures signature and alignment. Adding an include to the SPF of the visible domain does not automatically resolve any combination of identities. The solution depends on which domain the assessment actually uses.

Read the identities of a message
IdentityWhere is it observed?Diagnostic question
Visible senderFromWhat domain does the user recognise?
Return addressReturn-PathWhat identity does SPF evaluate in this flow?
Signing domaind= in DKIM-SignatureWhat organisation signs the message?
Receiver resultAuthentication-ResultsWhat did the system that received it check?

SPF: authorise the correct sending systems

The SPF standard defines authorising hosts to use a domain identity during SMTP. The organisation publishes its policy in DNS and the receiver evaluates it on the received context. The scope should not be described as a signature of the content or as an automatic validation of the person who wrote the message.

The business task is to identify legitimate issuers and match them to their return domains. Includes Google Workspace, applications, gateways and contracted providers. Each service needs an owner to confirm its use. An old registry may contain authorizations for retired platforms, while a new application may continue to function without having gone through a formal review process.

The following example is only for a domain that you submit using Google Workspace, in accordance with the Google’s official SPF guide. You should not replace a company’s setup with other issuers without inventorying them. The value is published as TXT to the appropriate zone and is then verified.

dnsDocumented query
example.com. TXT "v=spf1 include:_spf.google.com ~all"
Example of a read-only query. Replace the illustrative values ​​and review the context and permissions described in this section.

The investigation must distinguish fail, softfail and evaluation errors. The final registration mechanism influences the outcome, but effective treatment is up to the recipient and their policies. Changing ~all to -all for “more security” without understanding the scope can lead to crashes that the team didn’t anticipate. Improvement should be based on validated issuers and proof of delivery.

SPF errors that a superficial check does not detect

Avoid publishing more than one SPF record for the same name, and check that the chain of mechanisms does not exceed the standard’s DNS lookup limit. Nested lookups count, so the number of include statements visible in the first record does not establish the total. Review the complete evaluation and relate each dependency to a legitimate sending service. Keep the findings with the sender inventory so a later provider change can be checked against the same requirement before the record is updated. Use the SPF troubleshooting guide to review the documented checks.

The review should start with actual use. If a supplier no longer sends email, their authorisation can be withdrawn with a check. If it is still active, we study how it publishes its dependencies. Converting all references to static IPs without a maintenance mechanism can fix a limit today and fail when the service changes its infrastructure.

Subdomains require specific attention. A record on the primary domain should not be assumed valid for any name used by an application. The inventory matches each sender identity to its configuration. If marketing and billing use different flows, they are tested independently even if they both show the same brand to the recipient.

A query that returns the expected TXT does not prove that an actual message passes SPF. You have to observe the result of the receiver on a test delivery. When multiple resolvers show different responses, time, cache, and authoritative zone are recorded. Repeatedly changing the record without preserving evidence makes it difficult to distinguish propagation from a syntax defect.

DKIM: publish key and verify signature

DKIM allows a domain to sign parts of the message and the recipient to verify the signature with a published key. The DKIM standard describes that mechanism. The signature does not certify that the content is secure or that the user who sends it has business authorisation to request a specific operation.

The Google Workspace DKIM configuration distinguishes generation, publication and activation. A review should check those stages and a message sent afterward. Finding a TXT under a selector does not prove that Gmail is using that key or that the signature survives its journey to the recipient.

The selector identifies the corresponding key. It is registered together with the domain, issuing service and responsible party. If multiple platforms sign for the company, they can use different selectors. The private key is not published or included in a shared inventory. For a managed service, it documents what part is managed by the manufacturer and what must be maintained by the organisation in DNS.

Coordinate DKIM key rotation with the service that signs messages. Record when the new selector will be used, how it will be published and how long the previous key needs to remain available for messages in transit. An old date alone is not a reason to delete a key: another active sender may still depend on it. Verify representative deliveries after the change and keep evidence of the selector, signing domain and validation result, without exposing private keys in the project records.

DMARC and alignment: why pass may not be enough

DMARC maps the domain visible in From to a valid, aligned SPF or DKIM authentication. The google alignment documentation explains the relaxed and strict modes. The evaluation does not require that both mechanisms pass and align: one of the valid and aligned paths may allow the check to pass.

In a hypothetical scenario, the campaigns app obtains SPF pass for a provider domain and displays From with the company domain. That result does not demonstrate SPF alignment with the visible sender. If the platform offers a properly aligned DKIM signature, another valid path may exist. The technician must check the received message instead of deducing the result from the supplier’s business screen.

Strict alignment may be appropriate in certain layouts, but should not be enabled as an automatic enhancement. The inventory needs to distinguish third-party managed subdomains and branding decisions. A stricter policy without testing may reject legitimate flows. The decision must explain what risk it reduces and what compatibility it requires from issuers.

The DMARC document also helps you to understand policy and reporting. The recommendations in this guide focus on gradual and verifiable implementation, without presenting each record tag as a universal guarantee. The recipient retains the ability to apply its own decisions and exceptions.

Example of observation and reporting policy

A monitoring policy allows information to be collected before requesting restrictive treatment of messages that fail. The following example uses an illustrative domain and mailbox. They must exist and be under the control of the organisation before they are used. The semicolon is part of the technical syntax of the record and is not a writing convention.

dnsDocumented query
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"
Example of a read-only query. Replace the illustrative values ​​and review the context and permissions described in this section.

The important decision is not to copy that line, but to define who will review the reports and what actions they will execute. A mailbox that unaccountably accumulates XML does not offer useful observability. A sending source must be able to be related to its service, owner, and result. Unknown senders are investigated, preventing any IP that appears from being automatically authorised.

When the reporting destination is in another domain, there may be additional authorisation requirements. The Google DMARC reporting guide describes that case. The team should check with the service receiving the reports and avoid exposing sender details to an unapproved third party.

The none policy should not be confused with a finished phase. The review records coverage of issuers, pending issues and criteria for moving forward. If the company decides to maintain observation for a period, it needs to explain what work remains open. A configuration that is abandoned without follow-up can maintain the same risk it was intended to reduce for years.

Inventory issuers without relying solely on reports

Combine DMARC reports with the sender inventory and conversations with system owners. Reports show what participating recipients observed during the period; they do not necessarily reveal every legitimate process. A quarterly application may be absent from a week of reports. Record its owner, expected sending dates and a representative test. This gives the team a way to account for infrequent services before making enforcement more restrictive, rather than treating absence from a short reporting sample as proof that the sender is no longer needed.

Each issuer has a file: purpose, visible domain, return domain, signature, indicative volume, recipients and owner. Figures are not invented if there are no metrics. The person responsible confirms whether the service is still active and provides a test message. The technical team checks the delivery and the authentication result.

Inventory issuers without relying solely on reports
IssuerFunctional ownerValidation sample
corporate gmailEmail administratorMessage to external recipient
BillingAdministrationTest invoice without real data
CampaignsMarketingControlled test sending from the platform
System AlertsOperationsRepresentative notification
Web formWebsite managerTest Request and Response

Retired services are documented before authorizations are removed. The objective is to reduce the authorised sending footprint while maintaining what is legitimate. If the owner is not known, it is treated as an outstanding issue with impact, not a reason to retain any permit indefinitely. A useful review ends with documented decisions and named owners, not a list of DNS records.

Interpret received headers with criteria

The Authentication-Results header should be studied in the context of the receiver performing the check. An attacker can insert similar text within a message. The analyst identifies which results belong to the trusted system and reconstructs the path. It is not enough to look for the word pass on any line.

The sample must retain identities, signing domain and SPF, DKIM and DMARC results. Also the jumps necessary to understand if there is a gateway, redirection or content modification. This information allows you to discuss the problem with the provider without disclosing the entire body of the message when it is not necessary.

In a hypothetical scenario, a service sends a correctly signed message, but a gateway adds content that affects verification. The diagnostic compares samples before and after that stage and reviews the path configuration. Adding more issuers to the SPF without studying the signature may be an answer that does not address the cause.

Record the time, test recipient and relevant configuration with each message sample. Messages with the same subject can follow different paths, and a provider may change its settings between tests. Keep those changes visible so the results can be compared meaningfully. The goal is a representative delivery that can be repeated after correction, not an isolated successful message selected to support a preferred explanation. Include the observed authentication and alignment results with the path used to reach the recipient.

Forwards, lists and gateways

Intermediaries can change the authentication context. A forward modifies the server that delivers to the end recipient. A list can alter subject or content. A gateway can add notices. That’s why a domain policy should test real journeys, not just direct deliveries from Gmail to a personal inbox.

Inventory business mailing lists and authorised forwarding rules alongside direct senders. Identify which processes need them, who maintains them and which systems alter messages along the path. Some external forwarding behaviour cannot be corrected within Google Workspace. The resolution may require a provider change or an agreed adjustment to the business workflow. Record that dependency and test the relevant route before assuming that a successful direct message demonstrates the same authentication result for a forwarded one.

It is not advisable to create a global exception to resolve a specific path. If an intermediary fails, the scope and evidence of the alternative is defined. The acceptance should describe what protection is maintained, what limitation exists, and when it will be reviewed. A large list of trusted senders can reduce controls over messages that were never part of the incident.

The pilot includes sending to lists, replies, automated messages, and representative external recipients. If only direct communication between two users is tested, the project team may declare the domain resolved and then discover failures in bulk sending processes. The advancement criteria must reflect the diversity of routes that the business needs.

Impersonation protection in Gmail

Authenticating your own domain protects part of the problem. For incoming messages, spoofing controls, attachments and links should also be reviewed. The Gmail advanced protection documentation describes available settings and actions. Its configuration must be adapted to specific organisational units and processes.

A warning in Gmail web may not offer the same experience in another client. The team should test the devices and applications used, along with any applicable spam or quarantine actions. Communicating protection that users do not see in their usual email client creates an expectation that support cannot sustain.

Trusted lists deserve review. The authentication documentation in address lists helps understand how to preserve checks when applying exceptions. An urgent request from a user should not turn into a general disabling of controls for an entire external domain.

Notices must be accompanied by understandable instructions. An employee needs to know how to report a suspicious message and what channel to use to verify a sensitive request. Technical controls should be supported by clear instructions that staff can follow. Showing more warnings without training can cause fatigue and cause them all to be ignored.

Compromised accounts and business controls

An attacker with access to a legitimate account can operate within an authenticated flow. That is why the email project must be coordinated with identity protection: MFA, review of authorised sessions and applications, recovery procedures and incident response. Domain authentication is not a substitute for those measures.

Require independent verification for sensitive requests even when the message passes DMARC. A change to payment details, a request for credentials or an instruction to send confidential information needs the business approval procedure and a known verification channel. Authentication can establish a domain-related condition without proving that the account holder authorised the request. Define who can approve the action and how staff report unusual messages, so technical results support the decision without replacing the controls around the business transaction.

In a hypothetical example, an employee receives a request from management to export a customer list. The visible sender and its authentication are correct, but the request is atypical. The user applies the approval process and verifies the context through a known channel. The objective is to prevent partial technical evidence from replacing the judgment of the person responsible for the information.

The response to a compromised account is prepared before the incident. The team needs to preserve evidence, contain access, and review activity and rules according to its procedures. Change commands for production are not offered here because the appropriate action depends on the environment and scope. The guide should help recognise that dependency, not present a universal containment procedure.

Progressive deployment with advancement criteria

The proposed sequence begins with inventory and samples, continues with authentication corrections, and moves on to observation. A more restrictive policy is then evaluated when legitimate flows are controlled. The time of each phase depends on the sending frequency and the problems encountered. There is no guaranteed duration applicable to any company.

01Inventory

Sending services and their owners.

02Correct

True authentication and alignment.

03Observe

Reports and representative deliveries.

04Reinforce

Approved policy and monitoring.

The Google’s gradual recommendation for DMARC serves as a reference. The business plan adds managers, windows and a procedure for incidents. An organisation that already applies a restrictive policy should not automatically lower it to start an observation again. Existing configuration is analysed and protection compatible with fixes is maintained.

The change authorisation must indicate the intended configuration, evidence of testing, and the expected result. If legitimate rejections appear, the team identifies the flow before extending authorizations. A general DNS change can affect applications that do not participate in the initial check. It is necessary to preserve the previous state and coordinate any rollback with the operation.

Read DNS queries and their interpretation

In Windows PowerShell with DnsClient available, the following commands query TXT records. They use example.com as a reserved domain and google as an illustrative selector. The actual selector must be obtained from the service configuration. The Resolve-DnsName reference documents the parameters used.

PowerShellDocumented query
Resolve-DnsName -Name example.com -Type TXT -DnsOnly
Resolve-DnsName -Name google._domainkey.example.com -Type TXT -DnsOnly
Resolve-DnsName -Name _dmarc.example.com -Type TXT -DnsOnly
Example of a read-only query. Replace the illustrative values ​​and review the context and permissions described in this section.

These queries show the TXT records returned by the selected DNS resolver. They do not change DNS or test email delivery. If a record is absent, check the queried name, selector, resolver and propagation state before drawing a conclusion. Complete the investigation by reviewing the authoritative zone and examining a message sent after the configuration change. Record the query time and result alongside that delivery evidence so a later administrator can distinguish a DNS response from an end-to-end authentication test.

Commands that include passwords or tokens should not be run for a public DNS check. If the provider offers a graphical tool, the report retains the relevant fields and date. The evidence must allow the result to be repeated without depending on a capture that does not show the queried name or the context.

Monitoring, maintenance and operation errors

Email authentication needs maintenance as providers are added and services retired. Procurement should establish which domain a platform will send from, who will manage it and how alignment will be verified. Adding a marketing platform without this review can break a policy that has worked correctly for months.

Monitoring observes unknown issuers, legitimate failures, and trend changes. Not every increase in failures represents a company problem: it may reflect spoofing attempts that are correctly addressed by the policy. The report must separate expected failures from errors that affect authorised processes.

Monitoring, maintenance and operation errors
SignalInitial interpretationNext check
Legitimate issuer with failurePossible incorrect configuration or routeSample received and owner
Unknown IP spoofing domainPossible unauthorised activityClassification without expanding permissions
Authenticated spam messagesInsufficient authentication to explain deliveryReputation, content and recipient
Change after contracting a supplierNew flow without full validationIdentities and service signature

The review has an owner and a frequency proportional to the risk and changes. A good policy that no one monitors can slowly degrade. Project closure delivers inventory, approved configuration, test results, and follow-up tasks, as well as any exceptions that need further attention.

Checklist and criteria for requesting a review

  • All services that send with the domain have an identified owner.
  • There is only one valid SPF record per evaluated name and its queries are reviewed.
  • DKIM signs real messages and its selectors are planned for maintenance.
  • Authorised flows pass a DMARC-aligned authentication path.
  • Reporting has an approved destination and someone who interprets it.
  • Forwards, lists, applications and gateways are represented in the tests.
  • Inbound controls are checked on the clients used.
  • Exceptions have scope, justification and review date.
  • Identity and business procedures cover compromised accounts.
  • New provider changes go through validation again.

A useful review should be able to explain why a particular flow fails and what evidence demonstrates its correctness. The Kloudeal services and our work methodology allow defining an adjusted evaluation. If the company is changing platforms, it is advisable to coordinate it with the mail migration project to maintain senders and policies during the transition.

Sources and scope of the documentation

Google and IETF documentation revised on October 12, 2026. Links to sender requirements, SPF configuration and diagnostics, DKIM, DMARC, reporting and Gmail protection. The examples are for query or illustrative syntax, they have not been executed in your environment and require adapting names and context. Deliverability or complete absence of fraud is not guaranteed for activating a DNS record.

Record a test for every legitimate sending service

An email authentication change should have a test record that the next administrator can understand. For each legitimate sending platform, record its business owner, the domain shown to recipients, the sending path and the expected authentication result. Keep a representative message and its relevant headers in the approved project location. This connects a DNS change to a real business process, such as sending invoices or responding to a customer request.

After the change, repeat the test from the application itself. A message sent manually from Gmail does not demonstrate that an external billing platform is aligned correctly. Review unexpected results before tightening enforcement further, and give each unresolved sender a named owner. The record should explain what changed, what was tested and how the previous configuration could be restored if necessary. This helps the company maintain its policy when providers change, rather than treating authentication as a one-off DNS exercise.

Google Workspace Security

Are applications failing to deliver email, or is your domain being spoofed?

We can review Gmail senders, logs, alignment, and controls, and prepare an improvement plan with testing and tracking. Describe the affected flows and provide samples through an appropriate channel.