Set up email for a self-hosted Requestarium

A fresh self-hosted Requestarium writes every email to the backend log instead of sending it. That's a safe default for a first install and an air-gapped one, and it's also why the first person you invite never gets their invitation. Email is one of the first things to set up.

The settings

FieldVariableNotes
DeliveryTAIRI_MAIL_PROVIDERsmtp sends; log (default) only writes to the backend log
From address, From nameTAIRI_MAIL_FROM, TAIRI_MAIL_FROM_NAMEuse an address your server may send from
Reply-toTAIRI_MAIL_REPLY_TOoptional, for example your help desk
SMTP host, portTAIRI_MAIL_SMTP_HOST, TAIRI_MAIL_SMTP_PORTport 587 by default
EncryptionTAIRI_MAIL_SMTP_TLSstarttls (default), tls (port 465) or none
Username, passwordTAIRI_MAIL_SMTP_USERNAME, TAIRI_MAIL_SMTP_PASSWORDoptional

You can set them in the app or as environment variables. Each field says where its value comes from:

  • Environment wins, and the field is read-only. That keeps installations configured in Git, Helm values or a Kubernetes Secret in control.
  • Saved here is stored encrypted with TAIRI_DATA_ENCRYPTION_KEY. The password is never sent back to the browser.
  • Default is the built-in value.

Mail settings apply at once, on every replica, without a restart.

Security rules

  • With starttls, the server must offer STARTTLS, or every email fails. That's on purpose: it never falls back to plain text silently.
  • A password is only sent over TLS. With encryption none, a password is refused, except for a relay on the same host (localhost).
  • If saved settings can't be used, the previous settings stay in use and the tab says why.

Test it

Send test email sends one message to you, or to an address you type, with the values currently on the form. The server's answer is shown inline: "Sent via smtp", or the error, such as smtp auth: 535 authentication failed. Try it before saving.

The delivery log

Every email the backend sends or tries to send: time, template, recipient, status, error and attempts.

StatusMeaning
Sentthe SMTP server accepted it (not a guarantee of the inbox)
Failedevery attempt failed; the server's answer is shown
Log onlydelivery is log: nobody received it
  • A temporary failure (server unreachable, a 4xx "try later") is retried once after 2 seconds. A permanent refusal isn't.
  • A failed email can be sent again for 3 days with the settings in use now. Verification codes and reset links may have expired by then, so for those, ask the person to request a new one.
  • Delivered emails keep no content, only the row. Failed ones keep their content, encrypted, until they're sent again or 3 days pass.

Templates

The tab lists every email the installation sends (accounts, installation, licence, organizations, collection sync) with a preview of the formatted and plain-text versions, using made-up names and the From address in use. Nothing is sent. The texts can't be edited yet.

Doctor and support bundle

requestarium-api doctor (or Run checks in the app) connects to the SMTP server, starts TLS as configured and signs in, without sending anything. It warns when emails failed in the last 24 hours and weren't sent again. The support bundle includes the mail settings without secrets and the latest failures with only the recipient's domain. See support bundles and doctor checks.

Deliverability

SMTP accepting a message is not the same as it arriving. Set up SPF and DKIM for the From domain with your mail provider, and use a From address on a domain you control. Requestarium doesn't check DKIM or SPF for you and doesn't process bounces.

Air-gapped

With the default log delivery, nothing connects anywhere. An internal SMTP relay is all email needs; no internet. See running on servers with no internet access.