Skip to content

Email and push

Both are optional. Without them, Loomkeep works, but can’t reach people outside the app.

Email carries password resets, email address confirmations, security alerts (a sign-in from a new device, two-factor authentication turned off, an API key created), new-episode digests and the administrators’ alerts. The full list is in Notifications. Fill in the SMTP_* variables:

Variable Value
SMTP_HOST Your provider’s SMTP server.
SMTP_PORT Usually 587.
SMTP_REQUIRE_TLS On any port but 465, the connection must switch to TLS (STARTTLS) or no email leaves. false only for a relay on the same host or private network.
SMTP_USER The SMTP login.
SMTP_PASS The SMTP password.
SMTP_FROM The sender, e.g. Loomkeep <noreply@example.com>. Defaults to noreply@ followed by your WEB_ORIGIN host.
MAIL_SUPPORT_ADDRESS Support mailbox used by contact links and Reply-To. Unset, contact links use the sender’s address and emails carry no Reply-To.

Any SMTP provider works. Brevo has a free relay (300 emails a day), open to personal accounts: its SMTP & API page gives the host, login and password.

Without SMTP, emails are silently skipped, and a forgotten password can’t be reset: the reset link, even one an administrator sends, goes by email.

Admin › Communications previews every email and sends you a test one.

Replies to emails go to MAIL_SUPPORT_ADDRESS, which must be a bare email address (for example support@example.com). Without it, they go to the sender, so set it as soon as someone reads that mailbox. Moderation notices include the decision reference in their contact link’s subject.

It also receives the accessibility statement’s form (/legal/accessibility): without it, or without SMTP, the page only offers a ticket on feedback.loomkeep.app. Each address can send three reports an hour, and Turnstile guards the form when TURNSTILE_SECRET_KEY is set.

Only newsletters include the RFC 8058 List-Unsubscribe and List-Unsubscribe-Post headers. Set PUBLIC_API_URL to the public HTTPS API address, for example https://loomkeep.example/api. The mail provider posts to /newsletter/unsubscribe/one-click without a login or cookies; it disables only the newsletter subscription. HTTP API addresses omit these headers. The unsubscribe link in the email footer remains available in every case.

Configure your SMTP provider’s DKIM signature to cover both headers, as required by RFC 8058. Mail clients decide whether to display their unsubscribe button; adding headers alone does not guarantee its appearance.

Push alerts people about new episodes, replies and the like even with the app closed. Generate a key pair once:

Terminal window
npx web-push generate-vapid-keys

and set:

Variable Value
VAPID_PUBLIC_KEY The public key.
VAPID_PRIVATE_KEY The private key.
VAPID_SUBJECT Optional: how push services reach you, e.g. mailto:admin@example.com. Defaults to your site’s address when it is HTTPS.

Push needs HTTPS on a real device: see Domain & HTTPS. Admin › Communications sends a test notification.