Skip to content

Per-domain SMTP gateway tab in the domain details - #20

Open
gott-alexander wants to merge 3 commits into
grommunio:masterfrom
gott-alexander:feature/per-domain-smtp-gateway
Open

Per-domain SMTP gateway tab in the domain details#20
gott-alexander wants to merge 3 commits into
grommunio:masterfrom
gott-alexander:feature/per-domain-smtp-gateway

Conversation

@gott-alexander

Copy link
Copy Markdown

Adds a new 'SMTP gateway' tab to the domain details view that lets admins configure the per-domain outbound SMTP server (smart-host) without leaving the web UI.

Bildschirmfoto vom 2026-09-03 18-47-46

Changes:

  • src/containers/SmtpGateway.tsx — new component that renders the form (host, port, encryption, username, password, from address, description) and uses the useAPI hook to talk to the new REST endpoint mounted by grommunio-admin-api. Password field is masked and only sent on save when populated.
  • src/containers/DomainDetails.tsx — fourth tab is rendered conditionally and a ref-based handle lets the parent page invoke saveSmtpGateway from the toolbar Save button, so the existing save flow keeps working.

Companion changes: grommunio/gromox# and
grommunio/admin-api#.

This involves several repositories. It's probably not bug-free. It still needs testing and others to continue working on it, since I don't have the time.

It's already possible to send an email via the web interface using the SMTP gateway in the background (most of the time).

Alexander and others added 3 commits September 3, 2026 13:21
Adds a new 'SMTP gateway' tab to the domain details view that lets
admins configure the per-domain outbound SMTP server (smart-host)
without leaving the web UI.

Changes:

  * `src/containers/SmtpGateway.tsx` — new component that renders
    the form (host, port, encryption, username, password, from
    address, description) and uses the `useAPI` hook to talk to
    the new REST endpoint mounted by grommunio-admin-api. Password
    field is masked and only sent on save when populated.
  * `src/containers/DomainDetails.tsx` — fourth tab is rendered
    conditionally and a ref-based handle lets the parent page
    invoke `saveSmtpGateway` from the toolbar Save button, so the
    existing save flow keeps working.

Companion changes: grommunio/gromox#<PR> and
grommunio/admin-api#<PR>.
from_address is no longer consumed anywhere (smart-host routing is
handled by the MTA); the form field had no effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant