Set up a new email service recently? Switched marketing platforms, or added a third-party tool that sends email on your behalf? Chances are you've run into the need to update your SPF record. It sounds more intimidating than it actually is — once you understand the structure, making changes is genuinely straightforward.
Here's a working example of how to add another server or include to an existing SPF record.
SPF stands for Sender Policy Framework — a DNS record that tells receiving mail servers which servers are actually authorized to send email on behalf of your domain.
When someone gets an email from your domain, their mail server checks your SPF record to confirm the sending server is legitimate. If that server isn't listed, the email's a lot more likely to get flagged as spam — or rejected outright.
The bottom line: how accurate and up-to-date your SPF record is directly affects whether your emails actually land in the inbox.
Here's a sample SPF record as it'd appear in your DNS settings:
v=spf1 include:mailserver.com ip4:192.168.1.1 ~allBreaking that down:
v=spf1 — declares this as an SPF record
include:mailserver.com — authorizes a third-party mail server
ip4:192.168.1.1 — authorizes a specific IP address
~all — a soft fail for anything not listed (generally the recommended choice over -all for most setups)
Adding a new server or third-party service to your SPF record really just means editing your existing record — you don't create a new one. This matters more than it might seem: two separate SPF records on the same domain will conflict with each other and break email authentication entirely.
Step 1 — Log into your DNS management panel
Usually this lives in your domain registrar account or hosting control panel — wherever you currently manage your domain's DNS settings.
Step 2 — Find your existing SPF record
Look for a TXT record starting with v=spf1. That's your current SPF record.
Step 3 — Add the new server or include
Depending on what you're actually adding, you'll use an include: tag for a third-party service, or an ip4: / ip6: tag for a specific server IP.
Adding a third-party service like Google Workspace, Mailchimp, or SendGrid:
v=spf1 include:existing-server.com include:new-service.com ~allAdding a specific server IP address:
v=spf1 include:existing-server.com ip4:203.0.113.50 ~allEither way, just insert the new include: or ip4: entry before the ~all at the end of your existing record.
Step 4 — Save the record
Save your changes, then give it time for DNS propagation — this can take anywhere from a few minutes up to 24 hours, depending on your DNS provider.
Don't create duplicate SPF records. Only one SPF record is allowed per domain — always edit the existing one rather than adding a second alongside it.
Keep an eye on the lookup limit. SPF records max out at 10 DNS lookups, and every include: tag counts toward that total. Go over 10, and SPF authentication fails outright — so it's worth keeping your record clean and removing any services you're no longer actually using.
~all or -all always goes last. The all mechanism has to be the final entry in your SPF record, every time. Anything you add goes before it, never after.
Updating an SPF record to add a new server or email service is genuinely simple once you know the structure. Edit your existing TXT record, add the new include: or ip4: entry before the final all mechanism, save it, and you're done. Keep an eye on your lookup count as the record grows over time, and it's always worth testing your SPF record after making changes using a free online SPF checker — just to confirm everything's actually valid before you move on.