550-5.7.26 This mail is unauthenticated (Gmail): how to fix it
Gmail returns 550-5.7.26 when a message passes neither SPF nor DKIM for the sending domain. Publish an SPF record that includes your sending service, turn on DKIM signing with a matching DNS key, add DMARC, then send a test to Gmail and read the headers to confirm a pass.
Sohail Hussain11 min readShort answer
- Gmail rejected the message because both SPF and DKIM failed for the server that sent it. Make at least one pass, and in practice publish both, for the domain in your From address.
- Find the server that actually delivered the mail, add it to your one SPF record, turn on DKIM signing there, then send a test to Gmail and check Show original.
You sent a message to a Gmail address and got this bounce:
550-5.7.26 This mail is unauthenticated, which poses a security risk to the sender and Gmail users, and has been blocked. The sender must authenticate with at least one of SPF or DKIM.
Gmail's own error table says that Gmail requires all senders to authenticate with either SPF or DKIM, and Google's sender guidelines add that messages that aren't authenticated with these methods might be marked as spam or rejected with a 5.7.26 error. The bounce usually ends with a line like "DKIM checks did not pass and SPF check for your domain did not pass with ip: ...". That IP is your best clue.
What the error means
550 is a permanent SMTP failure, and 5.7.26 is the enhanced status code. The rejection came from Gmail's server during the SMTP conversation, so the message never reached an inbox or a spam folder. Nothing is queued for retry.
Google lists several 5.7.26 variants. They have different causes:
| Variant text (shortened) | What it points to |
|---|---|
| Sender is unauthenticated, DKIM and SPF did not pass | Neither check passed; the most common case |
Domain has an SPF record with a hard fail (-all) but fails SPF with the IP | The sending IP is not listed in your SPF |
| Unauthenticated email not accepted due to the domain's DMARC policy | Your DMARC policy rejects mail that fails both checks |
The second and third rows come from Google's Gmail SMTP errors page.
A related case: Microsoft 365 recipients can answer with 554 5.7.1 rejected for policy reasons when DKIM is missing. People on vendor forums report this for outside senders. It is a different receiver with a similar root cause, and the fixes below apply.
Why it happens
Most common first:
- SPF does not list the server that sent the mail. Mail leaves through a web host, CMS, CRM, printer or invoicing tool that you never added to SPF.
- DKIM was never turned on at that sender. The DNS key may exist, but the server signs nothing.
- A broken SPF record. Two
v=spf1records, an include that returns no data, or more than 10 DNS lookups all cause a failure. In one community thread, a volunteer found that an include in the sender's SPF returned no data, so the SPF allowed no IP addresses. In the same thread, the domain had two SPF records and a DKIM entry published in the wrong place. - The DKIM record is on the wrong host name. It belongs on a selector subdomain such as
selector1._domainkey.example.com, not on the bare domain. - Wrong SMTP server in the mail client. The message leaves through an ISP relay instead of your mail provider, so your records never apply.
- A strict DMARC policy on a domain whose mail fails both checks.
The exact reason is not always visible in the bounce. The headers of a delivered test message usually are.
Step-by-step fixes
Fix 1: find which server actually sent the message
Authentication belongs to the server that handed the mail to Gmail, which is often not the one you expect.
- Open the bounce and note the IP in the "SPF ... with ip" line.
- If you have a sent copy or a delivered test message, read the
Received:lines and theAuthentication-Results:header. - Paste the full headers into the email header analyzer to see SPF, DKIM and DMARC results together. For background, see understanding email headers.
- Decide who owns that IP: your mail provider, your web host, or a third-party tool.
Whatever sends the mail is what you must authorize in SPF and enable DKIM on.
Fix 2: repair SPF
A domain must have exactly one SPF record, a TXT record at the root that starts with v=spf1.
example.com. TXT "v=spf1 include:_spf.google.com include:sendgrid.net ~all"
- List every service that sends as your domain, and take each
include:value from that provider's setup page. - Merge everything into one record. Delete any second
v=spf1TXT. - Stay at 10 DNS lookups or fewer, counting nested includes. The SPF lookup count calculator helps.
- For a plain server with its own address, add
ip4:203.0.113.25(use your real IP). - End with
~allor-all, never+all.
The SPF generator builds the string. Google's guidance is that your SPF record should include all email senders for your domain.
Hard fail needs a complete record
If your SPF ends in -all and any real sender is missing, Gmail can block that sender outright. Google lists this as its own 5.7.26 variant. Fix the include list before you tighten the policy.
Fix 3: turn on DKIM at the sending service
DKIM is the more dependable fix because it survives forwarding. Google notes that forwarded messages often fail SPF authentication, which is why it recommends DKIM alongside SPF.
- At the service that sends the mail, find its DKIM or domain authentication setting and generate the key.
- Publish what it gives you at your DNS host. Depending on the provider, that is a TXT record or CNAME records.
- Return to the provider and click verify or activate. Many sign nothing until you do.
- In Google Admin, search for "Authenticate email", pick the domain, generate the record, publish it, then start authentication.
- In Microsoft 365, publish the two CNAME records it shows, then enable DKIM for the domain in the Defender portal.
- On a self-managed server (cPanel, Exim, Postfix), confirm signing is enabled for the domain on the server itself. A DNS key with no signer produces no signature.
selector1._domainkey.example.com. TXT "v=DKIM1; k=rsa; p={public-key}"
Key length matters: sending to personal Gmail accounts requires a DKIM key of 1024 bits or longer, and Google recommends 2048 bits where your provider supports it. The DKIM generator can build a key pair for a self-run server; see also what is DKIM.
Fix 4: check the mail client or app settings
If DNS looks right and mail still bounces, the message probably leaves by a route you did not authorize.
- Confirm the outgoing (SMTP) server is your mail provider's, with authentication on and your full address as the username.
- Make sure the From address uses a domain you own and have set up.
- For web forms and CMS plugins, switch from the host's default PHP mail to authenticated SMTP through your real mail provider.
- In cPanel, open Email Deliverability for the domain; it reports SPF and DKIM problems for the server's records.
Fix 5: publish DMARC, and check alignment
DMARC does not cause 550-5.7.26 on its own, unless your policy rejects failing mail. Still, Gmail wants alignment: the organizational domain in the From: header must align with either the SPF or the DKIM organizational domain. A pass on your host's domain does not count. Google also asks bulk senders (5,000 or more messages a day) for all three records.
Start in monitoring mode:
Google advises that DKIM and SPF should be authenticating messages for at least 48 hours before turning on DMARC. Once reports show your real senders passing, move to quarantine and later reject. The DMARC generator builds the record; how to set up SPF, DKIM and DMARC covers the order.
Which symptom points to which cause
| What you see | Likely cause | Fix |
|---|---|---|
| Bounce lists an IP that is not your provider's | Mail left via host or ISP relay | Fix 1 and Fix 4 |
SPF permerror or none | Two records, empty include, over 10 lookups | Fix 2 |
DKIM none or no signature | Signing not enabled | Fix 3 |
DKIM fail with "body hash did not verify" | Message changed after signing | Check relays and footers that edit the body |
| Mentions DMARC policy | Policy rejects mail failing both | Fix 2, 3, then 5 |
Checklist before you try again
- One SPF record, under 10 lookups, listing every sender.
- DKIM signing active at each sender, with a 1024-bit or longer key.
- The signing or SPF domain matches your From domain.
- The SMTP server in each app or client is the one you authorized.
- DMARC published, at least
p=none. - DNS changes have had time to propagate; use the TTL as a guide.
Re-test and read the result
Send a fresh message to a Gmail account you control, open it, and choose Show original. Gmail shows separate SPF, DKIM and DMARC lines:
SPF: PASS with IP 203.0.113.25
DKIM: PASS with domain example.com
DMARC: PASS
You need a PASS on at least one of SPF or DKIM, with the domain matching your From address. Google's Postmaster Tools also has an Authentication dashboard that shows the percent of your email that passes SPF, DKIM, and DMARC, useful if you send regularly. Google's email sender guidelines list the current requirements, and its Gmail SMTP errors page lists every 5.7.x variant.
If nothing works
If a test message passes but real mail still bounces, the failing mail takes another path (a second server, a form plugin, a forwarder). Contact whoever runs that sending server: your host, your mail provider, or the third-party tool's support. Send them:
- The full bounce text, including the IP and the "DKIM checks did not pass" line
- Timestamps and the recipient domain
- Full headers of a delivered test message, plus header analyzer output
- Your current SPF, DKIM selector and DMARC records
Subject: Gmail 550-5.7.26 unauthenticated bounce for example.com
Hello,
Mail from {sender}@example.com to Gmail addresses is bounced with:
"550-5.7.26 This mail is unauthenticated... The sender must authenticate with at least one of SPF or DKIM."
Sending IP in the bounce: {ip}
Time of the failure (UTC): {timestamp}
Our SPF: {spf record}
DKIM selector we expect you to sign with: {selector}
Please confirm that DKIM signing is enabled for example.com on your side and that your sending IP is covered by our SPF record. Full bounce and headers are attached.
Thank you
Where Mailneo fits
Mailneo helps with one part of this. For the Gmail, Outlook or SMTP accounts you connect, it checks your sending domain's SPF, DKIM and DMARC records and whether they authorize the provider you use, so you can spot missing records before a campaign goes out. It cannot change your DNS, and it is not an SMTP relay for other apps, so it will not fix a printer, CMS plugin or server that sends mail on its own. The email deliverability checklist covers the wider routine.
Common questions
Do I need both SPF and DKIM to avoid 5.7.26?
For the basic rule, one passing method is enough. Google's guidelines say all senders need SPF or DKIM, and bulk senders need SPF, DKIM and DMARC. I would publish both anyway, since forwarding often breaks SPF.
My SPF and DKIM are published but I still get the error. Why?
The mail is probably leaving from a server those records do not cover, or a record is malformed (duplicate SPF, wrong DKIM host name, signing not enabled). Compare the IP in the bounce with your SPF, and check the headers of a delivered test.
Why does it only happen with some Gmail recipients or some messages?
Different messages can take different routes, for example a form plugin versus your mail client. Users in a vendor forum thread also described it happening only some of the time, which usually means one of several sending paths is unauthenticated.
How long until the fix takes effect?
DNS changes can show up within minutes or take hours, depending on the TTL. Send a new test after your provider confirms the record, since bounced mail is not retried.
Explore: Email Deliverability
Related Articles
0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed
Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.
SocketLabs "421 4.5.1 Too many errors" blacklist: how to fix it
`421 4.5.1 Too many errors, you have been temporarily blacklisted` means a SocketLabs server saw repeated auth or bad-address errors from your IP and paused it. Stop whatever is retrying, fix credentials and invalid recipients, clear the queue, and wait. The block usually lifts within minutes, but returns if retries resume.
421-4.7.0 Gmail Has Detected This Message Is Suspicious: Fix
The 421-4.7.0 "suspicious due to the nature of the content and/or the links" error means Gmail's content filter rejected your message after DATA, not an authentication check. Remove click tracking or move it to your own domain, drop URL shorteners, check link reputation, then retest with a plain message.
421 4.7.0 IP not in whitelist for RCPT domain: what it means
The error 421 4.7.0 IP not in whitelist for RCPT domain means the recipient's mail gateway, usually Mimecast in reports, only accepts connections from approved IPs, and the Google sending IP isn't on that list. The fix is on the recipient side: their admin must allow the IPs or change the mail routing.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free