> Documentation index for agents: /hcp/3.3/en/llms.txt

# Receive log events by email

Center can send an email about each security event log event at or above the selected severity. Turn on email notifications to be informed about integrity violations, account lockouts and failures without signing in to the web interface.

## Before you begin

- You need the **Cluster master** role. A **Security Admin** sees the settings but cannot change them.
- A mail server is set for Center. It is set in the Center service settings, not in the web interface: the address `SMTP_HOST`, the port `SMTP_PORT` (25 by default) and the sender address `SMTP_SEND_FROM` (`no-reply@vstack.com` by default). Without `SMTP_HOST`, no emails are sent.
- The mail server accepts a secure connection. Center sends email only over STARTTLS (the default) or over TLS from the first byte — `SMTP_TLS`, values `starttls` and `tls`. Center does not send unencrypted email.
- If the server requires authentication, set the login and password as a pair: `SMTP_USERNAME` and `SMTP_PASSWORD`. If the server certificate is issued by your own certificate authority, specify the file with the certificates of that authority in PEM format — `SMTP_CA_FILE`; Center trusts it along with the commonly trusted root authorities.
- The mail server is a relay in the internal network segment: allow it to accept mail from the management VM address.

Center installation does not set a mail server. To set or change it, contact vStack support and provide the server address and port, the encryption mode, the sender address and, if needed, the login and the certificate of the certificate authority. The new parameters take effect after the Center service restarts. If the mail parameters contain an error, Center writes it to its service log and starts without sending email.

> **Upgrade from 3.2**
>
> Center 3.2 sent email without encryption. If the mail server does not support STARTTLS or TLS, emails stop arriving after the upgrade to 3.3 — you need a server with a secure connection.

## Turn on notifications

1. In the left menu, select **Security Event Log**.
2. Select **Actions** → **Notification settings** to the right of the heading. The **Notification settings** window opens.
3. Turn on the **Enable email notifications** switch.
4. Enter an address in the **Recipients** field and press Enter. The address appears as a chip under the field; add the other addresses the same way.
5. In the **Minimum severity for email** list, select the lowest level you want an email about. The default is **Alert**.
6. Click **Save**. The button is available when there are changes and all addresses are valid.

## Check the result

The web interface shows the notification **Notification settings updated**. Open the window again: the switch is on, and the recipients and the level are saved.

Center cannot send a test email. The email arrives with the first event of the required severity; the subject consists of `[vStack Security]`, the event name and the level code.

If emails do not arrive, check that a mail server is set for Center, that it accepts mail from the management VM address and supports STARTTLS or TLS. If this did not help, contact vStack support: sending errors are visible in the Center service log.

## More

- Severity has 7 levels, from highest to lowest: **Emergency**, **Alert**, **Critical**, **Error**, **Warning**, **Notice**, **Info**. An email is sent about events of the selected level and higher.
- At the **Alert** level, emails arrive about violations of file, configuration and log integrity. The **Critical** level adds account lockout, running out of disk space, disk replacement in a pool and node kernel panic.
- Each event is a separate email to each recipient, sent right after the event is recorded, without grouping.
- There is no filtering by event category or type.
- To remove an address, click the cross on its chip.

## Next

- [View the security event log and archive](/hcp/3.3/en/observability/security-log/index.md)
- [Secure cluster configuration](/hcp/3.3/en/security/hardening/index.md)

API methods: `security-event-notify-settings-get`, `security-event-notify-settings-set` — in the [API reference](/hcp/3.3/en/api/methods/index.md).
