docs: config.yml.example - remove smtp section, ns8-sendmail handles delivery

This commit is contained in:
2026-05-18 20:06:46 +00:00
parent 42a8d95f7f
commit b035671211
+4 -29
View File
@@ -1,38 +1,13 @@
# ns8-backup-monitor configuration
# ---------------------------------------------------------------------------
# SMTP settings
# ---------------------------------------------------------------------------
# By default (use_ns8_relay: true), ns8-backup-monitor automatically reads
# the SMTP relay configured in NethServer 8 from the cluster Redis state
# (key: cluster/mail_settings). This is the same relay used by NS8 itself
# for system notifications, so no manual SMTP setup is needed in most cases.
#
# The fallback chain is:
# 1. NS8 Redis (cluster/mail_settings) <-- default, preferred
# 2. smtp section below
# 3. localhost:25 unauthenticated
#
# To disable auto-detection and use the settings below, set:
# use_ns8_relay: false
smtp:
use_ns8_relay: true # set to false to force manual SMTP config below
# Manual SMTP config (used only if use_ns8_relay: false or NS8 relay not found)
host: localhost
port: 587
use_tls: false
use_starttls: true
username: ""
password: ""
# ---------------------------------------------------------------------------
# Notification recipients
# ---------------------------------------------------------------------------
# Email delivery is handled by ns8-sendmail, which uses the SMTP relay
# already configured in NethServer 8. No SMTP settings needed here.
mail:
# Sender address.
# If use_ns8_relay: true, the 'from' is read from NS8 Redis (mail_from field).
# You can override it here if needed.
# Sender address (optional - ns8-sendmail may override this with the
# system sender; useful to set for clarity in mail clients)
from: "ns8-backup-monitor@yourdomain.com"
# List of recipients - REQUIRED, always set this