SPF configuration

How to Modify an SPF Record Without Losing Authorized Senders

Import one SPF policy, inventory outbound services, compare ordered edits and publish a deliberate TXT update without creating duplicate SPF records.

Changing an SPF record is usually an update to an existing authorization policy. Before adding a new service, identify the SMTP envelope domain it uses, inspect the policy already published there, and keep every legitimate sender that still needs access. A website’s incoming MX records do not provide that inventory.

Use the SPF Record Generator to import, edit and compare a draft. It changes only the value in your browser. You remain responsible for reviewing the policy and publishing it in the correct DNS zone.

Find the right domain and current SPF record

SPF usually evaluates the MAIL FROM domain, often visible in a message’s Return-Path. That can be a separate subdomain from the address readers see in From. A provider may use its own return-path domain, assign a custom sending subdomain or manage authentication through CNAMEs. Do not assume every service needs an include at your root domain.

Enter the exact domain in the generator and choose Fetch published SPF. Inspect the returned record and resolver timestamp before selecting Replace draft. A DNS failure is not evidence that a policy is absent. If the answer contains multiple SPF policies, investigate them separately; the tool does not guess which one should replace the others.

You can also paste a copied value. Quoted character-strings within one TXT answer concatenate without extra spaces. Separate SPF TXT resource records must not be concatenated as though they were one answer. For general syntax, see SPF records explained.

Inventory outbound senders before editing

List employee email, support platforms, marketing campaigns, billing systems, transactional services and servers that send using this envelope identity. Record who owns each service and its official DNS setup instructions. Existing includes that are unfamiliar should be investigated, not deleted just because their names are hard to recognize.

Provider presets can help with documented includes, but selecting one is not account verification. Microsoft cloud environments can require different include domains. Amazon SES custom MAIL FROM uses a dedicated subdomain and accompanying MX setup. SendGrid’s default authentication uses assigned CNAME records. Keep separate return-path policies separate rather than mechanically adding every vendor to one record.

Add the new sender without duplicating a policy

For an illustrative existing policy:

v=spf1 include:_spf.google.com ~all

A domain that also legitimately sends Zendesk support replies may need:

v=spf1 include:_spf.google.com include:mail.zendesk.com ~all

This retains the existing sender and adds a mechanism before the ending. The example assumes both services actually use the relevant envelope domain and that their setup applies to your accounts. Check the Google Workspace instructions and Zendesk setup guide.

Do not publish both complete values as separate SPF records. Other unrelated TXT records, such as domain-verification tokens, can coexist; the restriction concerns multiple SPF version-1 policies at the same owner name.

Review order, qualifiers and the ending

SPF mechanisms run in order and stop when one matches. The modifier redirect= is used only if mechanisms do not match, and any all mechanism disables it. Importing a policy should preserve that behavior, including qualifiers, macros and CIDR lengths.

Check the original-versus-modified view for removed terms, changed qualifiers, changed policy and redirect. Reordering can affect behavior even when the same terms remain. Advanced extension syntax stays in the editor rather than being discarded by visual controls. Use Revert if the change is no longer what you intended.

~all softfails remaining senders; -all fails them; ?all is neutral. None is universally correct for every migration. +all passes every sender that reaches it and usually defeats the intended restriction. Do not change an ending as a side effect of adding a provider unless you have explicitly planned that change.

Check lookup risks without treating a count as a verdict

A local syntax check catches malformed mechanisms and duplicate known modifiers. It cannot verify account setup or enumerate all legitimate senders. Optional live analysis follows literal include and redirect dependencies using the shared SPF engine.

The ten-term limit applies to DNS-query-causing terms actually reached during evaluation, including nested evaluations. Earlier matches can stop evaluation. A conservative potential path over ten deserves investigation, but is not proof that every message fails. Macros, address matching and void-lookup limits remain sender-dependent. Follow the SPF lookup-limit investigation guide rather than removing senders solely to reduce a visible count.

Publish one reviewed TXT update and verify

Copy the draft and use your authoritative DNS manager to deliberately replace the existing SPF value. Follow that provider’s Name/Host syntax: @, blank and full-domain inputs are not interchangeable across all panels. Use the provider’s default TTL or an intentionally chosen operational setting.

Over 255 octets requires multiple character-strings within one TXT resource record, not independent SPF policies. Many panels split automatically. Keep the original value in your change notes so you can restore it if necessary.

After publication, inspect the exact domain with the Bulk SPF Checker. Allow for cached answers, then send controlled messages through each legitimate service and examine receiver authentication results. SPF passing for an envelope identity does not by itself prove alignment with the visible From domain. Review DMARC policy and alignment alongside DKIM when evaluating the complete email setup.

The syntax and evaluation distinctions above follow RFC 7208, particularly sections 3–7. No generator can guarantee mail delivery from a static configuration alone.