How to Configure SPF, DKIM, and DMARC for Google Workspace
Step-by-step guide on how to configure SPF, DKIM, and DMARC for Google Workspace Gmail to prevent email spoofing, protect domain reputation, and boost delivery.
Google Workspace

Overview of the Three Email Authentication Standards: SPF, DKIM, and DMARC
To configure SPF DKIM DMARC Google Workspace settings properly is the most effective technical measure to protect your business domain from email spoofing and phishing attacks. Implementing these three core authentication protocols enables receiving mail servers to verify IP authorization, validate cryptographic signatures, and enforce domain alignment policies. As a result, organizations eliminate unauthorized domain abuse while improving legitimate email deliverability to client inboxes instead of spam folders.
According to technical insights from Bizfly and network security standards, SPF (Sender Policy Framework) explicitly defines which mail servers are authorized to send messages on behalf of your domain. DKIM (DomainKeys Identified Mail) adds a cryptographic signature to email headers, ensuring the message content remains unampered during transit. DMARC (Domain-based Message Authentication, Reporting, and Conformance) builds upon SPF and DKIM by defining policy enforcement rules and providing feedback reports to domain administrators. Combining all three protocols establishes maximum domain reputation and complies with modern global cybersecurity standards.
A 6-Step Preparation Roadmap for Audit and Alignment
Before publishing new DNS records, organizations should adopt a structured 6-step implementation roadmap as recommended by industry analysts like Bizfly. The essential first step is conducting a thorough domain audit to identify all active mail sources. This inventory must account for primary Google Workspace accounts, CRM systems, automated invoicing platforms, and third-party email marketing tools. Failing to catalog legitimate senders prior to security enforcement often leads to legitimate business emails being blocked or flagged as spam.
Next, IT administrators must check sending server IP addresses to confirm they match the hostname specified in the PTR record, adhering to official Google Mail Sender Guidelines. Verifying hostnames and collecting server credentials ensures that subsequent SPF definitions, DKIM key generation, and DMARC policies seamlessly align without interrupting day-to-day corporate correspondence.
Step-by-Step Guide to Configuring SPF Records for Google Workspace
Configuring SPF for Google Workspace involves logging into your domain registrar or DNS management console and creating a new TXT record. As outlined by Adtimin, set the Host or Name field to @ or leave it blank depending on your DNS provider interface. In the Value or Destination field, enter the exact string: v=spf1 include:_spf.google.com ~all. This statement explicitly informs receiving email servers that Google's authorized mail infrastructure is permitted to transmit messages for your domain.
The ~all mechanism represents a SoftFail tag, indicating that emails originating from servers outside the designated list should be accepted but flagged for additional inspection. If your business utilizes external sending tools, you must insert additional include: directives (such as include:thirdparty.com) inside the single SPF record before the ~all flag. Creating multiple SPF TXT records for a single domain is a severe configuration error that invalidates SPF validation altogether.
Generating and Publishing DKIM Records in Google Admin Console
Unlike SPF, setting up DKIM begins inside the Google Admin Console interface. Administrators navigate to Apps, select Google Workspace, click on Gmail settings, and choose Setup DKIM. Click Generate new record, set the prefix selector to google, and select the cryptographic key length. Google Workspace provides two key length options: 1024-bit and 2048-bit keys.
According to Adtimin technical guidelines, 1024-bit keys offer broad compatibility and are recommended when managing DNS through certain Vietnamese providers with strict string length restrictions on TXT records. Conversely, 2048-bit keys deliver superior encryption security but require DNS providers capable of handling longer record values. Once generated, administrators copy the text string, add a TXT record named google._domainkey in their DNS control panel, and return to Google Admin Console to activate DKIM signing.
Setting Up DMARC Records and Choosing Policy Enforcement Levels
DMARC relies on the combined authentication results of SPF and DKIM to determine how unverified emails should be handled. Based on the Google Workspace Knowledge Base, a DMARC record is published as a DNS TXT record under the host name _dmarc. A standard DMARC record string follows the format: v=DMARC1; p=reject; rua=mailto:postmaster@example.com, mailto:dmarc@example.com; pct=100; adkim=s; aspf=s, where the tags v=DMARC1 and p= must strictly appear first.
The policy tag p= dictates the enforcement action for non-compliant emails across three progressive levels: p=none (monitoring mode with no action taken), p=quarantine (delivering suspicious messages to spam), and p=reject (blocking unauthenticated emails entirely). Google recommends that organizations begin with p=none to analyze report data without risk of blocking legitimate communications. Once all legitimate sending sources are verified and aligned, administrators can safely escalate policy enforcement to p=quarantine and ultimately p=reject.
Managing Third-Party Senders and Monitoring DMARC Reports
A critical ongoing task for IT departments is ensuring that third-party sending platforms (such as CRM or automated transactional services) fully authenticate their outgoing mail. According to Google Support documentation, if a third-party application sends emails displaying your domain in the From: header, those messages must pass SPF or DKIM checks with proper domain alignment. Administrators must integrate these providers into the primary SPF record or configure dedicated DKIM keys supplied by the vendor.
Additionally, defining report recipient addresses via the rua=mailto:... tag allows domain owners to collect automated daily aggregate reports from major mail receivers. These reports reveal sending IP addresses, traffic volumes, and authentication pass/fail metrics. Routinely analyzing DMARC feedback enables administrators to uncover fraudulent activity impersonating their domain and rectify missing authentication configurations for authorized internal software.
Common Pitfalls, DNS Constraints, and a Practical Deployment Checklist
Organizations frequently encounter deployment mistakes, such as creating multiple SPF records on a single domain, failing to activate DKIM signing in Google Admin Console after adding DNS entries, or applying an aggressive p=reject policy prematurely. According to Google Support, improper email authentication can cause receiving servers to reject legitimate mail with error 5.7.26. Furthermore, Google advises utilizing the official Gmail web interface (gmail.com) to leverage built-in anti-phishing warnings and spam reporting features alongside standard DNS protocols.
To maintain complete email security compliance, IT teams should follow a comprehensive verification checklist: verify that only one valid SPF TXT record exists containing include:_spf.google.com; confirm DKIM status is active under google._domainkey; ensure a DMARC record is published starting with p=none; and review alignment with cybersecurity standards like Cyber Essentials. Following these verified steps ensures robust domain protection, optimal email placement, and seamless business communication.
Frequently asked questions
Need expert technical assistance in configuring Google Workspace and securing your corporate email infrastructure? Contact TS68 today for professional consultation and seamless deployment.
Sources
More articles

How the Law on E-Transactions Impacts Corporate Document Digitization
The amended Law on Electronic Transactions provides a legal framework for corporate document digitization in Vietnam. This article analyzes legal validity requirements, digital signatures, electronic certificates, and compliance roadmaps for enterprises.

Enterprise Data Loss Prevention DLP: Stop Sensitive File Leaks via Email and Cloud
A comprehensive guide on enterprise data loss prevention DLP to prevent accidental file leaks via email and cloud drives, manage shadow data risks, and ensure compliance.

Automating Customer Request Classification and Routing with AI
Discover how to automatically classify customer inquiries using artificial intelligence and route them to the right personnel, optimizing business operations and customer experience.

Email Migration to Google Workspace: Step-by-Step Roadmap
Moving corporate mailboxes from legacy hosting services to Google Workspace requires structured planning. Discover the complete step-by-step roadmap covering pre-migration checks, data synchronization via Google Admin Console, DNS cutover, and post-migration security setup.

How to Configure SPF, DKIM, and DMARC for Microsoft 365 Email
A comprehensive guide on configuring SPF, DKIM, and DMARC for Microsoft 365 to secure domain reputation, prevent email spoofing, and improve deliverability.
