Problem
grommunio has no management interface for per-domain outbound SMTP
gateways. Even where a relay configuration table exists (see the
corresponding gromox schema), administrators cannot create, inspect,
change or delete gateway settings for a domain — neither via the REST
API nor via grommunio-admin on the shell.
Current behavior
Outbound relay settings are invisible to grommunio-admin: the only
options are editing MTA configuration files by hand (global, not
per-domain, and outside the admin's usual workflow).
Desired behavior
First-class management of per-domain gateway entries, consistent with
how grommunio-admin handles other per-domain settings:
- REST:
GET/PUT/DELETE /api/v1/domains/<ID>/smtpGateway, writable
by domain administrators, readable with read-only rights.
- CLI:
grommunio-admin domain smtp-gateway set|show|delete|list.
- Credentials must never be returned to clients (respond with a
"password is set" indicator instead), and submitting an empty password
must keep the stored one — the usual password-field semantics.
- Validation of encryption mode and port range with meaningful errors.
- OpenAPI documentation for the new endpoints.
Acceptance
A domain administrator can fully manage the domain's outbound gateway
via API and CLI without touching configuration files; other domains'
settings are unaffected and unauthorized access is rejected.
Problem
grommunio has no management interface for per-domain outbound SMTP
gateways. Even where a relay configuration table exists (see the
corresponding gromox schema), administrators cannot create, inspect,
change or delete gateway settings for a domain — neither via the REST
API nor via
grommunio-adminon the shell.Current behavior
Outbound relay settings are invisible to grommunio-admin: the only
options are editing MTA configuration files by hand (global, not
per-domain, and outside the admin's usual workflow).
Desired behavior
First-class management of per-domain gateway entries, consistent with
how grommunio-admin handles other per-domain settings:
GET/PUT/DELETE /api/v1/domains/<ID>/smtpGateway, writableby domain administrators, readable with read-only rights.
grommunio-admin domain smtp-gateway set|show|delete|list."password is set" indicator instead), and submitting an empty password
must keep the stored one — the usual password-field semantics.
Acceptance
A domain administrator can fully manage the domain's outbound gateway
via API and CLI without touching configuration files; other domains'
settings are unaffected and unauthorized access is rejected.