Gmail blocks your email for missing SPF or DKIM: how to fix it
A Gmail bounce with code 550 5.7.26, 5.7.27, 5.7.30 or 5.7.40 means your message failed Gmail's sender checks: SPF, DKIM or DMARC. Google says every sender must pass SPF or DKIM, and bulk senders need all three. Fix the records in your domain's DNS, starting with SPF, then DKIM, then DMARC.
What does the Gmail error mean?
Read the bounce message that comes back to you. Near the bottom there is a line that starts with 550 or 421 and a code. Google's error list explains each one:
| Code in the bounce | What Gmail is telling you |
|---|---|
| 550 5.7.26, "the sender is unauthenticated" | Neither SPF nor DKIM passed for this message |
| 550 5.7.26, "hard fail policy (-all)" | Your SPF record ends in -all and the server that sent the mail is not in it |
| 550 5.7.26, "domain's DMARC policy" | DMARC failed and your own DMARC policy tells Gmail to refuse the mail |
| 550 5.7.27 | SPF did not pass |
| 550 5.7.30 | DKIM did not pass |
| 550 5.7.40 | Your domain has no DMARC record, or the record has no policy |
| 421 4.7.26, 4.7.27, 4.7.30 or 4.7.40 | The same checks failed, but Gmail is only slowing your mail down (rate limiting) for now |
A 421 code is a warning. Your mail server will keep trying for a while, but the mail can still bounce in the end if the records stay wrong.
Why does it suddenly happen?
The usual causes we see in support work are:
- A new system started sending as your domain, such as a website contact form, an online shop, a newsletter tool or an accounting system, and nobody added it to the SPF record.
- DKIM was never switched on, or the key was created but not published in DNS.
- The domain moved to a new host or new nameservers and the old SPF and DKIM records were left behind.
- Someone added a second SPF record. A domain may have only one, so the two cancel each other out.
- The mail is sent in bulk. Google asks anyone sending more than 5,000 messages a day to Gmail to have SPF, DKIM and DMARC together, with the From address matching the checked domain.
How do I fix it in cPanel?
If your email and DNS are hosted in cPanel, open Email Deliverability under the Email section. It lists each domain and shows whether its DKIM, SPF and reverse DNS records are valid.
- If a domain shows a problem and the DNS is managed by the same server, click Repair. cPanel shows the record it plans to install and asks you to confirm.
- If your DNS is elsewhere, for example at your domain registrar or Cloudflare, click Manage. cPanel shows the suggested SPF and DKIM records with their names and values. Copy them into the DNS zone at your DNS provider.
- If you also send through Mailchimp or another service, use Manage, then Customize, and add the service's domain to the Include list instead of creating a second SPF record.
If your mailboxes are on Google Workspace or Microsoft 365 rather than cPanel, follow that provider's own SPF and DKIM steps instead.
What to do
- Copy the exact bounce text and note the code. It tells you which check failed.
- Check your domain's records with a free lookup tool. Our guide on checking SPF, DKIM and DMARC shows how.
- Fix SPF first, so there is exactly one SPF record listing every system that sends as you.
- Turn on DKIM and publish its record in DNS.
- Add a DMARC record starting at p=none. Our DMARC policy guide explains when to tighten it.
- Wait for DNS to update, usually within a few hours, then send a test to a Gmail address. In Gmail, open the message, click the three dots and choose Show original. SPF, DKIM and DMARC should each say PASS.
If Outlook.com addresses bounce too, the same records fix both. We covered the Microsoft side in Outlook.com rejecting your email.
How SyncTech can help
If the bounces keep coming after these steps, our email troubleshooting service can read the bounce, check your DNS records and tell you exactly which line to change.
Source and credit
We are sharing information from Google and cPanel. This guide is written by Synctech in our own words.
- SMTP errors and codes, Google Workspace Admin Help: https://support.google.com/a/answer/3726730
- Email sender guidelines, Google Workspace Admin Help: https://support.google.com/a/answer/81126
- Email Deliverability in cPanel, cPanel and WHM Documentation: https://docs.cpanel.net/cpanel/email/email-deliverability-in-cpanel/ Retrieved 17 November 2026. Google, Gmail, Google Workspace, cPanel, Microsoft, Outlook, Cloudflare and Mailchimp are trademarks of their owners. Synctech is not connected with them. This is general information, not legal, tax or financial advice. If anything here is wrong, email support@synctech.com.my and we will correct it.
Related announcements
-
DMARC p=none, quarantine or reject: which should you set?
16 November 2026
-
How to check SPF, DKIM and DMARC records for your domain
15 November 2026
-
Outlook.com rejecting your email? Check SPF, DKIM and DMARC
7 November 2026
-
Do I need separate email hosting if I have web hosting?
4 November 2026
Questions? Open a ticket or WhatsApp +6016-7618518.