Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.33 KB

README.md

File metadata and controls

53 lines (31 loc) · 1.33 KB

postadmin

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.

Configuration

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

Usage

Add a new domain

postadmin add domain mydomain.tld

Add an email

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)

Add an alias

Remove a domain, all emails and aliases

postadmin delete domain mydomain.tld

Help

postadmin --help

For a specific help

postadmin [action] [command] --help