Gmail 550 5.7.32: the From header is not aligned with SPF or DKIM
Updated · 3 min read
Gmail:550 5.7.32421 4.7.32
In short
- Your mail authenticated, but as another domain: SPF or DKIM passed, just not for the domain in your From address.
- The usual cause is a sending platform that signs DKIM and handles bounces under its own domain instead of yours.
- Fix it on the platform: sign DKIM with your domain, or use a return-path domain under yours. A test message should then show DMARC: PASS.
Check your domain now
Type the domain in your From address. To see which domains SPF and DKIM actually passed for, paste a message's headers into the header analyzer.
On this page
The bounce, as Google documents it
550 5.7.32RefusedYour email was blocked because the From: header (RFC5322) in this message isn't aligned with either the authenticated SPF or DKIM organizational domain. …
421 4.7.32DeferredYour 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. …
Read on . Providers reword these messages without notice, so treat the text as a dated snapshot and check the source before acting on anything consequential.
- Google: Gmail SMTP errors and codes (page updated )
- Google: Set up DMARC (page updated )
- Google: Email sender guidelines FAQ
This message did authenticate — just not as you. SPF or DKIM passed for some domain, but neither passed for the domain in the From line your recipients see, so Gmail refused it. Matching those two is called alignment, and Google's guidelines require it of bulk senders, which its FAQ defines as close to 5,000 messages a day to personal Gmail accounts, counted across the whole primary domain.
It happens most with mail sent through a newsletter platform, a CRM, a helpdesk or a shop system. The platform authenticates its mail as its own domain, which is enough to pass SPF and DKIM and not enough to pass alignment.
421 4.7.32 is the same finding as a deferral rather than a refusal.
Most likely causes
- Your sending platform signs with its own domain. Until you finish its domain-authentication setup — every platform names it differently — the DKIM signature carries the platform's domain in d=.
- Your sending platform uses its own return-path domain. SPF passes for its bounce domain, which does not match your From address.
- You added the platform to your SPF record and stopped there. The include authorises the platform's servers, but SPF is checked against the return-path domain, so it still passes only for the platform.
- The From address is at a domain you do not control. Bulk mail From a free mailbox address, or from a client's domain without access to its DNS, can never align.
- A form or app puts somebody else's address in From. A contact form that sends From the visitor's address, through your server, claims a domain your mail cannot authenticate for.
Reading which domains passed
The Authentication-Results header of a delivered copy names all three domains. smtp.mailfrom is the domain SPF was checked for, header.d is the domain of each DKIM signature, and header.from is the visible From domain. Aligned means header.from matches one of the first two, or shares its organisational domain.
Under DMARC's relaxed alignment, which is the default, the From domain and the domain SPF or DKIM passed for need only share an organisational domain: the registered name, such as example.com. So mail From news.example.com signed by example.com, or with a bounce address at bounces.example.com, is aligned. Google's DMARC page describes the commonest case, a From domain that matches, or is a subdomain of, the envelope sender's domain or the DKIM signature's d= domain. A platform's own domain never aligns.
The header analyzer makes this comparison for you: paste the headers and it shows the From domain, the domains each check passed for, and whether either aligns.
How to fix it
On the sending platform, set up DKIM with your own domain. It gives you DNS records to publish, often CNAMEs; publish them and switch signing to your domain.
Where the platform allows it, set a custom return-path or bounce domain under your own domain, such as bounces.example.com, and publish the record it asks for.
Send From an address at a domain you control and can publish DNS for.
For forms and apps, send From your own address and put the visitor's address in Reply-To.
How to confirm the fix worked
Send a test from the platform to a Gmail address you control and choose Show original: DMARC should read PASS.
Paste the headers into the header analyzer. The DKIM signature's d= domain, or the SPF domain, should be your domain or a subdomain of it.
Watch your DMARC aggregate reports for a few days: the platform should appear as a source passing in alignment.
Check your domain with the DMARC checker