Skip to content

Mail server

A mail server is optional, and logging never depends on it. Only built-in sign-in uses it, for email verification, member password reset and two-factor recovery. Clerk instances send their own mail.

Setting Variable Notes
Mail server SMTP_HOST
Port SMTP_PORT 587 with STARTTLS (the default) or 465 with TLS.
User name and password SMTP_USER, SMTP_PASSWORD The user name can be empty.
Send mail from SMTP_FROM The address must be one your mail server permits.

The wizard has a Send test message button. The instance sends mail in its own name, with a Shackworks footer.

Configuring mail does not turn on any feature. These settings do, and each needs a restart:

Setting Variable
Email verification and password reset AUTH_EMAIL_FLOWS
Require two-factor for administrators AUTH_ADMIN_TWO_FACTOR

Reset links work once and expire after one hour. If mail does not arrive, check your spam folder, the server log for the SMTP error, the From address, and whether the port matches the TLS mode.