Your Emails Are Being Blocked—Here's the Fix
If you're seeing this error, Gmail is actively rejecting your emails:
550-5.7.26 This mail is unauthenticated, which poses a security risk to the
sender and Gmail users, and has been blocked. The sender must authenticate
with at least one of SPF or DKIM.
Translation: Google cannot verify you are the legitimate sender of this email. Until you prove your identity via DNS records, your messages will be blocked.
Don't panic. This is fixable. Let's get your emails delivered.
Why This Is Happening
Gmail requires authentication before accepting emails. Without it, anyone could send emails pretending to be you.
To prove you're legitimate, you need one or more of these DNS records:
| Record | Purpose |
|---|---|
| SPF | Declares which servers can send email for your domain |
| DKIM | Adds a cryptographic signature to prove the email wasn't tampered with |
| DMARC | Ties SPF and DKIM together with a policy |
If none of these are set up—or if they're misconfigured—Gmail blocks your mail.
Fix 1: SPF (The Usual Suspect)
SPF is the most common cause of this error. It's also the easiest to fix.
Check If You Have SPF
Run this command in your terminal:
dig TXT yourdomain.com +short
Or use DmarcBeacon for an instant scan.
If you see no SPF record, that's your problem.
Add the SPF Record
Go to your DNS provider and add a TXT record:
| Field | Value |
|---|---|
| Type | TXT |
| Name | @ |
| Value | v=spf1 include:_spf.google.com ~all |
| TTL | 1 Hour |
Important: Replace include:_spf.google.com with your actual email provider. See the table below.Common SPF includes:
| Provider | Include Statement |
|---|---|
| Google Workspace | include:_spf.google.com |
| Microsoft 365 | include:spf.protection.outlook.com |
| SendGrid | include:sendgrid.net |
| Mailchimp | include:servers.mcsv.net |
| Amazon SES | include:amazonses.com |
| HubSpot | include:email.hubspot.com |
| Salesforce | include:_spf.salesforce.com |
If you use multiple providers, combine them:
v=spf1 include:_spf.google.com include:sendgrid.net ~all
Warning: SPF has a 10 DNS lookup limit. If you exceed it, SPF fails entirely.
Fix 2: DKIM (The Cryptographic Proof)
SPF alone isn't always enough—especially for forwarded emails.
When an email is forwarded, the sending IP changes. SPF checks fail because the new server isn't in your SPF record. DKIM survives forwarding because it's attached to the email itself.
Set Up DKIM
DKIM requires two things:
- 1.Enable DKIM signing in your email provider's settings
- 2.Add the DKIM public key to your DNS
- 1.Admin Console → Apps → Gmail → Authenticate email
- 2.Select your domain → Generate new record
- 3.Add the TXT record to your DNS
- 1.Settings → Sender Authentication → Authenticate Your Domain
- 2.Follow the wizard to get CNAME records
- 3.Add them to your DNS
| Field | Value |
|---|---|
| Type | TXT |
| Name | google._domainkey (or your selector) |
| Value | v=DKIM1; k=rsa; p=MIIBIjANBgkq... |
Fix 3: DMARC Alignment
DMARC connects SPF and DKIM and tells Gmail what to do when authentication fails.
If you have SPF and DKIM but still see this error, your alignment might be wrong.
What Is Alignment?
DMARC checks that the domain in the email's "From" header matches:
- The domain validated by SPF, OR
- The domain validated by DKIM
Add a DMARC Record
| Field | Value |
|---|---|
| Type | TXT |
| Name | _dmarc |
| Value | v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com |
Start with p=none (monitoring mode) until you're confident everything is working.
The "Forwarding" Trap: CRMs and Third-Party Senders
This is the #1 hidden cause of 550 5.7.26 errors.
If you're sending email through:
- HubSpot
- Salesforce
- Mailchimp
- Intercom
- Any CRM or marketing platform
The Fix
Every third-party sender must be:
- 1.Added to your SPF record (their include statement)
- 2.Configured for DKIM (they provide the key, you add it to DNS)
How to Verify Your Fix
Step 1: Wait for DNS Propagation
DNS changes can take 15 minutes to 1 hour to propagate globally.
Step 2: Scan Your Domain
Stop guessing if your fix worked. Run a free instant scan with DmarcBeacon to confirm Google sees your new records.
Step 3: Send a Test Email
Send an email to a Gmail account. Open it and check the headers:
- 1.Open the email in Gmail
- 2.Click the three dots (⋮) → Show original
- 3.Look for:
SPF: PASS
DKIM: PASS
DMARC: PASS
If all three show PASS, you're fixed.
Quick Diagnostic Checklist
| Check | How to Verify |
|---|---|
| SPF exists | dig TXT yourdomain.com +short should show v=spf1... |
| SPF includes your sender | All services that send email must be in the SPF record |
| DKIM is enabled | Check your email provider's authentication settings |
| DKIM DNS record exists | dig TXT selector._domainkey.yourdomain.com +short |
| DMARC exists | dig TXT _dmarc.yourdomain.com +short should show v=DMARC1... |
| No SPF lookup limit | Must have ≤10 DNS lookups in SPF |
Still Seeing the Error?
If you've added all records and still get blocked:
- 1.Check for typos in your DNS records (extra spaces, missing semicolons)
- 2.Verify propagation is complete (can take up to 48 hours in rare cases)
- 3.Check alignment — the From domain must match SPF or DKIM domain
- 4.Look for multiple SPF records — you can only have ONE SPF record per domain
Get Back to Sending
The 550 5.7.26 error is frustrating, but it's telling you exactly what's wrong: Gmail can't verify you're legitimate.
Fix your SPF, set up DKIM, and add DMARC. Your emails will flow again.
Scan your domain now with DmarcBeacon to confirm your authentication is working before your next send.