Hi,
it would be great if stalwart-cli could manage Stalwart over a Unix Domain Socket (UDS), similar to how PostgreSQL peer authentication or the Headscale CLI works.
This could allow us to use regular Unix permissions to manage access to Stalwart instead of a username and password.
It could also avoid certain “bootstrap problems” that might occur when trying to automate tasks or using a declarative configuration.
e.g. When using manual certificate management, reloading certificates requires a user to exist in Stalwart. If Stalwart would expose a Unix socket, we could have a Systemd service that has access to the socket, which would reload the certificates after renewal, while avoiding the need for a user in Stalwart.
Best regards
David