Skip to content

No way to manage per-domain SMTP gateways (smart-hosts) #99

Description

@gott-alexander

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions