rusmes-cli
Command-line management tool for RusMES. Provides server initialization, user management, mailbox management, queue operations, migration, backup/restore, and live metrics viewing.
Status
Alpha. All core commands are implemented with real storage and server integration. Placeholder output has been replaced with live data from the storage backend and the Prometheus /metrics endpoint.
Binary
Commands
rusmes <COMMAND>
Commands:
init Initialize a new RusMES installation
start Start the RusMES server
stop Stop the RusMES server
check-config Validate configuration file without starting
status Show live server status (PID, uptime, active connections, message counts)
user User management
mailbox Mailbox management
queue Queue management
backup Back up mailboxes and configuration
restore Restore from a backup archive
migrate Migrate storage between backends (filesystem ↔ sqlite ↔ postgres ↔ amaters)
metrics Show live server metrics
Server Management
User Management
Mailbox Management
Queue Management
Backup & Migration
Metrics
Key Implementation Notes
statusfetches active connections per protocol from the/metricsendpoint (port 9090) and falls back gracefully when the server is offline.mailbox repair --vacuumcallscompact_expunged()on the storage backend and prints the number of expunged entries reclaimed.migratesupports the AmateRS backend as both source and destination, in addition to filesystem, sqlite, and postgres.user listusesbackend.list_all_users().awaitrather than a static stub.
Dependencies
rusmes-proto- mail typesrusmes-storage- storage backends (filesystem, sqlite, postgres, amaters)rusmes-config- configuration loadingrusmes-metrics- metrics endpoint clientclap- argument parsingtokio- async runtime
Tests