DMARC: dmarc=fail (p=REJECT) — SPF and DKIM pass but domains are not aligned with the From header
Authentication passed for another domain (your ESP's), but neither the SPF Return-Path domain nor the DKIM d= domain matches the visible From domain, so DMARC fails.
dmarc=fail (p=REJECT)dmarc=fail (p=QUARANTINE)DMARC alignment failureUnauthenticated email from domain is not accepted due to the domain's DMARC policy550 5.7.1 DMARC policy reject Meaning
DMARC needs at least one of SPF or DKIM to pass AND align with the From: domain. Using a third-party sender without custom domain authentication signs with the provider's domain. Configure custom DKIM (and a custom Return-Path/bounce domain) at the provider so d= equals your domain.
Common causes
- ESP signing with its own domain (d=sendgrid.net)
- Return-Path domain differs from From
- Relaxed vs strict alignment setting (adkim/aspf=s)
- Subdomain From with parent-only keys
- Forwarding breaking SPF and no DKIM
⚡ Quick fix
- Enable custom domain authentication (DKIM CNAMEs) at the ESP
- Set a custom return-path/bounce domain
- Check
adkim/aspf(use relaxedrunless needed)
Detailed fix by platform
Linux
- Read the headers
Authentication-Results:forheader.i=(DKIM d=) andsmtp.mailfrom=; compare both withheader.from=
How to diagnose
- From — Visible From domain?
- DKIM d= — Same organizational domain?
- Return-Path — Same domain?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- 530 5.7.0 Authentication Required SMTP: 530 5.7.0 Must issue a STARTTLS command first / 530 5.7.1 Authentication required
- 534 5.7.9 Application-specific password required SMTP: 534-5.7.9 Application-specific password required. Learn more at https://support.google.com/accounts/answer/185833
- 550 5.7.26 550 5.7.26 This mail has been blocked because the sender is unauthenticated (SPF/DKIM/DMARC)
Most viewed in Email / SMTP
- 550 5.7.1 550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted
- 550 5.1.1 550 5.1.1 The email account that you tried to reach does not exist (User unknown)
- Laravel: Connection could not be established with host Laravel: Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "smtp.mailtrap.io:2525": stream_socket_client(): Unable to connect
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 4 Nov 2026