Repository navigation
Per-domain SMTP gateway tab in the domain details - #25
Open
gott-alexander wants to merge 1 commit into
Open
gott-alexander wants to merge 1 commit into
gott-alexander wants to merge 1 commit into
Conversation
Member
|
That commit list needs clean-up. There should be no self-reverts and no merge objects. |
gott-alexander
force-pushed
the
feature/per-domain-smtp-gateway
branch
from
September 16, 2026 21:07
ad4349a to
0988937
Compare
Author
Now, all in one commit |
StefanAkie
reviewed
Sep 18, 2026
Domain details gain a smart-host tab backed by the per-domain SMTP gateway API: host, port, encryption, username, password and description fields with the matching type, action and API definitions.
gott-alexander
force-pushed
the
feature/per-domain-smtp-gateway
branch
from
October 8, 2026 22:28
0cfce41 to
02f2cac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an "SMTP gateway" tab to the domain details view, allowing
administrators to configure a per-domain outbound relay (smart-host):
host, port, encryption mode, credentials, description and an
enable/disable toggle.
Changes
src/containers/SmtpGateway.tsx(new): the gateway form. It is acontrolled component that exposes its data buffer to the parent via an
imperative handle (
forwardRef/useImperativeHandle) — the samepattern as the "Disabled plugins" tab, so the domain details' existing
Save button drives persistence and no separate save flow is introduced.
The password field follows the common password-field UX: it is sent
only when edited; leaving it empty keeps the stored password, and a
passwordSetflag from the API indicates whether one is stored.src/containers/DomainDetails.tsx: register the fourth tab and routethe Save button to a
PUT /api/v1/domains/<ID>/smtpGatewayrequestwhen the tab is active; errors from the backend are surfaced through
the existing snackbar.
Verification
Built and verified the production bundle contains the gateway tab; form
round-trip against the API (save, reload, password-keep behaviour,
backend validation errors shown on invalid input).
I deleted the wrong one while testing.