SYNCTECH
Email delivery · · by the Synctech team

How to combine two SPF records for Google Workspace and hosting email

How to combine two SPF records for Google Workspace and hosting email

A domain may have only one SPF record. If you use Google Workspace for staff mailboxes and your web hosting also sends mail, such as website forms or an online shop, both senders go into that one record. Two separate v=spf1 lines make SPF fail for every email you send. Merge them into one line at your DNS host.

Why do two SPF records break email?

The SPF standard (RFC 7208) says that when a receiving server finds more than one SPF record for a domain, the result is "permerror". In plain words, the check breaks and your mail counts as unauthenticated. Receivers such as Gmail may then put it in spam or refuse it.

This usually happens by accident. Someone signs up for Google Workspace, follows the setup steps and adds a new TXT record, while the record from the hosting company is still there. Nothing looks wrong until customers say your quotes went to their junk folder.

How do I check whether my domain has two?

Look up the TXT records of your domain with any free DNS lookup tool, or ask your IT person. Count the lines that start with v=spf1. One is right. Two or more need merging. Lines for other things, like Google site verification, are fine to leave alone.

How to merge them

Say your domain shows these two records:

  • v=spf1 include:_spf.google.com ~all (added for Google Workspace)
  • v=spf1 +a +mx +ip4:203.0.113.10 ~all (added by your web hosting)

Keep one v=spf1 at the start and one ~all at the end. Put every sender in between:

v=spf1 include:_spf.google.com +a +mx +ip4:203.0.113.10 ~all

Then delete the old second record. Google's help page gives ready-made merged lines for common pairs, for example Google Workspace with Microsoft 365, Mailchimp or Shopify. They all follow the same pattern: one include: per sender.

A few rules keep the merged line working:

  1. Only one "all" at the very end. Anything placed after it is ignored.
  2. Keep the 10 lookup limit in mind. Each include:, a, mx and similar entry counts as a DNS lookup. Over 10 and SPF fails again. ip4 and ip6 entries do not count.
  3. Google recommends ~all (soft fail). Move to -all only once you are sure every sender is listed.
  4. Drop senders you no longer use, such as an old newsletter tool. They waste lookups.

What to do

  1. Make a list of everything that sends email as your domain: Google Workspace, the website, shop or booking system, newsletter tool and accounting software.
  2. Ask each provider for its SPF entry. Google Workspace uses include:_spf.google.com. Your hosting provider can tell you its entry.
  3. Write one merged record, then edit the existing SPF TXT record at your DNS host. Do not add a new one.
  4. Wait for the change to spread. Google says this can take up to 48 hours.
  5. Send a test email to a Gmail address, open it, choose "Show original" and look for SPF: PASS.
  6. Set up DKIM and DMARC too. Our guide on checking SPF, DKIM and DMARC shows how to read all three.

How SyncTech can help

If your mail still lands in spam after the merge, our email troubleshooting service checks your SPF, DKIM and DMARC records and tells you the exact line to change.

Source and credit

We are sharing this information from Google Workspace Help and the IETF. This summary is written by Synctech in our own words.

Retrieved 23 November 2026. Google Workspace, Gmail, Microsoft 365, Outlook, Mailchimp and Shopify 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

Questions? Open a ticket or WhatsApp +6016-7618518.