If Gmail starts replying with 4.7.27, 4.7.30, 4.7.31, 4.7.32, or the matching 5.7.x variants, the useful part is this: Gmail is usually being very specific.
These are not vague “deliverability seems bad” signals. They usually point to one missing piece in the authentication chain: SPF, DKIM, DMARC, or DMARC alignment.
And yes, the 4.x.x vs 5.x.x distinction matters. In SMTP, a 4xx response is a temporary deferral or rate limit, while a 5xx response is a hard block. So if Gmail returns 4.7.27, traffic is being throttled because SPF is not acceptable yet. If it returns 5.7.27, Gmail is done waiting.
Google’s current guidance sits across its Email sender guidelines, the newer Email sender guidelines FAQ, and the live Gmail SMTP errors and codes reference. Those pages are worth checking directly because Google updates them.
Here is the practical interpretation:
4.7.27 / 5.7.27: SPF did not pass4.7.30 / 5.7.30: DKIM did not pass4.7.31 or 4.7.40 / 5.7.40: DMARC record missing, or DMARC record has no usable policy4.7.32 / 5.7.32: From: domain is not aligned with authenticated SPF or DKIM domain5.7.26: broader unauthenticated-sender block; often shows up when neither SPF nor DKIM gives Gmail what it needsThat 4.7.31 vs 4.7.40 detail trips people up. Google’s FAQ still references 4.7.31 for missing DMARC policy, while the current SMTP error list shows 4.7.40 and 5.7.40. Operationally, treat them as the same class of problem: Gmail is telling you the domain needs a real DMARC record.
For senders delivering 5,000 or more messages a day to personal Gmail accounts, Google requires:
p=noneFrom: domain with either SPF or DKIMThat alignment requirement is the part many teams underestimate. A message can have SPF=pass and DKIM=pass somewhere, and still fail the Gmail bulk-sender requirement if neither authenticated domain lines up with the From: header domain under DMARC rules. Google spells that out in its FAQ section on DMARC alignment.
If that needs a refresher, DMARC identifier alignment deep dive covers the mechanics in plain English.
4.7.27 and 5.7.27: SPF did not passGoogle’s wording here is direct: the message did not pass SPF authentication.
That does not always mean “no SPF record exists.” In practice, it can mean any of these:
permerrorSPF is defined in RFC 7208, and Gmail still evaluates it in the normal SMTP sense: against the 5321.MailFrom domain, not the visible From: header domain.
So this can happen:
From: billing@example.com
Return-Path: bounce@mailer.example.net
Authentication-Results: mx.google.com;
spf=pass smtp.mailfrom=mailer.example.net;
dkim=none;
dmarc=fail header.from=example.comSPF passed, but not for a domain aligned with example.com. Gmail may still complain later with 4.7.32 or 5.7.32 because DMARC alignment is the real requirement for bulk-sender mail.
permerror, simplify the record before doing anything else.Authentication-Results.Example SPF record structure:
example.com. IN TXT "v=spf1 ip4:192.0.2.10 include:_spf.example.net -all"If SPF complexity is the real culprit, SPF 10 DNS lookup limit explained is the post to keep open during cleanup.
4.7.30 and 5.7.30: DKIM did not passThis one usually means Gmail saw a DKIM signature but could not validate it, or expected DKIM and effectively got no usable pass.
DKIM is defined in RFC 6376. In production, DKIM failures usually come from a short list:
Example of what Gmail wants to be able to see:
DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=s1; ...
Authentication-Results: mx.google.com;
dkim=pass header.d=example.coms= exists in DNS at selector._domainkey.example.com.d= is the domain you intend to align.If Google Workspace is part of the path, Your Google Workspace DKIM setup may be broken is still a useful reality check.
4.7.31 / 4.7.40 and 5.7.40: DMARC record missing or incompleteThis is the easiest class of Gmail bulk-sender error to understand. Gmail is saying the domain in the visible From: header needs a DMARC record, and that record needs to specify a policy.
DMARC is defined in RFC 7489. For Gmail bulk-sender compliance, p=none is enough to meet the minimum DMARC publication requirement, as Google states in its sender guidelines.
Example minimum DMARC record:
_dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"Two common mistakes:
example.com instead of _dmarc.example.comv=DMARC1 without a usable p= value_dmarc.example.com.v=DMARC1; p=none at minimum.rua= so DMARC aggregate reporting starts immediately.If the domain has multiple services sending mail, do not jump straight to enforcement blindly. Start with monitoring, read the aggregate reports, then tighten later.
4.7.32 and 5.7.32: DMARC alignment failedThis is the one that causes the most confusion, because admins often say: “But SPF passed” or “But DKIM passed.”
Gmail is not asking whether some SPF or DKIM result passed somewhere. It is asking whether the domain in the visible From: header aligns with either:
5321.MailFrom domain, ord=DMARC passes if at least one of those is both passing and aligned, which is exactly how RFC 7489 section 4.1 describes it.
Example failing pattern:
From: alerts@example.com
Return-Path: bounce@mailer.example.net
DKIM-Signature: d=mailer.example.net; s=outbound1; ...
Authentication-Results: mx.google.com;
spf=pass smtp.mailfrom=mailer.example.net;
dkim=pass header.d=mailer.example.net;
dmarc=fail header.from=example.comAuthentication passed. Alignment failed. Gmail still has a problem with it.
bounce@example.com or bounce.mail.example.com.d=example.com or an aligned subdomain signs the mail.From: domain unless alignment has been designed intentionally.For hands-on debugging, DMARC troubleshooting with real headers is the fastest way to see what Gmail is objecting to.
5.7.x fits inGoogle’s SMTP reference includes a wider set of 5.7.x blocks. Some are authentication-specific (5.7.27, 5.7.30, 5.7.32, 5.7.40), and some are broader trust or policy failures such as 5.7.26.
The useful rule is simple:
From:, Return-Path, and DKIM d= togetherDo not collapse all 5.7.x errors into “reputation issue.” Gmail does use reputation heavily, of course, but the authentication-related ones are often very concrete and very fixable.
When Gmail starts returning these errors, this order usually saves time:
Authentication-Results.From: domain.That sounds basic, but it avoids the classic trap of editing the website domain DNS while the actual mail is being sent by a different domain or provider path.
Gmail bulk-sender authentication errors are usually not mysterious. They are a map.
4.7.27 points to SPF. 4.7.30 points to DKIM. 4.7.31 or 4.7.40 points to DMARC publication. 4.7.32 points to alignment. And the 5.7.x versions mean Gmail has moved from warning to blocking.
Once those signals are read in the right order, the fixes are usually straightforward: publish DMARC, make SPF valid, make DKIM verify, and align at least one of them with the visible From: domain.