Email Notifications
Available since v1.17.0 · Configured under Settings → Email server (admin) and Settings → Email notifications (user).
torq can send maintenance reminders, summaries, and password reset links through your existing SMTP mail server. torq never runs its own mail server and never receives mail. Email and webhooks work independently — use either, both, or neither.
Configuring the SMTP server
- In the UI (Settings → Email server)
- Environment variables
| Field | What to enter |
|---|---|
| SMTP server | Mail server hostname, e.g. smtp.example.com |
| Encryption | STARTTLS (usually port 587), SSL/TLS (usually port 465), or None (for an internal LAN relay) |
| Port | Auto-filled from encryption; adjust if your provider specifies another port |
| Username, Password | Leave blank for unauthenticated LAN relays. Authentication requires STARTTLS or SSL/TLS. |
| Sender address | From address (many providers require an address owned by the account) |
| Sender name | Display name; defaults to your shop name or torq |
Enable Send email, save, and click Send test email to verify delivery. If delivery fails, the page shows the exact SMTP error.
- SMTP passwords are encrypted at rest with
secret.keyin/dataand are never shown again. - TLS certificates are always verified; torq never falls back to unencrypted delivery if TLS fails.
Setting TORQ_SMTP_HOST switches Settings → Email server to read-only mode (toggling email on/off and sending test emails still work in the UI).
| Variable | Default | Purpose |
|---|---|---|
TORQ_SMTP_HOST | (empty) | SMTP server hostname (enables env-var mode) |
TORQ_SMTP_PORT | 587 / 465 / 25 | Port (defaults by encryption mode) |
TORQ_SMTP_SECURITY | starttls | starttls, tls, or none |
TORQ_SMTP_USERNAME | (empty) | SMTP username |
TORQ_SMTP_PASSWORD | (empty) | SMTP password |
TORQ_SMTP_PASSWORD_FILE | (empty) | Path to a file containing the SMTP password (e.g. Docker secret) |
TORQ_SMTP_FROM | (empty) | Sender email address (required when TORQ_SMTP_HOST is set) |
TORQ_SMTP_FROM_NAME | (empty) | Sender display name (defaults to shop name) |
Invalid values prevent torq from starting and log the offending variable name.
Common provider examples
| Provider | Server | Encryption / Port | Notes |
|---|---|---|---|
| Standard mail account | Your provider's outgoing SMTP host | STARTTLS / 587 | Username is usually your full email address |
| Gmail | smtp.gmail.com | STARTTLS / 587 | Requires a Google App Password |
| Microsoft 365 | smtp.office365.com | STARTTLS / 587 | Authenticated SMTP must be enabled for the mailbox |
| Local mail relay (Postfix, NAS) | Hostname or LAN IP | None / 25 | No username or password |
| Local testing (Mailpit) | localhost | None / 1025 | Captures all outgoing mail in a web UI |
Per-user notification preferences
Under Settings → Email notifications, each user enters their email address and selects what they want to receive (all off by default):
- A reminder becomes due soon
- A reminder becomes overdue
- Weekly summary of due reminders
- Monthly summary of due reminders
Use Send me a test email to verify delivery. Every email explains which setting triggered it and links back to this page. Administrators can also set a user's email address under Settings → Users (each address may belong to one account only).
Since v1.18.0, confirming your email address also enables self-service password reset. Reminder emails work whether or not the address is confirmed.
Access scoping & privacy
Emails respect roles and permissions:
- Only vehicles the user can access are included.
- Only users whose role has See reminders receive reminder emails.
- License plates are included only if the role has See VIN and license plate.
- Disabled accounts never receive emails.
- Deep links in emails require
TORQ_BASE_URLto be set.
Delivery & retries
Temporary SMTP errors (such as greylisting) are retried after 1, 5, and 30 minutes. Permanently rejected addresses are not retried and are logged in Settings → Email server. Switching email off cancels queued deliveries.
In TORQ_DEMO_MODE=true, email settings are locked and no emails are sent.