feat: test-alert subcommand + enable email for bredelar.info

- Add `test-alert [--level yellow|red]` to verify SMTP without a real scan
- Enable email alerting in bredelar.info/config.yaml (uses DEFAULT_CONFIG
  for host/user/from/to, only smtp_password_env kept explicit)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-06-12 19:50:24 +02:00
commit aa2b1ebf5c
2 changed files with 49 additions and 8 deletions

View file

@ -75,15 +75,8 @@ periodic_checks:
alerting:
min_level: "yellow"
email:
enabled: false
smtp_host: "localhost"
smtp_port: 587
smtp_tls: true
smtp_user: ""
enabled: true
smtp_password_env: "SCANNER_SMTP_PASSWORD"
from: "scanner@bredelar.info"
to:
- "admin@bredelar.info"
webhook:
enabled: false
url: ""