logo
search
Security Policy Errors

How to Fix Gmail SPF and DKIM Authentication Failures for Custom Domains

Bushra ParveenBushra Parveen Oct 7, 2026 868 views

Question details

The user needs to resolve email authentication errors causing Gmail to reject messages sent from their custom domain.

How to Fix Gmail SPF and DKIM Authentication Failures for Custom Domains
Product
Custom Domain Email
Device & OS
not provided
Scenario
Sending outbound emails to Gmail users using a custom domain hosted on either current or legacy email platforms.
Observed behavior
Gmail rejects incoming messages from the custom domain because the domain's SPF or DKIM authentication fails Google's strict security policies.
Before you start

Ensure you have administrator access to your domain's DNS management portal (usually located at your domain registrar or web host) and the documentation from your current email hosting provider.

Solution 1Recommended

Configure and Consolidate SPF and DKIM Records in DNS

Update your domain's DNS settings to authorize your specific email service to send messages on your behalf.

Having incorrect, missing, or multiple SPF records will cause authentication failures in Gmail. You must ensure only one SPF record exists and that DKIM keys are properly published.

1
Log into your DNS host

Navigate to the DNS management or Zone Editor section of your domain registrar's dashboard.

2
Consolidate SPF records

Locate your TXT records. If you have multiple SPF records (starting with 'v=spf1'), combine them into a single TXT record that includes every authorized sending service, and delete the duplicates.

3
Add DKIM records

Obtain the required DKIM selector and public-key details from your email provider's admin console. Add these as a new TXT or CNAME record in your DNS settings.

4
Verify authentication results

Send a test email to a Gmail address. Click 'More' (three dots) > 'Show original' in Gmail to verify that both SPF and DKIM show a 'PASS' status in the message headers.

Configure and Consolidate SPF and DKIM Records in DNS
DNS Propagation Time: Changes to DNS records can take anywhere from a few minutes up to 48 hours to fully propagate across the internet.
Free Microsoft Office alternative

Enhance Your Business Productivity with WPS Office

While resolving complex email authentication and DNS issues, you can simplify your business operations with WPS Office. It provides a lightweight, free alternative to Microsoft Office, ensuring seamless document management and workflow continuity.

  1. 1. Download the installer: Visit the official WPS Office website and download the correct installer for your Windows, Mac, or Linux system.
  2. 2. Install the software: Run the downloaded file and follow the on-screen prompts to complete the installation process quickly.
  3. 3. Open your business documents: Launch WPS Office and open your existing Word, Excel, or PowerPoint files without worrying about formatting loss.
Fully compatible with Microsoft Office formats like .docx, .xlsx, and .pptx.Securely draft email migration plans, server setups, and DNS configuration notes.Free, lightweight, and cross-platform alternative for seamless business productivity.Familiar user interface making the transition from Microsoft Office effortless.
microsoft office alternative - wps office

Frequently Asked Questions

Can I have multiple SPF records for a single domain?

No. Having multiple SPF TXT records for a single domain will cause SPF checks to fail permanently. You must consolidate all authorized IP addresses and 'include:' statements into one single SPF record.

What happens if my email provider does not support DKIM?

If your legacy service (such as older Outlook.com custom domain setups) does not offer DKIM generation, your emails may be heavily filtered or rejected by strict receivers like Gmail. You will likely need to migrate your outbound mail to a modern business email provider that supports DKIM.

How do I check if my SPF and DKIM are working properly?

You can use Google's Admin Toolbox 'Check MX' tool to analyze your domain's DNS. Alternatively, send an email to a Gmail address, open the message, click the three-dot menu, and select 'Show original' to see if the SPF and DKIM statuses report 'PASS'.

Why is Gmail suddenly rejecting my custom domain emails when it worked before?

Google periodically tightens its security and anti-spam policies. Recently, Gmail began strictly enforcing requirements for senders to have authenticated SPF and DKIM records to help prevent phishing and domain spoofing.