Configure an instance relay
Set TERMSHEEP_PUBLIC_URL, TERMSHEEP_SMTP_URL and TERMSHEEP_MAIL_FROM together. For a
remote relay, use smtps://user:[email protected] or
smtp://user:[email protected]:587?tls=required. Protect the URL as a credential.
Recreate the platform container after changes.
The plain SMTP exception accepts loopback or a single-label host such as smtp://mailpit:1025.
The hostname check cannot establish network isolation. Use plaintext only for a relay isolated
on the same host or a private container network, and secure onward delivery.
Configure a tenant relay
Tenant owners can configure their own relay. It uses TLS and must resolve to permitted public addresses. Termsheep seals its saved password. When configured, the tenant relay takes precedence for that tenant's invitations and notifications. The instance relay is the default for tenants without a separate relay.
Verify delivery
Startup validates the SMTP settings without connecting to the relay. Send a test email to check connectivity. Then send an invitation to an address you control and verify delivery and the final HTTPS origin. A link works once, for the invited address, for seven days. Keep its token out of logs and reports.
Without either relay, the inviter gets a link to share privately. Mail settings do not reopen ordinary registration on an initialized server.