Add script for testing smtp

This commit is contained in:
2026-08-29 20:26:13 +03:00
parent d1fdd8f029
commit 784662c967
4 changed files with 67 additions and 2 deletions
+9 -1
View File
@@ -52,7 +52,15 @@ Set `PUBLIC_URL` and the `MAIL_*` values in `.env` to send recovery emails. The
docker compose up --build -d
```
5. Send a delivery test to an inbox you control:
5. Confirm the SMTP connection, TLS handshake, and credentials without sending an email:
```sh
python ./scripts/check-smtp.py
```
The command prints `SMTP_CONNECTION_OK` only after the SMTP server accepts the STARTTLS connection and authenticates the configured account. It prints a clear configuration or connection error otherwise and never sends a message.
6. Send a delivery test to an inbox you control:
```powershell
.\scripts\test-smtp.ps1 -To you@example.com