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".
-
Copy .creds.example over to .creds file and make your changes
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
- Change autosent status #wether or not to auto bcc when sent from. Use this for accounts where emails are sent via smtp and not a IMAP client
- 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