Fix: Google Workspace Emails Going to Spam (SPF, DKIM, and DMARC for Gmail)
Your office sends an invoice or appointment reminder from Google Workspace and the recipient never sees it. It lands in their Gmail or Outlook Junk folder, or bounces with 550 5.7.26 This mail has been blocked because the sender is unauthenticated or 550 5.7.1 Unauthenticated email from yourdomain.com is not accepted due to domain's DMARC policy. Mail between coworkers is fine, which hides the problem.
This typically affects organizations that moved to Google Workspace without finishing DNS setup, or that added a marketing platform, CRM, or copier that sends as the company domain. Since February 2024 Gmail and Yahoo enforce authentication for all senders, and Microsoft added similar rules for Outlook.com in 2025, so records that were good enough a few years ago now cause silent failures.
Why This Happens
Receivers now require proof that your domain authorized the message. Three DNS records provide it. SPF (Sender Policy Framework) lists which servers may send for your domain. DKIM (DomainKeys Identified Mail) adds a cryptographic signature proving the message came from a server holding your key and was not altered. DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receivers what to do when both fail and requires that at least one is aligned with the visible From domain.
Missing or unaligned DKIM
Google signs all outgoing Workspace mail, but if you never generated a DKIM key it signs with a shared identity such as yourdomain-com.20230601.gappssmtp.com. That passes DKIM but fails DMARC alignment because the signing domain does not match your From domain.
Third-party senders missing from SPF
A newsletter tool, HubSpot, QuickBooks, a website form, or a copier sending as billing@yourdomain.com is not covered by include:_spf.google.com. Its mail fails SPF and, without your DKIM key, fails DMARC. SPF also allows at most 10 DNS lookups; stacking includes silently breaks the whole record with a PermError.
No DMARC record or a broken one
Gmail and Yahoo require DMARC for anyone sending more than about 5,000 messages a day and treat its absence as a negative signal at any volume. A record with a syntax error, or two DMARC records on one domain, counts as none. Once authentication is correct, remaining spam placement is reputation: a new domain, a volume spike, recipients marking spam, or link-heavy content.
How to Fix It
Method 1: Fix SPF
- Inventory every service that sends as your domain: marketing platform, CRM, accounting, ticketing, website forms, copiers.
- In your DNS host (wherever your nameservers point), edit the single root TXT record so it lists every legitimate sender, for example:
v=spf1 include:_spf.google.com include:servers.mcsv.net include:_spf.hubspot.com ~all - Keep exactly one SPF record. Two TXT records starting with
v=spf1invalidate both. - Check the lookup count with MXToolbox. If it exceeds 10, remove unused includes or move that sender to DKIM-only authentication.
Method 2: Enable DKIM in Google Workspace
- In the Google Admin console, go to Apps > Google Workspace > Gmail > Authenticate email.
- Select the domain, click Generate new record, choose a 2048-bit key, and keep the selector
google. - Create a TXT record at
google._domainkey.yourdomain.comwith the value Google displays. Some DNS hosts require splitting values longer than 255 characters. - Wait for DNS to propagate (usually under an hour, up to 48), return to the same page, and click Start authentication. The status should change to “Authenticating email”.
- For each third-party sender, enable custom DKIM in that platform (often called “domain authentication”) and add its CNAME or TXT records so its mail aligns with your domain.
Method 3: Publish DMARC and move to enforcement
- Create a TXT record at
_dmarc.yourdomain.com:v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com; pct=100Point
ruaat a reporting service (dmarcian, Valimail, EasyDMARC, or similar), because raw reports are XML and arrive daily from every receiver. - Review reports for two to four weeks. Every legitimate source should show SPF or DKIM aligned; fix any that do not.
- Change the policy to
p=quarantine, then after another clean period top=reject. This is the step that stops criminals spoofing your domain in phishing attacks against your clients.
Method 4: Address reputation and Gmail-specific settings
- Register the domain in Google Postmaster Tools (postmaster.google.com) and keep the user-reported spam rate under 0.3 percent.
- For bulk mail, include a one-click List-Unsubscribe header. Marketing platforms handle this once authentication is configured.
- If the problem is inbound (partner mail landing in your users’ Spam), go to Apps > Google Workspace > Gmail > Spam, Phishing and Malware and add the partner domain to an approved senders list. Never bypass filters for your own domain; that invites spoofing.
How to Verify the Fix Worked
- Send to a Gmail account you control, open the message, choose Show original, and confirm SPF: PASS, DKIM: PASS with your domain, and DMARC: PASS.
- Run your domain through MXToolbox and confirm one valid SPF record under 10 lookups, the
googleDKIM selector, and a valid DMARC record. - Send a test from each third-party platform and repeat the check.
- After a week, confirm DMARC reports show near 100 percent alignment for legitimate sources.
If It Still Isn’t Working
Authentication passes but mail still lands in spam. That is reputation or content. Check Postmaster Tools for a Low or Bad domain reputation, check Reporting > Email log search for a compromised account sending unusual volume, and remove URL shorteners and image-only templates. Reputation recovers over weeks.
DKIM shows “Not authenticating”. Verify the record with nslookup -type=TXT google._domainkey.yourdomain.com. A missing record, a stray space, or DNS hosted somewhere other than where you edited are the usual causes.
Only one recipient rejects you. Their filtering (Mimecast, Proofpoint, Microsoft Defender) may hold a stale block. Ask their IT contact for the rejection text.
If DMARC reports show unknown sources sending as your domain, treat it as possible spoofing or account compromise, not a deliverability issue.
How Capital Techies Handles This for Managed Clients
For managed Google Workspace clients, Capital Techies configures SPF, DKIM, and DMARC during onboarding, monitors DMARC aggregate reports so a new SaaS tool or copier is caught before it fails, and moves every domain to p=reject on a documented schedule. Because we manage DNS and the Admin console, an approved sender is added the same day, and Postmaster Tools alerts feed our monitoring alongside SentinelOne, Microsoft Defender, and Cisco Meraki telemetry.
The result is mail that reaches clients and patients the first time, a domain criminals cannot easily impersonate, and a confident answer on insurance and compliance questionnaires. Talk to Capital Techies about managed IT support.
Frequently Asked Questions
Google Workspace already signs our mail. Why do we still need to set up DKIM?
Without a DKIM record for your own domain, Google signs outgoing mail with a shared gappssmtp.com identity. That signature is valid but not aligned with your From domain, so DMARC treats it as a failure. Generating and enabling a DKIM key in the Admin console fixes alignment.
Should we use ~all or -all at the end of our SPF record?
Use ~all (softfail) until every legitimate sender is listed and DMARC reports have been clean for a few weeks, then move to -all if you want a hard fail. DMARC is what actually enforces rejection, so an enforcing DMARC policy matters more than the SPF qualifier.
Is a DMARC policy of p=none enough?
p=none meets the minimum Gmail and Yahoo requirement and gives you reports, but it tells receivers to deliver spoofed mail anyway. Once reports show all legitimate sources aligned, move to p=quarantine and then p=reject. Cyber insurance questionnaires and CMMC assessments now expect an enforcing policy.