[GH-ISSUE #968] Command-line interface for users and admins #825

Open
opened 2026-02-27 11:13:45 +03:00 by kerem · 4 comments
Owner

Originally created by @almereyda on GitHub (Nov 23, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/968

Currently administrators use the Django commands to maintain an instance. The availability of an authenticated HTTP API also invites for remotely managing Modoboa from the command line

This could appear useful for shared hosting environments, where shell users may want to be able to configure their mail services directly on the terminal ( known from uberspace ). An interface like http://untroubled.org/vmailmgr/ comes to mind.

This would require making the API also available to domain administrators, in opposition to super administrators only (as per the docs).

Originally created by @almereyda on GitHub (Nov 23, 2016). Original GitHub issue: https://github.com/modoboa/modoboa/issues/968 Currently administrators use the Django commands to maintain an instance. The availability of an authenticated HTTP API also invites for remotely managing Modoboa from the command line This could appear useful for shared hosting environments, where shell users may want to be able to configure their mail services directly on the terminal ( known [from uberspace](https://wiki.uberspace.de/mail:vmailmgr) ). An interface like http://untroubled.org/vmailmgr/ comes to mind. This would require making the API also available to domain administrators, in opposition to super administrators only (as per [the docs](https://modoboa.readthedocs.io/en/latest/rest_api.html)).
Author
Owner

@tonioo commented on GitHub (Nov 23, 2016):

How do you manage authentication using such a tool?

<!-- gh-comment-id:262456451 --> @tonioo commented on GitHub (Nov 23, 2016): How do you manage authentication using such a tool?
Author
Owner

@ravensorb commented on GitHub (Dec 10, 2016):

Something like OAuth or Basic HTTP auth (over ssl) could work

<!-- gh-comment-id:266215200 --> @ravensorb commented on GitHub (Dec 10, 2016): Something like OAuth or Basic HTTP auth (over ssl) could work
Author
Owner

@almereyda commented on GitHub (Dec 12, 2016):

Additionally, the simple Django CLI could be simplified to a single namespace.

python manage.py modoboa ...

Instead of i.e. modo check_mx or direct unprepended jobs like communicate_with_public_api or generate_postfix_maps.

<!-- gh-comment-id:266586838 --> @almereyda commented on GitHub (Dec 12, 2016): Additionally, the simple Django CLI could be simplified to a single namespace. python manage.py modoboa ... Instead of i.e. `modo check_mx` or direct unprepended jobs like `communicate_with_public_api` or `generate_postfix_maps`.
Author
Owner

@JayBeRayBearGun commented on GitHub (Jan 8, 2017):

I like CLI been using this in my previous environment (cyrus/exim) all the time because I had no web interface. Webinterface is great but in some scenarios CLI can save the day when in a tight spot :)

<!-- gh-comment-id:271141037 --> @JayBeRayBearGun commented on GitHub (Jan 8, 2017): I like CLI been using this in my previous environment (cyrus/exim) all the time because I had no web interface. Webinterface is great but in some scenarios CLI can save the day when in a tight spot :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#825
No description provided.