Add script for testing smtp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user