Почта: поле «Проверочное письмо — кому» вернулось — по умолчанию администратор системы, можно указать свой адрес

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
zuevav
2026-10-06 22:51:29 +03:00
parent 4593a72cec
commit c4fb0d9bfc
4 changed files with 55 additions and 12 deletions
+12 -10
View File
@@ -557,16 +557,18 @@ type AlertSettings struct {
// SMTPSettings — параметры отправки уведомлений по e-mail.
type SMTPSettings struct {
Enabled bool `json:"enabled"`
Host string `json:"host"`
Port int `json:"port"` // 587 (STARTTLS), 465 (SSL), 25
Security string `json:"security"` // "starttls" | "ssl" | "none"
Username string `json:"username"`
Password string `json:"password"`
From string `json:"from"`
To string `json:"to"` // получатели через запятую
LastMsg string `json:"last_msg"`
LastAt time.Time `json:"last_at"`
Enabled bool `json:"enabled"`
Host string `json:"host"`
Port int `json:"port"` // 587 (STARTTLS), 465 (SSL), 25
Security string `json:"security"` // "starttls" | "ssl" | "none"
Username string `json:"username"`
Password string `json:"password"`
From string `json:"from"`
To string `json:"to"` // администратор системы (через запятую) — задаётся в «Кому писать»
// TestTo — куда слать проверочное письмо (поле в блоке «Почта»); пусто — администратору системы.
TestTo string `json:"test_to,omitempty"`
LastMsg string `json:"last_msg"`
LastAt time.Time `json:"last_at"`
}
// ZabbixSettings — trapper-хук: bj шлёт значение элемента данных на сервер/прокси