GreatPearl Auth & Corporate Mail Platform
Unified application authentication, tenant-isolated access control and a corporate webmail gateway engineered and operated in Botswana.
Objective: Deliver a stateful corporate authentication foundation and browser-based mail client connected to a self-hosted IMAP/SMTP infrastructure, while preventing any unauthenticated dashboard exposure or cross-tenant mailbox access.
Great Pearl responsibility: End-to-end architecture and implementation by Great Pearl: TypeScript/Express 5 API gateway, PostgreSQL 18 identity and mail-state schemas, Argon2id password hashing, 256-bit CSPRNG opaque session tokens, IMAP SPECIAL-USE folder discovery, HTML allowlist sanitization and a default-deny browser session gate.
Substantiated outcomes & verification
- Default-deny session gate prevents protected workspace rendering or focus prior to live session verification (17/17 session-security regressions and 22/22 mail UI automated checks passing).
- Composite PostgreSQL foreign keys and serialized IMAP connection pooling bind folders, labels, drafts, snooze state and scheduled jobs strictly to tenant, owner and mailbox.
- Verified across 5 responsive viewports (320×568 to 1440×900) and end-to-end SMTP/IMAP transport tests with 250 OK DSN delivery and two-minute collector synchronization.
Ongoing lifecycle support: Supported in production with a 15-second background job worker (FOR UPDATE SKIP LOCKED), durable Sent-folder retry queues, checksummed schema migrations and private PostgreSQL/asset rollback snapshots.
















