[ SPF ]

Changing SPF during an email-provider migration

Keep old and new sending paths authorised for the planned overlap, then remove the old path using evidence. An email migration is an identity and routing change, not just an SPF edit.

By the EmailAuth research team · 4 min read

[ Key points ]

  • Inventory each actual envelope identity and business route.
  • Test one combined policy rather than publishing competing records.
  • Retire old authority only when dependencies and recovery are understood.
On this page

An email-provider migration can leave two legitimate sending systems active at once. The safest SPF plan starts with the messages and identities that will exist during that overlap. Adding the new provider is only one step; removing the old one too early or retaining it indefinitely creates different problems.

Inventory the migration boundary

List employee mail, application notifications, billing, automated replies and devices that relay through the old platform. For each flow, capture the actual envelope domain and outbound route. The visible From address is not necessarily the SPF identity. Use the email identity chain to keep those fields separate.

Ask the new provider for the current instructions for your tenant and configuration. Some services use their own envelope domain unless a custom return path is configured. Adding an include to your root domain does not automatically alter that identity. Do not invent provider values or reuse another tenant's setup.

Design the overlap policy

Preserve one applicable SPF record at each evaluated owner name. Do not publish the old and new policies as separate competing SPF records. RFC 7208 §3.2 and RFC 7208 §4.5 define the selection constraint.

Build a candidate containing the still-required authorisations. Evaluate the combined dependency tree because two individually acceptable configurations can produce a problematic combined path. Test the actual envelope domains and IP families in use. Avoid merely counting top-level includes or assuming a provider name in DNS proves the right configuration.

Record the intended final nonmatching result and ensure it has not changed accidentally. A migration is not a reason to grant universal authorisation. Keep DKIM setup and DMARC alignment verification in the plan as distinct workstreams.

Rehearse the cutover

This illustrative migration has staff mail moving on Monday while an invoicing application remains on the old relay until Friday. Removing the old authorisation on Monday would ignore the application schedule. Conversely, leaving it forever because invoices once used it would avoid the decommissioning decision. The plan needs a separate owner and exit criterion for that flow.

Before production, preserve the old DNS value, the proposed overlap value and the recovery decision. Review previous TTLs and expected caching behaviour without promising that all receivers change simultaneously. Test the new path with ordinary messages and important automated variants, not only a provider's internal verification screen.

Check the receiver's evidence

Collect a received sample from each relevant route and inspect the trusted receiver's authentication result, evaluated envelope identity and visible From domain. RFC 8601 explains the trust boundary for Authentication-Results; a header inserted outside that boundary is not independent proof.

A raw SPF pass does not establish DMARC alignment. RFC 9989 section 4.4 relates authenticated identities to the Author Domain. Confirm the new route's aligned authentication rather than treating a successful DNS lookup as completion. Delivery can still depend on other receiver policies.

Remove the old authority deliberately

Use application-owner confirmation, sending logs and representative observation to decide when the old route is no longer needed. Consider queued retries and unusual scheduled jobs. There is no single waiting period that proves every organisation has stopped using a provider.

Prepare and approve a second policy change that removes only the retired scope. Repeat positive and negative evaluations and verify the remaining flows. Keep a rollback plan that accounts for whether the old service still exists; a saved DNS record cannot restore a cancelled sending account.

Close the migration when the inventory, DNS, received-message tests and ownership records agree. Keep the retirement evidence so the next administrator knows why the old provider was removed rather than re-adding it in response to an unrelated failure.

DNS background: RFC 1035 section 3.2.1 defines resource-record TTL; RFC 2308 §5 covers negative caching; RFC 8767 §4 updates TTL semantics and permits stale use when authoritative refresh fails. These describe DNS behaviour, not a universal completion time for a change.

Record the next decision

Track staff and invoices as separate rows: owner, current route, actual envelope domain, overlap requirement, new-route evidence and retirement condition. Staff cutover does not authorize removing the invoice dependency. If the old account is cancelled, mark routing rollback unavailable even if an old DNS value is saved. This is a proposed acceptance record, not an executed migration.

[ Takeaway ]

Inventory each actual envelope identity and business route. Test one combined policy rather than publishing competing records. Retire old authority only when dependencies and recovery are understood.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Test the combined policy.

Migration creates a temporary configuration that deserves its own evaluation.

Next steps

  1. Use tenant-specific provider instructions.
  2. Verify envelope identity and alignment.
  3. Remove old authority in a separate reviewed change.

CISO / SecOps

Track the end of delegated access.

Successful cutover and removal of unnecessary authorisation are different milestones.

Next steps

  1. Review the retired sender scope.
  2. Verify access and integration cleanup.
  3. Retain evidence supporting decommissioning.

Founder / Non-technical

Protect the business cutover.

Different applications can leave the old platform on different dates.

Next steps

  1. Name owners for critical flows.
  2. Agree overlap and retirement criteria.
  3. Keep recovery capability until it is no longer needed.

[ FAQs ]

Frequently asked questions

Should I publish a second SPF record for the new provider?

No. Keep one applicable policy at the evaluated owner name and combine required authorisations within a valid design.

RFC 7208 §3.2 RFC 7208 §4.5

Do both providers need authorisation during overlap?

Any still-used route needs its appropriate configuration. Establish which envelope identities and services are actually active.

Does adding the new include change my return path?

No. Envelope identity configuration is a separate provider setting or service behaviour that must be verified.

RFC 7208 §2.4

Can two valid records become invalid when combined?

Yes. The combined policy may create syntax, selection or evaluated-path problems. Test the complete candidate.

RFC 7208 §4.5 RFC 7208 §4.6.4

When should I remove the old provider?

After the relevant owners and evidence establish that its routes are retired, including applicable scheduled work and queued traffic.

Is SPF pass enough to declare migration complete?

No. Verify alignment, other required authentication, representative delivery and the business applications involved.

RFC 9989 §4.4

How long should the overlap last?

Base it on actual cutover schedules and evidence. There is no universal SPF migration duration.

What makes rollback realistic?

Retain the previous configuration and confirm the old routing service and access still work. DNS restoration alone cannot recreate a cancelled service.

[ Sources ]

Sources

  1. RFC 7208

    Sections §2.4 · §3.2 · §4.5 · §4.6.4 · §5.2

  2. RFC 8601

    Sections §1.2 · §7.1

  3. RFC 9989

    Sections §4.4

  4. RFC 1035

    Sections §3.2.1

  5. RFC 2308

    Sections §5

  6. RFC 8767

    Sections §4

[ Glossary ]

Glossary

SPF
Authorization evaluation for a connecting IP and the relevant SMTP identity.

RFC 7208 §2.4

SPF include
Recursive evaluation whose pass makes the include match; its qualifier determines the outer result.

RFC 7208 §5.2

DNS TTL
The interval before the source of a cached record must be consulted again; stale use can be permitted when authoritative refresh fails.

RFC 8767 §4

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base