CLI Tool for managing vmail databases
vmail-admin
is a command line tool for managing a mail-server database
based on the great HowTo (german version)
from Thomas Leister written in Bash.
Make sure you have a working setup as described in the tutorial as vmail-admin
relies on the described database scheme (MySQL or MariaDB).
Further, as vmail-admin
is written in Bash, you should have bash installed.
- Download vmail-admin.sh from github.
- Make it executable with "chmod +x vmail-admin.sh".
- Run it with "./vmail-admin.sh".
You can change the parameters for the script under Definitions in the script. Start the script with:
./vmail-admin.sh
Note that you also can initialize the database with this tool.
Menu items are:
- User Management
- Add user
- Delete user
- Change user password
- Change user quota
- Back to main menu
- Domain Management
- Add Domain
- Delete Domain
- Show users for domain
- Show all domains
- Back to main menu
- Aliases Management
- Add alias
- Delete alias
- Show aliases for domain
- Show all aliases
- Back to main menu
- Database Management
- Export database as sql.gz
- Import database from sql.gz
- Delete database
- Initialize database
- Back to main menu
- Exit
Create new issues if you find bugs or want to add new features. Pull requests are very welcome.
Copyright (C) 2018 by Patrick Prugger