Fix Gmail's 550 5.7.26 error by finding the check that failed

550 5.7.26 is the bounce Gmail sends when it blocks a message because it couldn't confirm who sent it: neither SPF nor DKIM passed, SPF failed against a record ending in -all, or the sender's DMARC policy asked Gmail to reject mail that fails. The bounce says which, and the fix is at the service that sent the message, not in Gmail.

What each 550 5.7.26 bounce means

Bounce saysWhat failed
the sender is unauthenticatedNeither SPF nor DKIM passed. Gmail requires every sender to pass at least one, and the bounce lists both results.
hard fail policy (-all)The sending server isn't in the SPF record of the bounce address's domain, and that record ends in -all, which marks unlisted servers as unauthorized.
due to domain's DMARC policyThe message failed DMARC, and the domain in its From address publishes a policy asking receivers to reject mail that fails.

Other Gmail authentication errors

  • 550 5.7.27

    Gmail blocked a bulk sender's message because it didn't pass SPF.

  • 550 5.7.30

    Gmail blocked a bulk sender's message because it didn't pass DKIM.

  • 421 4.7.27 or 4.7.30

    Gmail slowed delivery of a message instead of blocking it, because SPF or DKIM didn't pass for it.

  • 421 4.7.32

    Gmail slowed delivery because the From domain doesn't match the domain that passed SPF or DKIM, which DMARC calls alignment.

Google lists the text of these errors and every 5.7.26 variant in its SMTP error reference.

How to fix the 550 5.7.26 error

  1. Read the authentication results in the bounceThe unauthenticated and -all bounces list which checks didn't pass and the IP address of the server that sent the message. That address tells you which service sent it. The DMARC bounce names only the domain, so check every service that sends as that domain.
  2. Find the service that sent the messageIt might be your mail provider, your website's contact form, a newsletter tool or an app. Every service that sends as your domain needs its own SPF or DKIM setup.
  3. Set up DKIM at that serviceTurn on DKIM signing for your domain in the service's settings and add the DNS records it gives you. A DKIM signature usually survives forwarding, which SPF often doesn't.
  4. Add the service to your SPF recordAdd the include or IP address the service documents to your domain's one SPF record, and stay within SPF's limit of 10 DNS lookups.
  5. Make the From domain matchDMARC passes only when the domain that passed SPF or DKIM matches the domain in the From address. A service that signs with its own domain instead of yours won't pass DMARC for your domain.

Frequently asked questions

Why does my website's contact form get 550 5.7.26?

A form that sends from your web server with your domain in the From address is sending from a server your SPF record doesn't list, with no DKIM signature for your domain. Gmail sees unauthenticated mail claiming to be from you. Send the form's mail through your mail provider or an email service that signs with DKIM.

Does 5.7.26 apply if I send only a few emails a day?

Yes. The bounce itself says Gmail requires all senders to pass SPF or DKIM. The extra rules for senders of more than 5,000 messages a day, such as DMARC, come on top of that; Google's sender guidelines list them.

Should I change my SPF record from -all to ~all to stop the bounces?

Not as a fix. With ~all the hard fail bounce stops, but the message still fails SPF, and if DKIM fails too, Gmail blocks it as unauthenticated. Add the missing sender to the record instead.