Mail Server Presets
OIDC Single Sign-On, App Passwords & Webmail Integration
Connect Stalwart authentication to Authentik, Keycloak, or PocketID via OpenID Connect while issuing scoped app passwords for legacy IMAP clients.
OIDC PKCE + App Passwords · Zero Cleartext Passwords · JMAP Ready
Bridging Modern OIDC MFA With Legacy IMAP Clients
Standard Thunderbird and Apple Mail IMAP setups struggle with interactive OIDC MFA prompts unless configured for OAuth2. Issuing per-device app passwords inside Stalwart while enforcing OIDC on webmail and JMAP preserves strict MFA without breaking desktop sync.
Locking Down the Management API
Never expose the Stalwart WebAdmin management port directly on 0.0.0.0 without IP allowlists or an authenticated reverse proxy.
Measured Thresholds & Stalwart Configuration Parameters
| Auth Component | Recommended Configuration | Security Benefit |
|---|---|---|
| Directory Backend | Internal + OIDC / LDAP bridge | Centralizes MFA and employee offboarding |
| JMAP / Webmail Auth | OAuth 2.0 / OIDC Bearer tokens | Eliminates static passwords on browser webmail clients |
| Legacy IMAP / SMTP | Per-device scoped App Passwords | Allows instant single-device revocation without reset |
| Admin Console | Bind WebAdmin to 127.0.0.1 + SSH/VPN | Keeps port 8080 admin interface off public internet |