Gmail bulk sender requirements and their error codes
Quick fix
Authenticate with both SPF and DKIM, publish a DMARC record (p=none is enough), and align the From domain with the DKIM or Return-Path domain.
How to fix it
- Add every service that sends for the domain to its SPF record, under 10 DNS lookups (fixes 4.7.27 and 5.7.27).
- Turn on DKIM signing with your own domain in each service and publish its key (fixes 4.7.30 and 5.7.30).
- Publish a DMARC record such as
v=DMARC1; p=none; rua=mailto:[email protected]at_dmarc.example.com(fixes 4.7.40 and 5.7.40). - Make the From domain align with the DKIM
d=domain or the Return-Path domain (fixes 4.7.32 and 5.7.32). - Give each sending IP a PTR record that resolves back to it, and send over TLS.
- Add one-click unsubscribe to marketing mail with the header
List-Unsubscribe-Post: List-Unsubscribe=One-Clickand aList-UnsubscribeURL, and keep the spam rate in Postmaster Tools below 0.30%.
Learn more: DMARC explained: policy, alignment and reports
How to check
The domain health check looks up SPF, DKIM selectors, DMARC and reverse DNS for the mail servers in one report. Gmail's spam rate is only in Google Postmaster Tools, and a test message to a Gmail address ("Show original") shows SPF, DKIM and DMARC for that message.
The Domain health check opens with your domain filled in; it runs when you press Check.
Tools to check it
What the error means
Gmail has stricter rules for bulk senders, and each failed rule has its own error code: a 421 rate limit first, a 550 rejection later. Google's FAQ defines a bulk sender as "any email sender that sends close to 5,000 messages or more to personal Gmail accounts within a 24-hour period." and counts all mail from the same primary domain together. The rules apply since February 2024, and Google writes that "Starting November 2025, Gmail is ramping up its enforcement on non-compliant traffic. Messages that fail to meet the email sender requirements will experience disruptions, including temporary and permanent rejections."
The authentication rules for bulk senders are SPF and DKIM (both), a DMARC record (p=none is enough), and "For direct email, the domain in the sender's From: header must be aligned with either the SPF domain or the DKIM domain." The codes on Google's list of Gmail SMTP errors:
| Code | Google's text (start) |
|---|---|
421 4.7.27 | "Your email has been rate limited because SPF authentication didn't pass for this message." |
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." |
421 4.7.30 | "Your email has been rate limited because DKIM authentication didn't pass for this message." |
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." |
421 4.7.40 | "Your email has been rate limited because the sending domain doesn't have a DMARC record, or the DMARC record doesn't specify a DMARC policy." |
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." |
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." |
421 5.7.32 | "Your email was blocked because the From: header (RFC5322) in this message isn't aligned with either the authenticated SPF or DKIM organizational domain." |
451 4.7.26 | "Unauthenticated email from domain-name is not accepted due to domain's DMARC policy, but temporary DNS failures prevent authentication." |
Google's own pages do not agree on every detail, so read the code together with its text:
- The FAQ gives
4.7.31for the missing DMARC rate limit; the list of SMTP errors gives421 4.7.40and has no 4.7.31. - The blocking alignment error
5.7.32is listed with reply code 421, which is a temporary reply, although its text says the email was blocked. 5.7.40is also listed with reply code 504 for "Unrecognized authentication type.", an SMTP login error that has nothing to do with DMARC.- The guidelines say "more than 5,000 messages per day", the FAQ "close to 5,000 messages or more".
- No code is listed for missing one-click unsubscribe, although it is a bulk rule.
A message that fails both SPF and DKIM gets 550 5.7.26 or its rate limit 421 4.7.26, which apply to all senders. Too much volume or spam gives 421 4.7.28. With 451 4.7.26 the DNS lookup failed, so check that your name servers answer before you change any record.
Sources
- Google: Gmail SMTP errors and codes (checked 2026-11-17)
- Google: Email sender guidelines (checked 2026-11-17)
- Google: Email sender guidelines FAQ (checked 2026-11-17)