Support Library
Google Workspace Email Deliverability Troubleshooting
A step-by-step workflow for Google Workspace admins: trace the message in Email Log Search, see what Gmail decided and why, and fix the authentication or routing behind it.
The short answer
Open Email Log Search in the Google Admin console. It shows whether Gmail received the message, each delivery step, and what happened after delivery: the label it got, whether it was marked as spam, and whether it was deleted. If a rule held it, look in the admin quarantine. If Gmail rejected or filtered it, read the headers with Show original: the SPF, DKIM and DMARC lines say which check failed. Most fixes are DNS records (SPF, the google DKIM key, DMARC) or the inbound gateway setting.
Every sender needs SPF or DKIM, valid forward and reverse DNS and TLS, and a spam rate under 0.3%. Senders of more than 5,000 messages a day to personal Gmail accounts also need SPF, DKIM and DMARC, a From domain aligned with SPF or DKIM, and one-click unsubscribe on marketing mail. These rules apply to your Workspace domain too when it sends.
Setting up a domain: the DNS checklist
Most Google Workspace delivery problems trace back to a step skipped at setup. Use this list for a new domain, or to audit an existing one. Copy every value from the Google Admin console for your own account rather than from a guide, because Google has changed its recommended records over time.
| Step | Record | Where the value comes from |
|---|---|---|
| 1. Verify the domain | TXT at the domain, starting google-site-verification= | Shown during setup in the Admin console. Leave it in place after verification. |
| 2. Route mail to Gmail | MX at the domain. New setups get a single record, smtp.google.com with priority 1; older setups use the aspmx.l.google.com set, which still works. | Admin console, Gmail setup. Remove MX records for the old mail system once you switch. |
| 3. SPF | One TXT record such as v=spf1 include:_spf.google.com ~all, with any other senders added to the same record | Google's SPF help page. Never add a second v=spf1 record. |
| 4. DKIM | TXT at google._domainkey (or the selector you choose) | Admin console: Apps, Google Workspace, Gmail, Authenticate email. Generate a 2048-bit key, publish it, wait for DNS, then press Start authentication. |
| 5. DMARC | TXT at _dmarc, starting with v=DMARC1; p=none; rua=mailto:... | You write it. Move to quarantine and reject in stages, as in Email Phishing Protection. |
| 6. Other senders | DKIM for each service that sends as your domain, and their SPF includes | Each service's own setup guide |
Checking the setup
| Command | What you want to see |
|---|---|
| dig +short MX example.com | Only Google's MX hosts |
| dig +short TXT example.com | One v=spf1 record that includes _spf.google.com, and the verification record |
| dig +short TXT google._domainkey.example.com | A record starting v=DKIM1 |
| dig +short TXT _dmarc.example.com | One record starting v=DMARC1 |
| Resolve-DnsName example.com -Type MX | The MX check from Windows PowerShell |
Then send a message from Gmail to an outside mailbox and open Show original: SPF, DKIM and DMARC should each say PASS for your domain. Google's Admin Toolbox Check MX also tests the records. If something still fails, work through the troubleshooting steps below.
Match the symptom to a starting point
| Symptom | Likely cause | Look first |
|---|---|---|
| Your mail bounces with 550 5.7.26 | The message is unauthenticated: SPF and DKIM both failed, or DMARC failed with an enforcing policy | Your SPF record and the DKIM status in the Admin console |
| Bounce mentions 5.7.1 and IPv6 or PTR | The sending IPv6 address has no matching reverse DNS | The PTR record for the sending server |
| Deferral with 4.7.28 | Gmail is rate limiting a sender that suddenly sent too much | Sending volume; slow down and retry |
| Inbound message never shows in Email Log Search | It never reached Google: the MX points elsewhere, or a gateway in front held it | Your MX records and the gateway's logs |
| Delivered, but in a user's Spam folder | Gmail's spam verdict, a failed authentication check or a user filter | Post-delivery details in Email Log Search, then the headers |
| Held and not delivered | A compliance, attachment or spam setting sent it to an admin quarantine | Admin quarantine |
| Mail from a printer, app or SaaS tool fails DMARC | It sends as your domain without your SPF or DKIM | The SMTP relay service and the tool's own DKIM setup |
Step 1: search the logs
In the Admin console go to Menu > Reporting > Email Log Search. You need the Gmail Settings administrator privilege. Predefined searches cover today, the last 48 hours and the last 7 days. A custom search can cover any range within the last 30 days. For older messages, the recipient address and Message ID are both required, and only post-delivery status is shown.
Search by sender (full or partial, or the Return-Path address), recipient, sender or recipient IP, subject or Message ID. Partial addresses need at least three characters and wildcards are not supported. A search returns up to 1,000 messages. Open a result to see each delivery step and, after delivery, the labels, the folder, whether it was marked as spam and whether a user deleted it. Email Log Search never shows message content.
Enterprise and Education editions can also export Gmail logs to BigQuery and search them in the security investigation tool, which helps with incidents that span many messages.
Step 2: check the admin quarantine
Quarantines hold messages caught by a content compliance, objectionable content or attachment compliance rule with a quarantine action, or by a spam setting that sends spam to quarantine instead of the Spam folder. Open the admin quarantine at admin.google.com/ac/moderation. New sessions open on messages pending a decision, and you can filter by quarantine and status.
Select messages and choose Allow to deliver them or Deny to block them. Both actions are final. Denied messages are deleted for good 30 days after they were sent. Admins other than super admins need a custom role with the Access Admin Quarantine privilege, or Access Restricted Quarantines for specific ones.
When the same rule keeps quarantining good mail, change the rule, not the release habit. Email Log Search tells you which rule matched.
Step 3: fix SPF, DKIM and DMARC
| Record | Google Workspace value | Common mistake |
|---|---|---|
| SPF (TXT at the domain) | v=spf1 include:_spf.google.com ~all, plus every other service that sends as you | Two SPF records, or more than 10 DNS lookups once every include is added |
| DKIM (TXT at google._domainkey) | The key generated under Apps > Google Workspace > Gmail > Authenticate email | Never clicking Start authentication, so Google keeps signing with its own domain |
| DMARC (TXT at _dmarc) | v=DMARC1; p=none; rua=mailto:[email protected] to start, then quarantine and reject | Enforcing before every sending service passes with an aligned domain |
DKIM in detail. The default selector is google; use another prefix only if that name is already taken. Choose a 2048-bit key unless your DNS host cannot store one. Google asks you to wait 24 to 72 hours after turning on Gmail before you generate the key. Publish the TXT record, then click Start authentication; signing can take up to 48 hours to begin. Some DNS hosts need a long key split into several quoted strings in one record.
Until you do this, Google signs your mail with a domain such as example-com.20230601.gappssmtp.com. That signature passes but does not align with your From address, so it does nothing for DMARC.
| Task | Command |
|---|---|
| Check the SPF record | nslookup -type=TXT example.com |
| Check the DKIM key at the google selector | nslookup -type=TXT google._domainkey.example.com |
| Check the DMARC record | nslookup -type=TXT _dmarc.example.com |
| Check reverse DNS for a sending IP | nslookup 192.0.2.25 |
Step 4: use approved and blocked senders carefully
Under Apps > Google Workspace > Gmail > Spam, Phishing and Malware you can set an email allowlist of IP addresses, approved sender lists that bypass the spam filter, and blocked senders. Keep these lists short.
- When you add approved senders, leave sender authentication required so a forged From address cannot ride the bypass.
- Prefer specific addresses or your partners' own domains. Never approve a free mail domain or a large shared sending platform.
- Do not use approved senders or the IP allowlist to get gateway-relayed mail past Gmail. Use the inbound gateway setting in the next step, which is built for that.
- A message stopped by a blocked senders setting still appears in Email Log Search, so the log tells you which list caught it.
Step 5: check gateways, routing and SMTP relay
Inbound gateway. If your MX points at Proofpoint, Mimecast or another filter, Gmail sees every message arrive from that service. Configure Spam, Phishing and Malware > Inbound gateway on the top-level organization: list the gateway's public IP ranges and turn on Automatically detect external IP so Gmail reads the original sender from the Received headers for SPF and spam checks. Reject all mail not from gateway IPs stops senders skipping the gateway, and Require TLS protects the hop. Message tagging can mark mail as spam from a header the gateway adds.
One consequence: Gmail does not enforce the sender's DMARC policy on mail that arrives through the inbound gateway. It still uses the results for spam and phishing decisions, but the gateway must do the enforcing.
Outbound routing. If mail leaves through an outbound gateway or a routing rule that sends it to another server, that server must be in your SPF record and should sign with DKIM after any change it makes.
SMTP relay service. Printers, scanners and line-of-business apps often send through smtp-relay.gmail.com. Configure it under Gmail > Routing > SMTP relay service and limit it to your own IP addresses or authenticated users. A SaaS tool that sends directly as your domain needs its own SPF include or, better, a DKIM key at its own selector in your DNS.
Step 6: read the Gmail headers
In Gmail, open the message, choose More (the three dots) and Show original. The top of the page summarises SPF, DKIM and DMARC and gives the Message ID for Email Log Search. Below it are the full headers.
| Header | What it tells you |
|---|---|
| Authentication-Results: mx.google.com | Google's verdicts: spf= with smtp.mailfrom, dkim= with header.i and the selector in header.s, and dmarc= with the policy and the disposition applied, for example dmarc=pass (p=REJECT sp=REJECT dis=NONE) |
| ARC-Authentication-Results, ARC-Seal | Results recorded by earlier hops, such as a mailing list or gateway, that Gmail can use when forwarding breaks SPF or DKIM |
| Received-SPF | The SPF result with the IP address that was checked. If it is your gateway, the inbound gateway setting is missing |
| Received | Each hop, newest at the top. Gaps in time point at the server that held the message |
| DKIM-Signature | The d= signing domain and s= selector. d= should be your domain, not gappssmtp.com |
Google also offers Postmaster Tools at postmaster.google.com for domains that send enough mail to personal Gmail accounts. It shows the spam rate users report and whether your domain meets the sender requirements.
How DNS Panopticon helps
Paste the text from Show original into Email Header Analyzer to see the route and the envelope sender, DKIM domain and From address side by side with their alignment. Headers are parsed in your browser and never uploaded. Email Validation checks MX, SPF, DKIM and DMARC records for a domain with suggested fixes; enter google (or your own prefix) as the DKIM selector to check the key you published. Domain Visualizer shows the whole set of mail records together.
For the DNS side, see Why is email not being delivered? (DNS perspective) and DKIM Explained: Selectors and Key Rotation. If a gateway sits in front of Gmail, read the Proofpoint or Mimecast guide alongside this one.
FAQ
Why does the DKIM signature on our mail say gappssmtp.com?
Google signs with a default domain until you generate a key for your own domain, publish it at google._domainkey and click Start authentication. The default signature passes but does not align with your From address, so DMARC ignores it.
Email Log Search says the message was delivered, but the user cannot find it. Why?
Check the post-delivery details: the label and folder it landed in, whether it was marked as spam, and whether it was deleted. A user filter or forwarding rule can also move it after delivery.
How do I stop Gmail marking mail relayed by our filtering gateway as spam?
Configure the inbound gateway with the gateway's IP ranges and turn on automatic detection of the external IP. Gmail then checks the original sender instead of the gateway, which approved sender lists cannot do.
How far back can Email Log Search go?
Custom searches cover the last 30 days. For older messages you need both the recipient address and the Message ID, and you only see post-delivery status.
Sources and further reading
- Google Workspace Admin Help: Find messages with Email Log Search
- Google Workspace Admin Help: Manage quarantined messages
- Google Workspace Admin Help: Set up DKIM
- Google Workspace Admin Help: Set up an inbound mail gateway
- Google: Email sender guidelines: requirements for all senders and for bulk senders, with error codes
- Google Admin Toolbox: Messageheader
- Google Postmaster Tools
- RFC 8617: The Authenticated Received Chain (ARC) Protocol
- RFC 9989: DMARC