postfixadmin-cli1
A cli tool to manage postfixadmin
Usage
postfixadmin-cli <module>
<task>
[options]
postfixadmin-cli <module>
help
postfixadmin-cli <module>
<task>
help
Overview
postfixadmin-cli is a CLI tool to use postfixadmin like how you use the WebUI. It is a shell sciprt wrapped around /usr/share/postfixadmin/scripts/postfixadmin-cli.php.
Modules
admin
domain
mailbox
alias
aliasdomain
fetchmail
Tasks
Most modules support the following tasks:
|
View an item. |
|---|---|
|
Add an item. |
|
Update an item. |
|
Delete an item. |
|
Print database scheme (useful for developers only). |
|
Print help output. |
Options
Different combinations of MODULES and TASKS have different sets of available options to use. Please see the help messages and the examples below.
Examples
To add a mailbox interactively:
postfixadmin-cli mailbox add
To add a mailbox non-interactively, with the new mailbox being inactive:
postfixadmin-cli mailbox add [email protected] --password deadbeef12 --password2 deadbeef12 --name "Nobody Nogroup" --welcome-mail --active 0 --email-other [email protected]
To view the information of a domain:
postfixadmin-cli domain view example.com