What the message looks like
550-5.7.26 Unauthenticated email from beispiel.de is not accepted due to domain's DMARC policy.Common causes
- The sending IP (newsletter tool, CRM, web shop) is missing from the SPF record.
- SPF exceeds the 10 DNS lookup limit and returns
permerror. - DKIM is not signing, or the DNS selector does not match the key.
- No alignment: SPF/DKIM pass for a different domain than the one in
From:. - Forwarding through third-party servers breaks SPF and there is no DKIM to fall back on.
Check
- Query the sender domain's SPF record
- Query the DMARC policy
dig +short TXT _dmarc.example.com - Check the DKIM key for the selector
dig +short TXT default._domainkey.example.com - Test the DKIM key against DNS (OpenDKIM)
opendkim-testkey -d example.com -s default -vvv - In a delivered test mail, check the
Authentication-Resultsheader for spf=, dkim= and dmarc=
Fix
- Add every sending source via
ip4:/include:to SPF and end it with~allor-all. - Keep SPF under 10 lookups: drop unused includes or replace them with IP ranges.
- Enable DKIM signing on the mail server or sending service and publish the public key at
selector._domainkey. - For external services, set up a custom return-path or DKIM domain so alignment works.
- Run DMARC with
p=noneandrua=reports first, review them, then tighten the policy.
Typical scenario
Marketing sends a newsletter from news@example.com through a third-party sending service. The domain has an SPF record and DMARC with p=reject, but the service signs with its own DKIM domain. Gmail rejects the mail and the bounce says 'not accepted due to domain's DMARC policy'. Open a rejected test message in a Gmail account via 'Show original' and read the Authentication-Results line: it shows whether SPF and DKIM line up with the From domain.
FAQ
What is the difference between 5.7.26 and 5.7.23?
5.7.26 means DMARC failed or the mail is not authenticated at all. 5.7.23 means the SPF check itself hard-failed, typically with -all.
Is SPF alone enough for Gmail?
Not for bulk senders – Google requires SPF and DKIM plus DMARC. Even at low volume DKIM is the more robust base because it survives forwarding.
Is a passing SPF check enough for DMARC?
Not automatically. DMARC needs SPF or DKIM to pass and to align with the domain in the From header. SPF checks the envelope domain, which for sending services is often their own. A DKIM key for your own domain is therefore usually the more reliable route.
Why do some messages fail only after being forwarded?
Forwarding changes the sending IP, so SPF fails. If the content stays untouched, the DKIM signature survives. If the forwarder alters the subject or body, as many mailing lists do, DKIM breaks too, and the only remedy is a policy that accounts for it.
Should I set DMARC to p=none so the mail goes through again?
That only hides the problem. It is better to achieve alignment for every legitimate sender and to watch with p=none plus rua reports before tightening the policy again. The reports show which sources still send unsigned.