mxhook start
Start MXHook services — the SMTP receiver and API server.
Usage
bash
mxhook start [flags]Flags
| Flag | Default | Description |
|---|---|---|
--smtp-addr | 0.0.0.0:25 | SMTP listen address |
--smtp-domain | localhost | SMTP server domain (used in HELO/EHLO) |
--api-addr | 0.0.0.0:8080 | REST API listen address |
--db-url | — | PostgreSQL connection string (required) |
All flags can also be set via environment variables. See Configuration.
Examples
Start with default settings:
bash
mxhook start --db-url "postgres://mxhook:mxhook@localhost:5432/mxhook?sslmode=disable"Start with custom ports:
bash
mxhook start \
--smtp-addr 0.0.0.0:2525 \
--smtp-domain mail.yourdomain.com \
--api-addr 0.0.0.0:9090 \
--db-url "postgres://mxhook:mxhook@localhost:5432/mxhook?sslmode=disable"