Simple PHP admin panel to manage mailboxes (create, reset passwords, update quotas, delete) and view usage.
This panel expects a local config file outside the repository:
/etc/mailadmin.gmgisolutionsltd.com/config.php
Example:
<?php
define('ADMIN_EMAIL', 'khalil@gmgisolutionsltd.com');
define('DOMAIN_NAME', 'gmgisolutionsltd.com');
define('DEFAULT_QUOTA', '2G');
define('ENABLE_USAGE', true);
define('DB_HOST', '127.0.0.1');
define('DB_USER', 'mailuser');
define('DB_PASS', 'change-me');
define('DB_NAME', 'mailserver');Do not store secrets in the repo.
- Usage display uses a locked-down helper:
/usr/local/bin/mailadmin-quota(via sudo). - Quota format:
500M,2G,1T.