[ MSP, APIs & integrations ]

Validate domain ownership before granting a customer access

Verify scoped domain authority without confusing a public record, login or DNS challenge with legal ownership.

By the EmailAuth research team · 2 min read

[ Key points ]

  • Verify scoped domain authority without confusing a public record, login or DNS challenge with legal ownership.
  • Treat domain control, customer authority and service permissions as separate checks; a new DNS controller must not inherit old reports.
On this page

Anyone can inspect public authentication records. That ability must not grant access to a customer's reports or administration console. A domain onboarding process needs evidence of authority, a defined scope and a way to withdraw access when the relationship changes.

Define what the claim means

Distinguish legal ownership, control of DNS, authorization to act for a customer and permission to use a service. A DNS challenge can demonstrate control of a record at a point in time. It does not by itself establish legal title, the applicant's employment or authority over every subdomain and associated customer account.

For an MSP, confirm the requesting organization and delegated authority through the customer agreement and designated contacts. Record the exact domain, tenant, purpose and access being requested. Use an independent customer approval path for disputes or transfers. Do not automatically merge tenants merely because they claim the same domain.

Bind and limit a challenge

An illustrative design issues an unpredictable challenge bound to one domain, tenant, claimant and expiry. Check the expected authoritative evidence, preserve the observation time and invalidate the challenge after successful use. Avoid accepting a token from another domain or a previous onboarding attempt. This is a recommended design, not a protocol requirement or claim about EmailAuth implementation.

Require an authenticated identity before starting the claim, then authorize every subsequent access independently. OWASP's authorization guidance calls for default denial and permission checks on every request. Successful domain verification should establish only the permission explicitly approved, not administrative authority over unrelated tenants or historical report archives.

Test rightful claims and adversarial cases

Suppose a new agency can publish the requested DNS challenge but seeks access to reports collected for the previous agency. The DNS observation supports current control of that record; it does not authorize access to the earlier tenant’s archive. Keep archive access on hold until the customer approves the specific data and recipient through a verified independent path.

Separately, test an otherwise valid challenge under the wrong tenant, after expiry and after successful use. In this proposed design those cases should be rejected while a valid scoped claim should proceed to the separately required authority and permission checks. These are hypothetical expected decisions, not supplied tokens, DNS observations or executed tests. Verify real challenge generation, authoritative lookup, caching and service authorization in an approved test environment.

Handle transfer and revocation explicitly

Domain sale, agency changes and employee departure require different actions. Freeze disputed changes while checking authority with verified contacts. Preserve old and new claim evidence without exposing the previous customer's reports to the new claimant. A new controller of DNS should not automatically inherit historical tenant data.

Revoke access at the service layer, including active sessions, background jobs and scoped credentials as applicable. Deleting a DNS challenge is not a substitute for withdrawing permissions. Review any ongoing data collection separately so revoked users cannot continue exporting or receiving reports.

Accept the right evidence

Close onboarding only when the authority check, scope approval, identity provisioning and negative access tests are complete. Record who approved the relationship and which access was granted. Revalidate after material ownership or service changes. A strong verification process produces a bounded authorization decision and recoverable audit history, not a permanent claim that one person owns a domain forever.

[ Takeaway ]

Treat domain control, customer authority and service permissions as separate checks; a new DNS controller must not inherit old reports.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Bind every challenge

A record lookup is only one input to access provisioning.

Next steps

  1. Check tenant, domain and expiry.
  2. Test replay and revocation.
  3. Invalidate used and expired challenges.

CISO / SecOps

Separate proof from privilege

Evidence of DNS control is narrower than a broad authorization grant.

Next steps

  1. Review historical-data access.
  2. Audit revocation beyond the DNS record.
  3. Require a dispute process for transfers.

Founder / Non-technical

Protect the customer relationship

A verification shortcut can expose the wrong organization’s data.

Next steps

  1. Define transfer and dispute handling.
  2. Require delegated authority.
  3. Approve access scope separately from DNS proof.

[ FAQs ]

Frequently asked questions

Does a DNS challenge prove legal ownership?

No. It demonstrates the tested control at the observation time, within the method’s limitations.

Should verification unlock historical reports?

Only when that access is separately authorized; a new DNS controller must not inherit them automatically.

Can a token be reused?

The proposed design rejects replay and expires unused challenges.

Does this guide supply production challenge tokens?

No. It supplies hypothetical expected decisions, not tokens, DNS observations or executed verification results.

What blocks a transfer?

Unresolved authority or missing customer approval should keep the transfer on hold.

Is removing the DNS token enough to revoke access?

No. Revoke service permissions, sessions and ongoing jobs as appropriate.

Can one tenant claim another tenant’s domain token?

The proposed checks reject a tenant mismatch even when the token text matches.

What should an audit record retain?

Scope, claimant, verified authority, observation time, approval and resulting access decision.

[ Sources ]

Sources

  1. OWASP Authorization Cheat Sheet

    Sections Enforce Least Privileges · Deny by Default · Validate the Permissions on Every Request · Create Unit and Integration Test Cases for Authorization Logic

  2. OWASP Multi Tenant Security Cheat Sheet

    Sections §1. Tenant Identification & Context Management · §3. Preventing Cross-Tenant Data Access (IDOR Prevention) · §4. Cache & Session Isolation · §5. API, Asynchronous Work & Resource Controls · §6. File Storage & Blob Isolation · §7. Tenant Onboarding & Offboarding Security

[ Glossary ]

Glossary

Domain control
Ability to modify the tested domain resource at a particular time.
Replay
Reuse of previously accepted evidence to seek another authorization.

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