zandev / postadmin

CLI tool for administration of a postfix email server, configured following the workaround.org's lenny tutorial.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 me@mydomain.tld -p plain_Password
| postadmin add email me@mydomain.tld myusername -p plain_Password
| postadmin add email me@mydomain.tld -e encrypted_Password (currently md5crypt, need to be improved)

Add an alias

postadmin add alias myalias@mydomain.tld bob@google.com

Remove a domain, all emails and aliases

postadmin delete domain mydomain.tld

Help

postadmin --help

For a specific help

postadmin [action] [command] --help

About

CLI tool for administration of a postfix email server, configured following the workaround.org's lenny tutorial.


Languages

Language:Shell 100.0%