Docket

TROUBLESHOOTING

Gmail bounced it: 550 5.7.26 unauthenticated email

The message reached Google and was refused for failing authentication. There are three different 5.7.26 texts, and each one points at a different record.

7 MIN READ Last updated 23 August 2026

550 5.7.26 means the message got all the way to Google and was refused because it did not authenticate. Gmail requires every sender to pass SPF or DKIM. Read the rest of the bounce text before changing anything, because Google publishes three different 5.7.26 messages and they point at three different records.

This is the good kind of failure: the message came back with a code that tells you what to fix.

Which 5.7.26 did you get?

Google lists all three verbatim in its own SMTP error reference. Match your bounce against the first column.

The bounce saysWhat it meansWhat to fix
"the sender is unauthenticated. Gmail requires all senders to authenticate with either SPF or DKIM"Neither check passed for this messagePublish SPF or DKIM for the sending domain, and make sure your relay is covered by it
"has an SPF record with a hard fail policy (-all) but it fails to pass SPF checks with the ip"Your SPF record is valid and this server is not on the listAdd the sending service to the SPF record, or stop sending from that server
"Unauthenticated email from domain-name is not accepted due to domain's DMARC policy"SPF and DKIM did not align with the From domain, and your DMARC policy told Google to rejectFix alignment first, and only then revisit the policy

Two neighbours on the same page get mistaken for this one. 550 5.7.24 is "The SPF record of the sending domain has one or more suspicious entries", a malformed record rather than a missing one, and 550 5.7.25 is a missing PTR record on the sending IP. If your code ends in 24 or 25, the fix is different.

What this is not

Ruling these out saves an hour.

Note the shape of the difference. Everything above happens on your side of the internet. 5.7.26 happens on Google's, which means your sending path works and only your DNS records are wrong.

Why did this start now?

Because the rules changed and then were enforced. Google's sender requirements, in force from 1 February 2024, oblige every sender to Gmail accounts to set up SPF or DKIM, publish valid forward and reverse DNS, use a TLS connection, keep spam complaints in Postmaster Tools below 0.3 per cent, and format messages to RFC 5322.

The first of the three bounce texts is a plain statement of that rule:

This email has been blocked because the sender is unauthenticated. Gmail requires all senders to authenticate with either SPF or DKIM.

Google Workspace Admin Help, SMTP error reference

Above 5,000 messages a day to Gmail the bar rises: SPF and DKIM, plus a DMARC record. Google is explicit that the policy in that record can be permissive, saying the "enforcement policy can be set to none", so publishing DMARC is not the same as switching on rejection. At that volume the From domain must also align with either the SPF or the DKIM domain.

For a self-hosted support centre this fires at the worst moment. The first customer with a Gmail address votes on something, the notification goes out, and it bounces. Server Fault's question on exactly this stands at 37,299 views, and the DMARC-policy variant has its own question on Stack Overflow at 12,879. Both read through the Stack Exchange API on 23 August 2026.

How do you fix it?

Work through this in order. Most people are done after the second step.

dig +short TXT yourdomain.com | grep spf1
dig +short TXT selector._domainkey.yourdomain.com
dig +short TXT _dmarc.yourdomain.com

To watch the whole exchange, including the rejection line itself, send a test message by hand and read Google's replies as they come back:

swaks --to you@gmail.com \
      --from board@yourdomain.com \
      --server smtp.provider.com:587 \
      --tls --auth LOGIN \
      --auth-user 'apikey' --auth-password 'secret'
Your own support centre, in your own repository

One payment, no subscription, unlimited products.

How do you tell it worked?

Not by the absence of a bounce, which could just mean nobody has emailed a Gmail user today. Check all three of these.

If it did not work, the usual causes are DNS caching, a record saved on the wrong hostname, or a second SPF record left behind by an earlier attempt. Query a resolver you do not control before assuming the fix failed:

dig +short TXT yourdomain.com @8.8.8.8

One warning about the DMARC variant. If you set a strict policy before SPF and DKIM were reliably passing, moving back to p=none stops the rejections immediately and stops protecting your domain. Fix the alignment, confirm it in the reports, then tighten again.

What a support centre that sends nothing avoids

Worth naming once, at the end rather than in the middle of a fix. This bounce can only happen to a system that sends mail. Docket's free edition does not: it runs as static files plus two endpoints, with no SMTP client in the runtime, so there is no notification to be refused and no sending domain to authenticate. The paid tiers add email notifications, and at that point Gmail's rules apply to a Docket site exactly as they apply to anything else. There is no version of this where publishing the DNS records is optional. SMTP for self-hosted tools is the place to start on those.

Frequently asked questions

Is 550 5.7.26 a permanent failure or can I retry?

Permanent. The 5 at the start of both numbers means Google will not accept a retry of the same message from the same unauthenticated source. Resending changes nothing until the DNS records change. The one thing worth doing before you fix anything is capturing the full bounce text, because that is what tells you which of the three variants you have.

Do I need both SPF and DKIM, or is one enough?

Gmail's baseline requirement is either one, so a single correctly configured check gets your mail accepted. Above 5,000 messages a day to Gmail accounts, Google requires both plus a DMARC record. Publish both anyway if you can: DKIM survives forwarding where SPF does not, and DMARC needs at least one of them to align with your From domain.

Why does the same message get delivered to Outlook but bounced by Gmail?

Because providers enforce differently. Gmail publishes hard requirements and returns a specific code when they are not met, while others may accept an unauthenticated message and quietly file it as spam. Arriving at one provider and bouncing at another is not evidence your records are fine, only that one receiver is stricter.

Can I fix this without touching DNS?

Only by changing the address you send from, which is a workaround rather than a fix. A domain your provider already authenticates avoids the problem and also means your notifications no longer appear to come from you. For anything customer-facing, publish the records on your own domain.

How long does it take to start working after I publish the records?

As long as the previous record's TTL, because receivers are caching what you published before. There is nothing to speed that up beyond having set a low TTL in advance. Query a public resolver you do not control to see what the rest of the internet is being handed, and re-test with a real message rather than assuming.