Skip to content

Open standards & developer reference

No proprietary anything.

Compact speaks the published IETF protocols mail and identity already run on—so any standard client can read it and any provider can import it. Every port, DNS record and endpoint is documented below, alongside what isn’t exposed yet.

  • IMAP4rev1 RFC 3501
  • SMTP RFC 5321
  • JMAP RFC 8620
  • Sieve RFC 5228
  • JMAP Sieve RFC 9661
  • iCalendar RFC 5545
  • vCard RFC 6350
  • DKIM RFC 6376
  • SPF RFC 7208
  • DMARC RFC 7489
  • MTA-STS RFC 8461
  • TLS-RPT RFC 8460
  • OIDC PKCE S256
  • SCIM 2.0 RFC 7644
01 · TRANSPORT & PORTS

Protocols and ports

Server hostnames are published in your domain’s autoconfig and SRV records and shown in Settings. Every listener requires TLS; plain-text authentication does not exist.

[ fig. 01 · encrypted listener matrix ]tls required
ProtocolSpecPortSecurityUsed for
IMAPRFC 3501993Implicit TLSRead mail in any mail app. Folders, flags and dates match the web app.
SMTP submissionRFC 6409465Implicit TLSSend from mail apps. Outbound mail is DKIM-signed (Ed25519 + RSA).
SMTP (inbound)RFC 532125STARTTLSWhere external servers deliver mail via your domain’s MX record.
HTTPSTLS 1.3 + HSTS443TLS + HSTSThe web app, workspace admin console, OIDC callbacks and SCIM 2.0.
02 · CLIENT CREDENTIALS

Mail app sign-in

Username
The full email address on your verified workspace domain.
Password
The account password, or a dedicated app password. With two-step sign-in enabled, only app passwords work in external mail apps.
SSO-only workspaces
Mail apps authenticate with app passwords; minting one requires a fresh confirmation with your identity provider (within 10 minutes).
Revocation
Every app password is revoked independently in Settings › App passwords. Suspending an account cuts sessions and all app passwords at once.

Client guides: Apple Mail, Outlook, Thunderbird, iPhone and iPad and Android.

03 · AUTHORITATIVE DNS

The DNS records we publish

The admin console generates exact values for your domain and queries your authoritative nameservers directly—reporting found, missing or conflicting records without waiting on stale caches.

[ fig. 02 · domain record specification ]checked at source
TypeNamePurposeRequirement
TXT_fllare-verifyOwnership proof (fllare-verification=<token>)Required
MX@Delivers inbound mail to the workspaceRequired
TXT@SPF policy, merged cleanly into any existing recordRequired
TXT<selector>._domainkeyDual DKIM keys (Ed25519 + 2048-bit RSA)Required
TXT_dmarcDMARC p=none, aggregate reports routed to dmarc@yourdomainRequired
CNAME + TXTmta-sts, _mta-stsMTA-STS policy (published in testing mode)Recommended
TXT_smtp._tlsSMTP TLS reporting (RFC 8460)Recommended
CNAME / SRVautoconfig, autodiscover, _imaps._tcp, _submissions._tcpZero-guess client server discoveryRecommended
Every DNS record, explained
04 · FEDERATED IDENTITY

Single sign-on (OpenID Connect)

Redirect URI
https://mail.runcompact.com/app/api/v1/auth/sso/callback
Grant & PKCE
Authorization Code with PKCE (S256), single-use browser-bound state, cryptographic nonce
Token checks
JWKS signature verification, issuer, audience, authorized party (azp), expiry and nonce
Microsoft Entra ID
Multi-tenant app support; workspace pins its exact tenant ID; personal Microsoft accounts refused
Google Workspace
email_verified must be true and hd claim must match your verified Workspace domain
Custom OIDC
Issuer discovery URL, client ID and ChaCha20-Poly1305 sealed secret; email and name claims configurable

Setup guides: Microsoft Entra ID, Google Workspace, any OpenID Connect provider.

05 · DIRECTORY PROVISIONING

SCIM 2.0

