Add email delivery check command
This commit is contained in:
@@ -45,6 +45,14 @@ This command tests `/nodes`, `/storage`, `/cluster` and the endpoint configured
|
||||
|
||||
If `/cluster/backup` returns `HTTP 403 - Permission check failed (/, Sys.Audit)`, the token works but lacks the `Sys.Audit` privilege on `/`.
|
||||
|
||||
### Email Delivery Test
|
||||
|
||||
```sh
|
||||
docker compose run --rm pve-backup-report --check-email
|
||||
```
|
||||
|
||||
This command sends a test email with the SMTP configuration from `.env`, without generating a PDF. It requires `REPORT_EMAIL_ENABLED=true` and returns an error if the SMTP connection, STARTTLS, authentication or sending fails.
|
||||
|
||||
### PDF Report Generation
|
||||
|
||||
```sh
|
||||
@@ -124,6 +132,7 @@ Installed commands:
|
||||
```sh
|
||||
pve-backup-report --check-config
|
||||
pve-backup-report --check-api
|
||||
pve-backup-report --check-email
|
||||
pve-backup-report --dump-inventory
|
||||
pve-backup-report --dump-coverage
|
||||
pve-backup-report --dump-report-data
|
||||
@@ -137,6 +146,7 @@ Without editable installation:
|
||||
```sh
|
||||
PYTHONPATH=src python3 -m pve_backup_report --check-config
|
||||
PYTHONPATH=src python3 -m pve_backup_report --check-api
|
||||
PYTHONPATH=src python3 -m pve_backup_report --check-email
|
||||
PYTHONPATH=src python3 -m pve_backup_report --dump-inventory
|
||||
PYTHONPATH=src python3 -m pve_backup_report --dump-coverage
|
||||
PYTHONPATH=src python3 -m pve_backup_report --dump-report-data
|
||||
|
||||
Reference in New Issue
Block a user