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.
- Link your business domainEnter your domain (for example company.com) and optionally toggle initial trigger keywords such as admin, abuse, or noreply.
- Publish DNS records or run Cloudflare automationAdd 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.
- Verify live DNS and onboard seatsClick 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.
| Type | Host / Name | Priority | Value / Target | Purpose |
|---|---|---|---|---|
TXT | _natrium-challenge | None | natrium-domain-verification=<token> | Cryptographic proof of domain ownership |
MX | @ | 10 | mail.natrium.sh | Inbound mail routing to Natrium MX gateway |
TXT | @ | None | v=spf1 include:natrium.sh ~all | Authorizes Natrium outbound relays in SPF |
TXT | natrium2026._domainkey | None | v=DKIM1; k=rsa; p=<public_key> | 2048 bit RSA DKIM signature verification |
TXT | _dmarc | None | v=DMARC1; p=reject; rua=mailto:dmarc@company.com | Strict 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.comteam 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.shusers. - Two Way Authenticated Invitation: When adding an existing
@natrium.shuser, the admin sends an expiring 7 day invitation optionally preassigningbob@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.
| Protocol | Hostname | Port | Security | Username |
|---|---|---|---|---|
| IMAPS (Recommended) | mail.natrium.sh | 993 | Implicit TLS | name@company.com |
| IMAP + STARTTLS | mail.natrium.sh | 143 | STARTTLS | name@company.com |
| POP3S | mail.natrium.sh | 995 | Implicit TLS | name@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.
# 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 Status | Error Code | Meaning & Resolution |
|---|---|---|
401 | PASSWORD_CONFIRMATION_REQUIRED | Include confirmPassword matching the authenticated owner or admin account. |
403 | DOMAIN_NOT_VERIFIED | Run DNS verification first so ownership TXT, MX, SPF, and DKIM resolve publicly. |
403 | SEAT_LIMIT_REACHED | All paid Enterprise seats are active or reserved. Add seats or revoke pending invitations. |
409 | ADDRESS_TAKEN | The prefix on that custom domain is already claimed by another member or pending invite. |
409 | DOMAIN_IN_USE_BY_MEMBERS | Offboard or remove active member seats whose primary mailbox uses that custom domain before unlinking. |