One secured SMTP path, optional login, sender and reply address, failing health (#3)
build / build (push) Failing after 7s
build / test (push) Successful in 16s

Co-authored-by: Michael Czechowski <mail@librete.ch>
This commit was merged in pull request #3.
This commit is contained in:
libretech authored and Michael Czechowski committed 2026-10-15 10:43:10 +02:00
1 parent 22e642e5bb
commit 2efca9415e
6 files changed
+251 -187

No files matched your search

+12
View File
@@ -18,6 +18,18 @@ pulls `git.librete.ch/libreshop/mail:<pin>` instead of building locally.
docker build -t libreshop/mail:dev .
```
## Settings
| variable | meaning |
|---|---|
| `SMTP_RELAY_HOST`, `SMTP_RELAY_PORT` | the SMTP server |
| `SMTP_RELAY_SECURITY` | `ssl` (port 465), `starttls` (587 or 25) or `none` (a relay on a private network); default by port |
| `SMTP_RELAY_USERNAME`, `SMTP_RELAY_PASSWORD` | login, used only when both are set |
| `SMTP_FROM` | sender, e.g. `MUELLERPRINTS <shop@example.org>`; default `SMTP_RELAY_USERNAME` |
| `SMTP_REPLY_TO` | optional reply address |
`GET /health` answers 503 when the SMTP server does not accept the connection.
## Adapter contract
See `docker-entrypoint.sh` and `Dockerfile` for the runtime surface.