A CLI tool for administering a database-backed Postfix mail server. postadmin is developped with the workaround.org ISP tutorial in mind, but is designed to be database and schema agnostic. If you haven't followed this tutorial yet, you'll find usefull to have a look at the default-schema.mysql file.
The postadmin.conf.sample file is a plain old bash file. You'll find all defaults commented. postadmin expect to find a configuration file
{,postadmin/}postadmin.conf
in
.
/etc
/usr/local/etc
/opt/etc
postadmin add domain mydomain.tld
postadmin add email [email protected] -p plain_Password
| postadmin add email [email protected] myusername -p plain_Password
| postadmin add email [email protected] -e encrypted_Password (currently md5crypt, need to be improved)
postadmin add alias [email protected] [email protected]
postadmin delete domain mydomain.tld
postadmin --help
For a specific help
postadmin [action] [command] --help