for docker supporting exec command:
# docker exec <container-id> poste
Mailserver commandline API version 1.0
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
help Displays help for a command
list Lists commands
domain
domain:create Create virtual domain
domain:dkim Show/create/remove DKIM keys&selector
domain:list Show all domains
domain:remove Delete virtual domain with all mailboxes and data
domain:warm-up (Internal command!) Force recreate delivery domain configs
email
email:admin Set/Unset email super admin rights
email:create Create mailbox skeleton
email:list Show all mailboxes
email:passwd Change password for mailbox
email:quota Show/set quota for mailbox
email:remove Delete mailbox
email:sieve Set sieve script (from pipe) or show current script
or you can control mailserver from inside container
# poste help domain:create
Usage:
domain:create [options] [--] <domain>
Arguments:
domain domain name
Options:
--json ouput JSON only
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Create virtual domain
example:
# poste domain:create newdomain.com
Successfully created virtual domain newdomain.com
# poste email:create test@newdomain.com mySecretPassword1
Successfully created email box test@newdomain.com with mySecretPassword1
API is protected with HTTP basic authorization - you need to send your account username and password othervise server will return HTTP Error 401 Unauthorized.