Skip to content

mxhook domain

Manage email domains that MXHook accepts mail for.

Subcommands

domain add

Register a domain for email ingestion.

bash
mxhook domain add <domain-name> [flags]

Arguments

ArgumentRequiredDescription
domain-nameYesThe domain to register (e.g., yourdomain.com)

Flags

FlagDefaultDescription
--api-urlhttp://localhost:8080MXHook API URL
--api-keyAPI authentication key

Examples

Register a domain:

bash
mxhook domain add yourdomain.com

Register with explicit API connection:

bash
mxhook domain add yourdomain.com \
  --api-url http://mxhook.internal:8080 \
  --api-key your-secret-key

Released under the Apache 2.0 License.