[ SPF ]

SPF for shared sending infrastructure: limit over-authorisation

Review what an SPF mechanism authorises on shared infrastructure, then combine narrow policy design with provider-side identity controls.

By the EmailAuth research team

[ Key points ]

  • Host authorization does not identify a provider customer account.
  • Use the narrowest supported configuration for the actual envelope identity.
  • Document provider identity enforcement separately from your SPF pass.
On this page

An SPF include for a shared email service can authorise infrastructure used by many customers. That is often how the service is designed, but the permission deserves a clear explanation. SPF checks a connecting host against a domain policy; a broad positive match is not a tenant-specific cryptographic credential.

The practical question is whether your provider prevents another customer from sending with your SMTP identity, and whether the policy grants only the infrastructure permissions your use actually needs.

Map the trust relationship

For each include or shared IP range, record the service, business owner, supported envelope domain and documented provider setup. Determine whether your mail uses a provider-owned envelope domain or a custom domain you control. If the provider owns the actual evaluated domain, adding an include to your root domain may not affect that message's SPF result at all.

Read the provider's current documentation for domain verification and sender controls. Where documentation is unclear, identify the question for the service owner or provider support. Do not claim that all tenants are isolated merely because a test from your own account passes.

Understand the limit of an IP-based decision

RFC 7208 §11.4 describes cross-user forgery risks where a shared system allows users to claim other users' identities. An SPF pass can establish that the connecting host is authorised for the evaluated domain without proving which customer account initiated the message. Provider-side enforcement is therefore part of the security boundary.

This does not mean every shared service is unsafe. It means the authorisation model has two layers: DNS grants permission to infrastructure, and the service must restrict how customers use identities on that infrastructure. Evidence for one layer should not be presented as evidence for the other.

Choose the narrowest supported configuration

Prefer the exact include or domain configuration the provider supports for your sending product and region, where such distinctions are documented. Avoid adding a vendor's entire network allocation when a narrower maintained policy is available. Do not invent narrower includes or replace vendor-managed policy with a snapshot of IPs unless you can maintain that design safely.

A dedicated return-path subdomain can separate a service's SPF policy from other mail. It improves ownership and lifecycle management, but it does not by itself prove isolation among customers sharing the provider. Review other authentication and account controls as separate parts of the design.

Compare two configurations carefully

Illustrative example: v=spf1 ip4:192.0.2.0/24 -all authorises every IPv4 address in that documentation network for the evaluated identity. A policy naming only ip4:192.0.2.10 authorises one address. The narrower policy reduces the source set, but it is useful only if the provider actually guarantees that address for your service. An unsupported restriction can break legitimate delivery during failover.

Under RFC 7208 §5.2, an include evaluates a referenced policy; its current expansion is an observation, not a permanent contract. It can change when the provider changes its policy. Capture the dependency and ownership rather than treating today's resolved addresses as the final truth.

Review without testing other tenants

Use your own authorised accounts and controlled recipients for validation. Confirm your expected identities and record which infrastructure produces pass. Assess tenant restrictions through documentation, approved configuration evidence or an explicitly authorised security test. Do not attempt to impersonate another customer's domain to demonstrate a theoretical concern.

Monitor for new includes, unusually broad network ranges and services with no owner. A policy review should also check recursive evaluation limits, because several shared providers can create a resource problem even when each include is individually legitimate.

Make the acceptance decision explicit

Keep a short record of the granted infrastructure permission, provider-side identity controls, known evidence gaps and the responsible owner. Schedule review when the provider or service configuration changes. Accepting shared infrastructure can be reasonable, but the decision should rest on the complete trust model rather than a green SPF badge alone.

Record the next decision

Use two evidence rows: infrastructure permission (actual policy, envelope domain and observed source) and tenant control (documented verification/enforcement, configuration evidence and unresolved gaps). Your own successful SPF result fills only the first row. If a narrower address is not guaranteed by the provider, do not treat an unsupported restriction as a verified security improvement. No cross-tenant test or provider change was performed.

[ Takeaway ]

Host authorization does not identify a provider customer account. Use the narrowest supported configuration for the actual envelope identity. Document provider identity enforcement separately from your SPF pass.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Use supported scope.

Narrowing policy without provider support can break mail just as overbroad policy can weaken boundaries.

Next steps

  1. Confirm the actual envelope domain.
  2. Track include dependencies and evaluation limits.

CISO / SecOps

Evaluate both layers of trust.

DNS permission and provider tenant enforcement answer different security questions.

Next steps

  1. Request evidence of identity controls.
  2. Document unresolved isolation assumptions.

Founder / Non-technical

Understand the service dependency.

Shared infrastructure is a business choice with configuration and ownership obligations.

Next steps

  1. Name the owner of each vendor permission.
  2. Ask how identity use is restricted.

[ FAQs ]

Frequently asked questions

Does SPF identify my customer account at a provider?

Not by itself. SPF primarily evaluates host authorisation for a domain identity; account-level restrictions depend on the provider’s design.

RFC 7208 §11.4

Are shared sending services inherently unsafe?

No. Review their identity verification and enforcement alongside the SPF permission you grant.

Does a dedicated return-path subdomain prove tenant isolation?

No. It separates your policy and ownership boundaries, but provider-side controls still matter.

Should I use the broadest vendor IP range?

Use the narrowest supported configuration that correctly covers your service, not an arbitrary broad allocation.

Can I replace an include with today’s addresses?

Only with a sound maintenance design. Provider addresses can change, and a snapshot can break failover or future delivery.

Why might a root-domain include have no effect?

The message may use a different, provider-controlled envelope domain for SPF evaluation.

RFC 7208 §2.4 RFC 7208 §4.1

How should I assess cross-tenant restrictions?

Use documentation, approved configuration evidence or an explicitly authorised test. Your own SPF pass does not prove another tenant cannot misuse an identity.

What belongs in the acceptance record?

Record the authorised infrastructure, provider identity controls, accountable owner, evidence gaps and review trigger.

[ Sources ]

Sources

  1. RFC 7208

    Sections §2.4 · §4.1 · §4.6.4 · §5.2 · §5.6 · §11.4

[ Glossary ]

Glossary

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

RFC 7208 §2.4

Cross-user forgery
Misuse of another user’s identity through a shared authorized system whose controls allow it.

RFC 7208 §11.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