Provision and suspend accounts straight from your identity provider. Bearer tokens are minted in Admin › Security, shown once, and stored only as hashes. Microsoft Entra ID and Okta payload quirks are handled natively.

[ fig. 03 · scim 2.0 endpoint contract ]https://mail.runcompact.com/app/scim/v2
MethodPathBehaviour
GET/scim/v2/ServiceProviderConfigAdvertised SCIM 2.0 capabilities & auth schemes
GET/scim/v2/ResourceTypes · /SchemasResource & schema discovery
POST/scim/v2/UsersProvision a mailbox (userName = address on a verified domain)
GET/scim/v2/Users?filter=userName eq "…"Query users; also supports externalId eq and paging up to 200
PUT · PATCH/scim/v2/Users/{id}Update profile or active state (active:false suspends immediately)
DELETE/scim/v2/Users/{id}Suspend and hide account; existing mail archive is preserved
POST · PATCH · DELETE/scim/v2/GroupsProvisioned SCIM groups map directly to shared mailboxes
06 · SERVER-SIDE FILTERING

Rules and Sieve

Inbox rules authored in the web app compile into a standard Sieve script (RFC 5228) and deploy via JMAP for Sieve (RFC 9661). Because filtering executes at delivery time on the mail server, every IMAP and mobile app sees the sorted result immediately, and vacation replies run alongside rules without conflict.

[ fig. 04 · compiled rfc 5228 sieve script ]runs on arrival
require ["fileinto", "imap4flags"];

# Compiled by Compact Mail — runs before any client connects
if address :domain :is "from" "billing-partner.example" {
  fileinto "Finance";
  addflag "$Important";
}

07Not exposed yet

explicit boundaries
  • CalDAV and CardDAV. Calendars and contacts live in the web app today. Move them in and out with standard .ics and .vcf files.
  • A public third-party JMAP endpoint. JMAP powers the web app over the gateway’s authenticated session, rather than an external bearer-token endpoint.
  • A general admin REST API and webhooks. Workspace automation runs through the admin console and SCIM 2.0 provisioning.
  • SAML 2.0. Single sign-on speaks OpenID Connect (supported natively by Microsoft Entra ID, Google Workspace, Okta, JumpCloud and Ping).
08 · ARCHITECTURE

The stack

[ fig. 03 · compact architecture stack ]
01Where people work
  • Web app Desktop and dedicated phone layouts
  • Mail apps Apple Mail, Outlook, Thunderbird over IMAPS & SMTPS
  • Every other calendar Invitations as standard iCalendar email
02Apps
  • Mail Split inbox · Sieve
  • Calendar Week · Month · iMIP
  • Contacts Company directory
  • Files 15 GB · Previews
  • Admin console Domains · People
  • Assistant Cited docs · Live DNS
03Identity and policy
  • Sessions HttpOnly · No browser password
  • Two-step sign-in TOTP · Recovery codes
  • SSO Entra ID · Google · OIDC
  • SCIM 2.0 RFC 7644 provisioning
  • App passwords Per-device revocable
  • Audit log Append-only SQL
04Gateway Written in Rust
  • One front door for every request Workspace isolation, CSRF, ChaCha20-Poly1305 secret sealing, rate limits, IMAP import and authoritative DNS workers
05Mail engine Open source
  • Pinned to an exact digest Upgrades pass a 13-group contract test suite first
  • Spoken to over standard protocols only Swappable engine adapter: coming
06Open standards
  • JMAP · RFC 8620
  • IMAP · 993
  • SMTP · 465
  • iCalendar · RFC 5545
  • vCard · RFC 6350
  • Sieve · RFC 5228
  • DKIM · Ed25519
  • SPF · RFC 7208
  • DMARC · RFC 7489
  • MTA-STS · RFC 8461
Your domain
How Compact is built, from the browser to your domain. Everything here runs today unless labelled “Coming”.

Built so you could leave tomorrow.

Standard IMAP, SMTP, vCard and iCalendar mean your company’s archive is never trapped behind a proprietary API.