> ## Documentation Index
> Fetch the complete documentation index at: https://docs.novacula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Email and alert channels

> Send account email through your own SMTP relay, and choose which alert channel types a Self-hosted Hub offers

A Self-hosted Hub sends no email until you give it an SMTP relay on your network, and it offers only the alert channel types that work without the internet.

## Account email

Account email — registration confirmation, invitations, password resets — is sent by the Hub through your SMTP relay. Set the relay in `/etc/nvcl/hub.env`:

```bash theme={null}
NVCL_EMAIL_SMTP_HOST=mail.example.local
NVCL_EMAIL_SMTP_PORT=587
NVCL_EMAIL_SMTP_USERNAME=novacula
NVCL_EMAIL_SMTP_PASSWORD=<relay password>
NVCL_EMAIL_SMTP_SECURITY=starttls
NVCL_EMAIL_SMTP_SSL_BUNDLE=
NVCL_EMAIL_FROM=novacula@example.local
```

| Key | Meaning |
| - | - |
| `NVCL_EMAIL_SMTP_HOST` | The relay's hostname. **Empty sends no email** (see below). |
| `NVCL_EMAIL_SMTP_PORT` | Default `587`. |
| `NVCL_EMAIL_SMTP_USERNAME`, `NVCL_EMAIL_SMTP_PASSWORD` | Optional, for a relay that requires authentication. Whitespace in the password is significant. |
| `NVCL_EMAIL_SMTP_SECURITY` | `starttls` (default — requires a successful TLS upgrade, never falls back to plain text), `ssl` (implicit TLS), or `none` (plain text). Case doesn't matter. Secure modes verify the certificate chain and the server name. |
| `NVCL_EMAIL_SMTP_SSL_BUNDLE` | Empty for a relay with a public certificate. For one signed by your CA, see below. |
| `NVCL_EMAIL_SMTP_CONNECT_TIMEOUT`, `NVCL_EMAIL_SMTP_TIMEOUT` | Optional; default `10s` to connect and `30s` for each read and write. |
| `NVCL_EMAIL_FROM` | The sender address of every email. Keep its domain authorized on the relay. |

Links in the emails point at `NVCL_PUBLIC_URL`. **Restart the Hub** after changing any of these: `systemctl restart nvcl-hub`.

**What a relay turns on.** With a relay set, a user who registers in the console must **confirm their address by email** before signing in. The bootstrap super-admin stays verified.

**Without a relay** (`NVCL_EMAIL_SMTP_HOST` empty), the Hub sends nothing: invitation and password-reset links appear only in the Hub log (`journalctl -u nvcl-hub`), and nobody confirms the address they register with. Keep `NVCL_WHITELIST_ENTRIES` narrow in that case — see [Install](https://docs.novacula.io/recipes/self-hosted/install.md#hub).

### A relay behind your internal CA

The Hub's bundled Java runtime doesn't read the OS trust store, so a relay with a certificate from your internal CA needs that CA named explicitly, as an SSL bundle:

```bash theme={null}
NVCL_EMAIL_SMTP_SSL_BUNDLE=smtp
SPRING_SSL_BUNDLE_PEM_SMTP_TRUSTSTORE_CERTIFICATE=file:/usr/local/share/ca-certificates/nvcl-ca.crt
```

A failed send isn't retried on a permanent rejection (an SMTP `5xx`, an authentication failure); temporary replies and connection failures are retried, so a repeated send can produce a duplicate message.

## Alert channels

`NVCL_ALERT_CHANNEL_KINDS` sets which channel types [Alerts](https://docs.novacula.io/docs/notifications/alerts.md) offers. The Self-hosted `hub.env` ships with:

```bash theme={null}
NVCL_ALERT_CHANNEL_KINDS=WEBHOOK
```

* **Webhook** is the supported channel. Point it at a receiver on your network: a private address is accepted only inside [`NVCL_NETWORK_PRIVATE_CIDRS`](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls#private-networks-the-hub-may-dial), and Alertmanager refuses loopback and link-local receivers. For a receiver behind your CA, put the CA in the Hub host's OS trust store — Alertmanager reads that one.
* **Slack**, **Telegram**, and **Microsoft Teams** deliver through internet services, so they don't work on a closed network.
* **Email** isn't available with the bundled telemetry. Email alerts are sent by Mimir's Alertmanager, not by the Hub, and the telemetry in the delivery kit runs stock Mimir 2.15.0, which can't deliver email alerts reliably. Don't add `EMAIL` to `NVCL_ALERT_CHANNEL_KINDS`; without it the console offers no **Email** channel type, and the [Organization SMTP](https://docs.novacula.io/docs/notifications/alerts.md#organization-smtp) settings have nothing to deliver. Account email above is unaffected — the Hub sends it itself.

A channel type you remove from the list is refused on edits and left out of delivery; existing channels of that type stay readable and deletable. Restart the Hub after changing it.

## Related

* [Alerts](https://docs.novacula.io/docs/notifications/alerts.md)
* [Install](https://docs.novacula.io/recipes/self-hosted/install.md) · [Proxy modes and TLS](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.