5. Command line interface

There are three primary ways of managing hosts (or clusters of); the web administration, API (Protocol Buffer) or CLI. The smtpd package comes with a program called halonctl that can be used to manage any aspect of the MTA. This section is a guide for that program.

Every command have a --help flag to display available options.

The halonctl program communicates with the smtpd processes over control sockets as described by the Protocol Buffer schemas. The raw response data can be useful when using the CLI for scripting with tools like jq, and the request data can be useful when learning about the API. Therefore, the commands have a --json output flag making it return the raw response and a --json-request flag that prints the raw request (JSON encoded).