Since February 2024, Gmail has enforced stricter sender rules: every message must pass at least SPF or DKIM, and bulk senders need both plus DMARC. The bounce usually includes the authentication details:
550-5.7.26 This mail has been blocked because the sender is unauthenticated.
550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM.
550-5.7.26 Authentication results:
550-5.7.26 DKIM = did not pass
550-5.7.26 SPF [example.com] with ip: [203.0.113.10] = did not pass
A second variant concerns DMARC:
550-5.7.26 Unauthenticated email from example.com is not accepted due to domain's DMARC policy.
That one means the From domain has a strict DMARC policy (p=reject or p=quarantine) and the message didn’t align with it.
Causes
- No SPF record, or one that doesn’t include the server that actually sent, such as a website on one host and email on another, or a CRM or newsletter tool.
- Two SPF records on one domain: the result is PermError, treated as a fail. See SPF PermError.
- DKIM not enabled, or the DNS key incomplete or cut off when pasted.
- A From address on a domain you don’t own: a contact form sending as
[email protected]from your server fails gmail.com’s DMARC policy. This is one of the most common causes. - Forwarding: SPF fails at the forwarding server, and DKIM breaks if the message is modified.
- Nameservers hosted elsewhere, such as Cloudflare, so the automatic records were never created.
How to fix it
- Read the authentication results in the bounce: which check failed and which IP sent the message.
- Fix SPF: exactly one TXT record at the root of the domain, covering everyone who sends as you:
v=spf1 +a +mx include:_spf.your-provider.example ~all
Replace the include with whatever each outside service specifies, and use the SPF generator to build it.
3. Enable DKIM: in cPanel open Email → Email Deliverability, then Manage next to the domain. It shows SPF and DKIM status and the records you need. If your nameservers are elsewhere, copy the default._domainkey record there exactly, without breaking it up.
4. Add DMARC: a TXT record named _dmarc, starting with a monitoring policy:
v=DMARC1; p=none; rua=mailto:[email protected]
Once all your mail passes, move to quarantine, then reject. The DMARC generator can build it.
5. Fix website forms: send from your domain and reply to the visitor:
From: Website <[email protected]>
Reply-To: [email protected]
- Verify the records with the TXT lookup tool, then send a test to Gmail and open Show original. You should see
SPF: PASS,DKIM: PASSandDMARC: PASS.
Prevention
- Whenever you add a service that sends as your domain, add it to SPF and set up DKIM for it.
- Read your DMARC reports to see who is sending as you.
- Instead of forwarding mail to Gmail, read the mailbox directly over IMAP.
On ArabyHost
For domains pointed to ns1.arabicode.com and ns2.arabicode.com, SPF and DKIM are set up automatically for ArabyHost email. If your nameservers are elsewhere, copy the records from Email Deliverability to them. The full walkthrough is in the SPF, DKIM and DMARC guide. Outgoing email is capped per hour per domain, so large campaigns need a dedicated service. The Araby AI assistant reads error logs and explains fixes.
FAQ
Is SPF alone enough to get past this error?
Gmail's minimum is a pass on SPF or DKIM, but both passing plus a DMARC record is the proper setup. DKIM matters more when mail is forwarded, because SPF usually fails then.
Why does Gmail reject my website's contact-form emails?
The form puts the visitor's address, such as an @gmail.com one, in the From field, and your server isn't authorized to send as gmail.com. Use an address on your domain as From and the visitor's in Reply-To.
How long should I wait after adding the records?
Usually minutes, sometimes hours, depending on the TTL of the old records. Check the record with a TXT lookup before resending.