System operational. Cryptographic perimeter active.
Enterprise Email & DNS

Custom Domains & Business Organization Setup

Connect your business domain, verify DNS ownership and mail authentication records, enable role trigger addresses such as abuse@ or noreply@, and provision or invite team members under your Enterprise plan.

1. Locating Custom Domains & Team in Settings#

Sign into your Enterprise or Staff Natrium account and open Settings from the top navigation bar. In the left sidebar under Account, open Custom Domains & Team. Direct shortcut buttons are also available inside Plan & Storage and Accounts & Aliases.

  1. Link your business domain
    Enter your domain (for example company.com) and optionally toggle initial trigger keywords such as admin, abuse, or noreply.
  2. Publish DNS records or run Cloudflare automation
    Add the 5 generated DNS entries at your registrar, or paste a scoped Zone:Read and DNS:Edit Cloudflare token to configure all records automatically in memory.
  3. Verify live DNS and onboard seats
    Click Check DNS to verify ownership, MX, SPF, and DKIM records permanently in SQLite, then provision dedicated mailboxes or invite existing users.
  • Domain Slots: Paid Enterprise accounts can connect up to 3 custom domains; Staff accounts carry unrestricted custom domain slots.
  • Seat Quota: Your organization seat allowance matches the paid seat count selected during Enterprise checkout (minimum 1 seat occupied by the organization owner).
  • Persistent Verification: Passing live DNS checks stores per record verification timestamps in SQLite so verified domains stay active across refreshes and server restarts.

2. Required DNS Records (Ownership, MX, SPF, DKIM, DMARC)#

When registering company.com, Natrium generates a domain specific HMAC ownership token and a 2048 bit RSA DKIM keypair. Publish every record below at your DNS provider, or run Auto Configure Cloudflare in Settings.

TypeHost / NamePriorityValue / TargetPurpose
TXT_natrium-challengeNonenatrium-domain-verification=<token>Cryptographic proof of domain ownership
MX@10mail.natrium.shInbound mail routing to Natrium MX gateway
TXT@Nonev=spf1 include:natrium.sh ~allAuthorizes Natrium outbound relays in SPF
TXTnatrium2026._domainkeyNonev=DKIM1; k=rsa; p=<public_key>2048 bit RSA DKIM signature verification
TXT_dmarcNonev=DMARC1; p=reject; rua=mailto:dmarc@company.comStrict alignment policy and aggregate reports

3. Trigger Keywords & Role Addresses#

While system keywords remain strictly reserved on the primary @natrium.sh domain, verified owners of custom domains are allowed full control over their own domain prefixes. You can enable role or trigger addresses immediately while linking a domain or anytime afterwards inside the domain card or in Accounts & Aliases.

  • Supported Role Prefixes: Enable admin, abuse, noreply, no-reply, postmaster, hostmaster, dmarc, support, security, billing, contact, info, legal, sales, or any custom organizational keyword.
  • Instant Selection on Link: Select preset chips or enter comma separated prefixes in the Trigger Keywords panel when adding a domain so those addresses are immediately routable once DNS verifies.
  • Collision Protection: Each custom domain address can belong to at most one mailbox or teammate in the organization so routing remains unambiguous.

4. Enterprise Domain Authentication Model#

Large mail platforms separate DNS domain ownership, seat governance, and personal inbox credentials so administrators can onboard staff without silently accessing unrelated personal accounts.

  • Verified Domain Gate: Natrium refuses creating or assigning @company.com team mailboxes (403 DOMAIN_NOT_VERIFIED) until ownership TXT, MX, SPF, and DKIM checks pass live DNS lookup.
  • Account Password Step Up Confirmation: Every team mutation (provisioning a mailbox, sending a seat invitation, assigning an address, changing roles, or removing a seat) prompts the authenticated owner or admin to confirm their current account password (optional only while holding an active elevated admin session cookie).
  • Provision New Domain Account: Creates a dedicated employee mailbox such as alice@company.com, consumes 1 seat, assigns a temporary passphrase (minimum 10 characters if custom, or random 24 characters), forces password rotation on first login, and never collides with unrelated @natrium.sh users.
  • Two Way Authenticated Invitation: When adding an existing @natrium.sh user, the admin sends an expiring 7 day invitation optionally preassigning bob@company.com. The invited user must explicitly accept in Settings using their own password before joining.

5. Tenant Isolation & IMAP / POP3 Setup#

Every member added to a custom domain is strictly isolated to their own explicitly assigned addresses. Teammates cannot read another seat mailbox or spoof unowned prefixes.

ProtocolHostnamePortSecurityUsername
IMAPS (Recommended)mail.natrium.sh993Implicit TLSname@company.com
IMAP + STARTTLSmail.natrium.sh143STARTTLSname@company.com
POP3Smail.natrium.sh995Implicit TLSname@company.com

Outbound emails composed from any assigned @company.com address or trigger keyword automatically select the domain's natrium2026._domainkey 2048 bit RSA private key for DKIM signing.

6. Automation REST API#

Automate domain linking, trigger keywords, live DNS verification, and Enterprise seat provisioning using authenticated REST requests.

Custom domain and trigger keyword automation examples
# 1. Link domain and register initial trigger keywords
curl -sS -X POST https://natrium.sh/api/user/custom-domains \
  -H "Authorization: Bearer $NATRIUM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domain":"company.com","triggerKeywords":["admin","abuse","noreply","postmaster"]}'

# 2. Verify DNS records live for company.com
curl -sS -X PUT https://natrium.sh/api/user/custom-domains \
  -H "Authorization: Bearer $NATRIUM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domain":"company.com"}'

# 3. Provision a new @company.com employee seat (owner password confirmed)
curl -sS -X POST https://natrium.sh/api/user/organization \
  -H "Authorization: Bearer $NATRIUM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "action":"provision_member",
    "orgName":"Acme Security",
    "localPart":"alice",
    "domain":"company.com",
    "name":"Alice Carter",
    "role":"member",
    "confirmPassword":"<owner_account_password>"
  }'

7. Common Error Codes#

HTTP StatusError CodeMeaning & Resolution
401PASSWORD_CONFIRMATION_REQUIREDInclude confirmPassword matching the authenticated owner or admin account.
403DOMAIN_NOT_VERIFIEDRun DNS verification first so ownership TXT, MX, SPF, and DKIM resolve publicly.
403SEAT_LIMIT_REACHEDAll paid Enterprise seats are active or reserved. Add seats or revoke pending invitations.
409ADDRESS_TAKENThe prefix on that custom domain is already claimed by another member or pending invite.
409DOMAIN_IN_USE_BY_MEMBERSOffboard or remove active member seats whose primary mailbox uses that custom domain before unlinking.