Tenant Email Transport
Configure per-tenant SMTP delivery — use platform mail or bring your own SMTP server with encrypted credentials.
What is tenant email transport?
Email transport controls how outbound email is delivered for a tenant. This is separate from email branding (from name, logo, notification toggles).
In v1, tenants can choose:
- platform — shared platform SMTP (default)
- smtp — tenant-provided SMTP server with encrypted password storage
Provider modes (SendGrid, SES, Mailgun) are reserved for a future release.
Settings are org-wide (per-tenant), not per-environment.
Transport fields
| Field | Description |
|---|---|
| mode | platform or smtp |
| fromEmail | Sender address when using custom SMTP (required for smtp mode) |
| smtp.host | SMTP hostname |
| smtp.port | SMTP port (587 for STARTTLS, 465 for implicit TLS) |
| smtp.secure | Implicit TLS (usually true for port 465) |
| smtp.requireTls | Require STARTTLS (usually true for port 587) |
| smtp.username | SMTP username |
| password | Write-only; never returned in API responses |
| verification | Connection test status: unverified, verified, or failed |
Operations
| Operation | Method | Endpoint |
|---|---|---|
| Get transport | GET | /tenants/:id/email-settings/transport |
| Update transport | PATCH | /tenants/:id/email-settings/transport |
| Test SMTP connection | POST | /tenants/:id/email-settings/transport/test |
Workflow
PATCHtransport withmode: smtpand SMTP credentials.POST .../transport/testto verify the connection (required before delivery).- Outbound email for the tenant uses the verified tenant SMTP transporter.
- If SMTP is configured but not verified, delivery is blocked (no silent fallback to platform SMTP).
Environment variables (platform)
| Variable | Purpose |
|---|---|
TENANT_SMTP_ENCRYPTION_KEY | Min 32 chars; encrypts tenant SMTP passwords at rest (fail-closed if missing) |
SMTP_HOST, SMTP_PORT, etc. | Platform default SMTP (see Email Settings) |
Related
- Email Settings — Branding and notification toggles
- Users — Invite flow that sends email