Documentation Email authentication

What this bounce means: Gmail, Outlook and Yahoo codes

When Gmail, Outlook.com, Microsoft 365 or Yahoo refuses your mail because it couldn't confirm you may send as your domain, the bounce carries a code and a line of text. Find your code below: each entry quotes the provider's text and says what to fix. In the quotes, example.com and 192.0.2.1 stand for your domain and your server's address, and a quote is shortened where the rest doesn't change the fix. We read every source on 15 November 2026.

Most bounces are final: the message wasn't delivered. Fix the cause, then send it again. Some are temporary, usually with a reply that starts with 4: the receiver didn't take the message yet, and your mail server tries again for a while on its own. Your sending service's log shows whether a message is still queued or has finally failed; send it again only once it has failed and the cause is fixed.

Gmail

These texts come from Google's list of Gmail errors. Some codes carry more than one text, so read the words, not only the number.

550 5.7.26: three different problems

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

Neither SPF nor DKIM passed. Gmail asks this of every sender, not only bulk senders. Add the sending service to your SPF record, or turn on DKIM signing at the service. SPF and DKIM explain both.

550 5.7.26 The (E)MAIL FROM domain example.com has an SPF record with a hard fail policy (-all) but it fails to pass SPF checks with the ip: 192.0.2.1

Your SPF record ends in -all and the server that sent this message isn't in it. Find the message in your sending service's log before you change the record; the IP alone names a provider, not your account. If your service sent it, add that service to the record. If a forwarder sent it, such as a mailing list or a mailbox that forwards, don't add the forwarder: ask it to send with its own return address. If no service of yours sent it, someone else did, and the bounce is doing its job. Changing -all to ~all doesn't help: SPF still doesn't pass, so without DKIM the mail still bounces.

550 5.7.26 Unauthenticated email from example.com is not accepted due to domain's DMARC policy.

Your DMARC policy is quarantine or reject, and the message passed neither SPF nor DKIM for the domain in its From address. A service you use isn't set up yet, or someone sent mail as your domain. DMARC explains alignment, and your DMARC reports show which source failed.

451 4.7.26 with "temporary DNS failures prevent authentication" means Gmail couldn't read your DNS records. If it keeps happening, check that your domain's nameservers answer.

550 5.7.27 and 550 5.7.30: bulk sender without SPF or DKIM

550 5.7.27 This message was blocked because it didn't pass SPF authentication. Gmail requires bulk email senders to authenticate their email with SPF.
550 5.7.30 This message was blocked because it didn't pass DKIM authentication. Gmail requires bulk email senders to authenticate their email with DKIM.

Gmail counts your domain as a bulk sender, so it needs both SPF and DKIM to pass, not just one. 421 4.7.27 and 421 4.7.30 say the same and delay the mail instead. What providers require of senders explains who counts as bulk.

550 5.7.40: no DMARC record

550 5.7.40 Your message was blocked because the sending domain doesn't have a DMARC record or the DMARC record doesn't specify a DMARC policy.

If the domain has no DMARC record, publish one: v=DMARC1; p=none meets Google's rule. If the domain already has a record, edit that record instead of adding a second. A record without a p= tag needs p=none added; a record with a policy keeps it. Add a report address so you can see who sends as you. 421 4.7.40 says the same and delays the mail. Another 5.7.40 text, "Unrecognized authentication type", is about signing in to Gmail's servers, not about your domain.

421 4.7.32: From doesn't match

421 4.7.32 Your email has been rate limited because the From: header (RFC5322) in this message isn't aligned with either the authenticated SPF or DKIM organizational domain.

SPF or DKIM passed, but for a domain unrelated to the one in the From address. For Gmail's check, a subdomain counts as a match: mail.example.com matches example.com. If your DMARC record sets aspf=s, a return-address subdomain doesn't pass your own DMARC check: use DKIM signed with your From domain. Usually the service signs and sends with its own domain. Set up DKIM at that service for your domain, or set its return address (often called a custom return path or bounce domain) to a subdomain of yours and publish the SPF record the service gives for it, so SPF passes for a matching domain. Gmail also sends 421 5.7.32 with "was blocked" in place of "has been rate limited". The fix is the same.

Outlook.com and Microsoft 365

Outlook.com, Hotmail and Live are Microsoft's consumer mail. Microsoft 365 is its business mail. They use different codes.

550 5.7.515: Outlook.com bulk sender rules

550 5.7.515 Access denied, sending domain example.com does not meet the required authentication level.

This is the text in Microsoft's announcement of its rules for senders of more than 5,000 messages a day to Outlook.com. It wants SPF and DKIM to pass, and a DMARC record of at least p=none that passes: SPF or DKIM must align with your From domain. Microsoft 365's own error list doesn't include this code.

550 5.7.1 … (AS9031519): the November 2026 incident

550 5.7.1 Message rejected: Message lacks SPF/DKIM/DMARC Auth Records (AS9031519)

Outlook.com sent this from 5 to 9 November 2026 to domains without a DMARC record, small senders included, and then reverted it. What providers require of senders has the dates and Microsoft's statement. Mail that bounced with this text in those days wasn't delivered. Send it again.

5.7.509: Microsoft 365 and your DMARC policy

5.7.509 Access denied, sending domain example.com does not pass DMARC verification and has a DMARC policy of reject.

From Microsoft's Exchange Online error list. Your DMARC policy is reject and the message passed neither SPF nor DKIM for your From domain. The fix is the same as Gmail's DMARC 5.7.26.

5.7.23: SPF

5.7.23 The message was rejected because of Sender Policy Framework violation

The receiving system checked SPF and it didn't pass. Usually the server that sent the message isn't in your SPF record; check your sending service's log, as for Gmail's 5.7.26, before you add it. If a forwarder sent it, ask the forwarder to send with its own return address: DKIM can't make SPF pass. If you send through Microsoft 365 and your record already lists it, Microsoft's 5.7.23 page names another cause: Microsoft marked the message as spam and sent it through servers that "won't pass SPF checks". Changing your record doesn't fix that one; ask Microsoft support.

Yahoo and AOL

Yahoo's error page explains its codes by group rather than one by one. For authentication:

  1. A permanent error (553 or 554) has several causes, such as an address that doesn't exist. When its text points to authentication, Yahoo's reason is "Your message failed authentication checks against your sending domain's DMARC or DKIM policy." The text names both, so it doesn't say which failed. Your sending service's log or settings show whether it signs with your From domain and under which selector, and Check a domain shows whether that key is published. To see the results themselves, send the same message from that service to a mailbox you have at another provider and read its Authentication-Results header (in Gmail, Show original): it shows whether DKIM passed, and for which domain, and whether SPF passed for your From domain.
  2. Temporary errors (421 or 451) include "Authentication results for your domain could not be determined due to a temporary error." Your server retries; check that your nameservers answer.
  3. Yahoo asks every sender for SPF or DKIM, and bulk senders for both plus a DMARC record. Its bulk rule needs DMARC to pass, not only to exist.

Codes that start PH are about the content of the message, and TS codes are temporary delays; Yahoo's page lists the reasons. Neither is about SPF, DKIM or DMARC.

Find the cause

Start with the whole bounce and the sending service's delivery log: they name the message and often the server that sent it. Check a domain then reads your published SPF and DMARC records and the DKIM keys it finds, and flags problems in them. It can't see the message itself or what the receiver checked. Your DMARC reports show which sources send as your domain and whether they passed, from the receivers that send reports.

Check your domain

See your SPF, DMARC and DKIM records and what to fix. Free, no account. Don't see your signing key? On the results page, enter the name your email service gives you under Signing keys.

Last updated : New guide: what Gmail, Outlook and Yahoo authentication bounce codes mean and what to fix.

Documentation version docs-2026-10-12.

Found an error, or a question this page does not answer? Email support@mailglo.com.

For AI agents: this page in Markdown, llms.txt, the index of guides and public pages