chore(mail): remove mail-admin (superseded by Dovecot shared folders) (#76)
This commit is contained in:
@@ -7,7 +7,7 @@ Docker Compose mail stack for `mail.produktor.io` on arc-01, based on
|
||||
|---------|-----------|-------|
|
||||
| Mail server (DMS) | `mailserver` | 25 (SMTP), 465 (SMTPS), 587 (Submission STARTTLS), 143 (IMAP STARTTLS), 993 (IMAPS) |
|
||||
| Webmail (Roundcube) | `webmail` | 127.0.0.1:19944 / 172.17.0.1:19944 (HTTP, behind NPM) |
|
||||
| Account admin (read-only) | `mail-admin` | 127.0.0.1:19945 / 172.17.0.1:19945 (HTTP, behind NPM) |
|
||||
| Account admin | — (removed) | — |
|
||||
|
||||
## Accounts
|
||||
|
||||
@@ -57,37 +57,6 @@ The webmail stores its sqlite database (addressbook, settings) in
|
||||
`data/roundcube/db/`. `ROUNDCUBEMAIL_DES_KEY` (session encryption) must be set
|
||||
in `.env` — compose fails without it.
|
||||
|
||||
## Account admin (read-only view)
|
||||
|
||||
The `mail-admin` service is a small Go (stdlib-only) HTTP viewer for **all**
|
||||
accounts at once: **https://mail.produktor.io/admin/** (HTTP Basic Auth, NPM
|
||||
proxy host 66, location `/admin/` → `172.17.0.1:19945`).
|
||||
|
||||
It shows every account from `config/postfix-accounts.cf` with:
|
||||
|
||||
- INBOX message count (files in the Maildir `cur/` + `new/`, the same numbers
|
||||
`doveadm mailbox status ... messages INBOX` reports),
|
||||
- total messages across all mailboxes (incl. subfolders),
|
||||
- storage used and the quota limit from `config/dovecot-quotas.cf`,
|
||||
- timestamp of the newest message.
|
||||
|
||||
Read-only by design: `./config/` and `./data/mail-data/` are mounted `:ro`, no
|
||||
docker socket, no host access. Management (add/del accounts) stays in
|
||||
docker-mailserver (`setup email add`, edit `postfix-accounts.cf`).
|
||||
|
||||
Source: `admin/` (Go 1.25, `go test -race ./...` offline vs `admin/testdata/`).
|
||||
|
||||
### Manage
|
||||
|
||||
```bash
|
||||
docker compose up -d # builds mail-admin from admin/Dockerfile
|
||||
docker compose logs -f mail-admin
|
||||
curl -u "$MAIL_ADMIN_USER:$MAIL_ADMIN_PASSWORD" https://mail.produktor.io/admin/api/accounts
|
||||
```
|
||||
|
||||
Credentials `MAIL_ADMIN_USER` / `MAIL_ADMIN_PASSWORD` are required in `.env`
|
||||
(compose fails without them). The JSON API is at `/admin/api/accounts`.
|
||||
|
||||
## Reverse proxy (NPM)
|
||||
|
||||
`mail.produktor.io` is a proxy host in Nginx Proxy Manager (`provider` container,
|
||||
|
||||
Reference in New Issue
Block a user