[ SPF ]

Custom MAIL FROM domains: verify SPF and DMARC alignment together

Validate a custom envelope domain using received messages, not just a successful DNS setup screen.

By the EmailAuth research team · 3 min read

[ Key points ]

  • Use account-specific provider settings for the exact envelope domain.
  • A bounce subdomain does not satisfy strict alignment with its parent.
  • Test sending, fallback and supported bounce processing separately.
On this page

A custom MAIL FROM domain can let a service authenticate an envelope identity related to your visible From domain. The useful result is a working and aligned mail path, not merely a green DNS indicator in the provider's console. Verify the generated DNS settings, actual SMTP identity, SPF result and DMARC alignment as separate steps.

Choose the domain deliberately

Inventory the Author Domains used in visible From addresses and the provider's supported custom-envelope design. A bounce subdomain may be operationally convenient, but strict SPF alignment requires an exact match with the Author Domain. Under relaxed alignment, the organisational-domain relationship determined under RFC 9989 §4.10.2 can allow a subdomain to align. Do not infer alignment from a brand name or the Reply-To field. RFC 9989 §3.2.4, RFC 9989 §4.4.

Use the current account-specific DNS values supplied by your service. A provider may require additional records for bounce processing as well as SPF; those requirements are service-specific. This guide deliberately gives no universal MX hostname, include target or click sequence. Confirm the domain is dedicated or that the change will not conflict with an existing mail flow.

Publish without losing policy integrity

At the exact SPF identity domain, maintain one SPF record rather than adding a second v=spf1 record beside an existing policy. Validate the complete combined requirements when a domain has multiple legitimate senders. A parent policy does not automatically cover the child. Inspect nested dependencies and representative evaluated paths for the DNS-query-causing term limit. RFC 7208 §4.5, RFC 7208 §4.6.4.

Record old DNS values and a safe rollback plan before cutover. Verify authoritative publication and relevant recursive answers, then enable or confirm the custom envelope in the service. A verified DNS record alone does not demonstrate that messages have started using it.

Prove the relationship on received mail

Illustrative example, assuming an applicable DMARC policy: a message uses From receipts@example.com and MAIL FROM return.bounce.example.com. If that envelope domain is SPF-authorised and shares the applicable organisational domain example.com, it can align in relaxed mode. It does not align in strict mode because the full domain names differ. If the provider instead silently falls back to bounce.provider.example.net, raw SPF may pass while SPF alignment is lost.

Send test messages through every materially distinct route, including failover where supported. Record actual MAIL FROM, connecting IP, trusted receiver SPF result, aligned SPF outcome and DKIM signing domain. DMARC can pass with aligned DKIM even when the envelope is unaligned; report that honestly rather than claiming the custom MAIL FROM worked. RFC 9989 §4.4.

Validate the operational side

Test the provider-supported bounce handling and check that the expected application receives delivery-status information. Where your system originates messages with a null reverse path, SPF uses its defined postmaster-plus-HELO identity construction, so test that as a separate case. Do not send a loop-generating bounce test into production. RFC 7208 §2.4, RFC 7208 §10.1.3.

Complete the change only when sending, authentication, alignment and bounce processing have evidence. Retain the provider fallback behaviour and ownership in the runbook, and repeat tests after routing or account changes.

Use a concrete decision record

Use two hypothetical acceptance rows: normal route emits return.bounce.example.com and SPF passes; fallback emits an unrelated provider domain and SPF passes. With From=example.com, the first can align only under the qualifying relaxed relationship, while the second does not. If DKIM supplies overall DMARC pass, still mark custom MAIL FROM fallback as not meeting the requested identity. Retain bounce-processing evidence independently. No provider configuration or test mail was executed.

[ Takeaway ]

Use account-specific provider settings for the exact envelope domain. A bounce subdomain does not satisfy strict alignment with its parent. Test sending, fallback and supported bounce processing separately.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Use account-generated DNS values.

Keep the provider-generated values, actual SMTP identity and receiver result in the change record. Test fallback behaviour so an outage does not silently change alignment.

Next steps

  1. Use account-generated DNS values.
  2. Test normal and fallback envelope identities.
  3. Verify bounce processing and alignment separately.

CISO / SecOps

Review the service account controlling the identity.

Review which service may use the envelope domain and whether its account controls are adequate. Treat relaxed or strict alignment as an intentional design choice, not an incidental DNS outcome.

Next steps

  1. Review the service account controlling the identity.
  2. Document strict or relaxed alignment choice.
  3. Retain ownership and recovery conditions.

Founder / Non-technical

Identify the message streams using the custom domain.

Ask for proof that real messages use the new domain and that delivery errors still reach the right team. A completed setup wizard is only one milestone.

Next steps

  1. Identify the message streams using the custom domain.
  2. Ask for received-message proof.
  3. Confirm delivery errors still reach the business owner.

[ FAQs ]

Frequently asked questions

Is MAIL FROM the address customers see?

Usually not. Customers normally see the RFC5322.From header; MAIL FROM is the SMTP envelope identity used for delivery-error handling and SPF.

RFC 7208 §2.4 RFC 9989 §3.2.2

Does a custom domain guarantee SPF alignment?

No. It must actually be used, pass SPF and meet the applicable alignment relationship.

RFC 9989 §4.4.2

Will a bounce subdomain align in strict mode?

Only if it exactly matches the Author Domain. Merely sharing the same organisational domain is insufficient for strict alignment.

RFC 9989 §3.2.10.2

Should I copy another customer’s DNS values?

No. Use the current values generated for your own provider account and domain.

Can I add a second SPF TXT record?

Do not publish multiple SPF records at the same owner name. Reconcile legitimate sender requirements into one valid policy.

RFC 7208 §4.5

Why does DMARC pass while custom MAIL FROM is broken?

A passing aligned DKIM signature can satisfy DMARC independently. Inspect the SPF identity and result directly.

RFC 9989 §5.3.5

Do all providers require the same bounce records?

No. Bounce routing and verification requirements are provider-specific; follow current first-party account instructions.

What belongs in the acceptance test?

Normal and fallback sending identities, SPF, alignment, DKIM, overall DMARC, observed delivery and supported bounce processing.

[ Sources ]

Sources

  1. RFC 7208

    Sections §2.4 · §4.1 · §4.5 · §4.6.4 · §10.1.3

  2. RFC 9989

    Sections §3.2.2 · §3.2.4 · §3.2.10.2 · §4.4 · §4.4.2 · §4.10.2 · §5.3.5

[ Glossary ]

Glossary

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

RFC 7208 §2.4

MAIL FROM identity
The SMTP envelope identity used by SPF, with the defined postmaster/HELO construction when the reverse path is null.

RFC 7208 §2.4

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

RFC 9989 §4.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