[ SPF ]

SPF and the visible From address: why passing authentication may not align

Separate an SPF pass from permission to use the visible author domain, then choose the supported repair.

By the EmailAuth research team · 4 min read

[ Key points ]

  • Name the domain that passed rather than relying on a green badge.
  • Strict equality and relaxed organizational discovery are different checks.
  • Use supported custom identities and retest the actual route.
On this page

An SPF pass can be completely correct while doing nothing to authenticate the address your customer sees. The sending server may be authorised for a vendor's envelope domain while the visible From uses your business domain. DMARC asks whether a passing authentication identity aligns with that author domain.

This is an identity problem, not necessarily a missing-IP problem. Start with the domains in the actual received message before extending SPF permissions.

Compare three separate observations

Record the visible From domain, the domain SPF evaluated, and the domain in each passing DKIM signature's d= field. Record the receiver's result for each mechanism separately. Do not infer alignment from a green SPF or DKIM badge that hides the domain it evaluated.

RFC 9989 section 4.4.2 defines SPF alignment. Strict alignment requires the SPF and author domains to match exactly under RFC 9989 §3.2.10.2. Relaxed alignment uses the organisational-domain discovery in RFC 9989 §4.10.2. It does not allow any domain owned by a vendor with which you have a contract.

Worked example: a correct pass with no alignment

The following is a synthetic diagnostic fixture assuming an applicable DMARC policy. A message displays From: accounts@example.com. Its MAIL FROM is delivery@vendor.example.net. The connecting IP is 192.0.2.17. The vendor envelope policy is v=spf1 ip4:192.0.2.17 -all, so SPF passes.

Assume the organisational domains are example.com and example.net. They differ, so the SPF path does not align in relaxed or strict mode. If DKIM also passes only with d=vendor.example.net, neither passing identity aligns. DMARC therefore lacks a passing aligned path under RFC 9989 §5.3.5. Adding that IP to example.com's SPF record does not change the fact that this transaction used vendor.example.net.

Now consider a supported custom envelope of return@bounce.example.com. If SPF passes for bounce.example.com and both it and example.com have the same discovered organisational domain, relaxed SPF alignment can pass. Strict alignment still does not because the names differ. Alternatively, a passing DKIM signature with d=example.com can supply an aligned DKIM path.

Choose a supported correction

Ask the service documentation or administrator whether it supports a custom MAIL FROM domain, aligned DKIM, or both. Obtain the exact generated DNS values from the service. A generic SPF include does not configure a custom envelope by itself, and manually fabricating the provider's return address can disrupt bounce handling.

Choose the correction that fits the workflow and your policy. An aligned DKIM deployment often provides useful resilience through forwarding, although changes to covered content can break signatures under RFC 6376 §3.7. If you use custom MAIL FROM, test the actual envelope after the provider reports setup complete. Product availability and configuration steps must be verified for the product and account in use.

Do not relax alignment just to remove a warning without understanding the boundary it creates. Conversely, do not select strict alignment as a badge of security if legitimate subdomain senders were intentionally designed for relaxed alignment. Document why the chosen identity relationship is acceptable.

Retest the path, not just DNS

Send a representative message to a mailbox where you can inspect trusted receiver results. Test the notification type that failed, since a provider's marketing and transactional products may use different identities. Capture the new envelope, SPF result, DKIM signing domain and DMARC result.

If direct mail works but forwarded mail does not, investigate that route separately. Do not call a DNS correction unsuccessful merely because an unrelated content filter still places the message in spam. Authentication results and mailbox placement are distinct outcomes.

The practical takeaway

A useful diagnosis names the passing domain and shows why it does or does not align. Repair the supported sending identity, then verify a real message. Broader SPF permissions on the wrong domain cannot close an alignment gap.

Keep the decision reproducible

Use one row per passing identity and its alignment mode. With only vendor.example.net passing for From=example.com, mark both raw passes as unaligned rather than joining one result to another domain. If d=example.com also verifies, record that separate aligned DKIM path. Test custom MAIL FROM behavior independently even if overall DMARC already passes.

[ Takeaway ]

Name the domain that passed rather than relying on a green badge. Strict equality and relaxed organizational discovery are different checks. Use supported custom identities and retest the actual route.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Compare domains before editing.

Separate raw authentication from alignment and keep the configured alignment modes with the evidence.

Next steps

  1. Record From, MAIL FROM and DKIM d=.
  2. Verify supported custom-domain settings.
  3. Test direct and indirect delivery.

CISO / SecOps

Review the identity boundary.

Strict and relaxed alignment encode different accepted relationships. Choose them deliberately.

Next steps

  1. Document acceptable subdomain use.
  2. Verify ownership of the sender.
  3. Do not equate pass with safe instructions.

Founder / Non-technical

Approve a repair to your visible identity.

Ask the vendor to demonstrate the authenticated business domain rather than another green check.

Next steps

  1. Name the affected message type.
  2. Request an identity comparison.
  3. Retest before closing the incident.

[ FAQs ]

Frequently asked questions

Can SPF pass while DMARC fails?

Yes. A passing SPF identity may not align with From, and there may be no passing aligned DKIM signature.

RFC 9989 §5.3.5

Does the SPF record at my root fix a vendor envelope?

Not if SPF is evaluating the vendor domain. First establish which domain the service actually uses.

RFC 7208 §2.4 RFC 7208 §4.4

What does strict SPF alignment require?

The SPF domain and author domain must match exactly.

RFC 9989 §3.2.10.2

Does a bounce subdomain always align in relaxed mode?

Only when the applicable DMARC organisational-domain relationship permits it. Verify discovery and the selected policy.

RFC 9989 §4.10.2

Does a vendor DKIM pass solve the problem?

Only if its signing domain aligns with the author domain. A pass under an unrelated vendor domain is insufficient.

RFC 9989 §4.4.1

Must SPF and DKIM both align for a DMARC pass?

One passing aligned path is sufficient for the DMARC pass condition. Provider-specific sending requirements may impose additional conditions.

RFC 9989 §5.3.5

Can I type my own Return-Path header?

That does not configure the SMTP envelope. Use the provider-supported custom MAIL FROM settings and verify received mail.

RFC 5321 §4.4 RFC 7208 §2.4

Does DMARC pass guarantee inbox placement?

No. Receivers use other signals and local handling rules in addition to authentication.

RFC 9989 §5.3.6

[ Sources ]

Sources

  1. RFC 7208

    Sections §2.4 · §4.4 · §5.6 · §10.3

  2. RFC 5321

    Sections §4.4

  3. RFC 6376

    Sections §3.7

  4. RFC 9989

    Sections §3.2.10.2 · §4.4.1 · §4.4.2 · §4.10.2 · §5.3.5 · §5.3.6

[ Glossary ]

Glossary

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

RFC 7208 §2.4

DMARC alignment
The required relationship between an authenticated identifier and the Author Domain.

RFC 9989 §4.4.2

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