Mailbox checkbox reads org_domains, not provider domains

Fixkamo-internal
Shipped
April 24, 2026 at 1:45 AM UTC
Author
kamo
Commit
def23b5

The previous wiring read /api/email/domains (email_provider_domains table). That table is only populated when a third-party email provider integration is set up — empty for Kamo Mail orgs — so the form said "No verified mailbox domains are set up" even when the org had a fully verified domain (e.g. kamocrm.com). Switch to /api/security/domains, the same source of truth the mailboxes settings page already reads. Filter to top-level (parentId == null) domains that are active and DNS-verified, then accept an org email if its domain matches any of those or is a subdomain of one.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing