[1.2.0] The second MINOR after 1.0.0: domain administrators with per-domain scope, a panel visual refresh on the SelfPost palette, and refinements to navigation and the send log. Upgrading runs one SQLite migration (`0005_panel_users`); the single administrator becomes a global user. Added: - panel: **domain-admin role** — global administrators manage panel users and Fixed: - Docker build: `LICENSE` is no longer excluded by `.dockerignore`, so the - panel: on signed-in pages with a narrow card (**Settings**, the user form) Changed: - panel: navigation session icons are distinct — **Settings** uses a gear, - panel: `/` redirects domain administrators to `/domains`; global users still - panel: **Sign out** in the navigation column uses the same type size and - panel: **visual style** brought in line with the SelfPost mark — brick accent - panel: the send log's **status is a badge**, in the same ok/warn/error/unknown … (1 more in CHANGELOG) [1.2.1] Panel refinements after 1.2.0: navigation icons, status-badge centreing, drill-down back-link placement, and safeguards for the sole global administrator. Upgrading is a tag bump; no migration. Fixed: - panel: status badge text sat low in the box (and below the heading or label - panel: the **Users** navigation icon was two full silhouettes with staggered - panel: the **Settings** navigation icon was a sun-with-rays (circle plus - panel: the user create/edit form placed «Back to users» at the bottom of the Changed: - panel: the user edit form disables role change and delete for the only global - panel: the user create/edit form hides **Assigned domains** when the role is - panel: **Settings** shows panel credentials and DMARC aggregate reports side [1.2.2] Status page layout after 1.2.1: paired cards in a wide column, denser machine and check copy, and a user-form checkbox fix. Upgrading is a tag bump; no migration. Changed: - panel: **Status** is wide again so paired cards fill the column. Layout: Fixed: - panel: cards inside `.split` used `margin: 0 auto`, which in a CSS grid - panel: on the user create/edit form, **Assigned domains** checkboxes stacked [1.2.3] Domain detail layout and panel polish after 1.2.2. Upgrading is a tag bump; no migration. Changed: - panel: the domain detail page is wide with paired cards (DKIM+SPF ‖ DMARC; - panel: Domains list — **Add domain** sits beside the domain field; the - panel: page URLs, browser titles, and headings are aligned — **Settings** is Fixed: - image: `mail.log` rotation no longer silently stops when the build context [1.2.4] Level-2 rate-limit semantics inverted after 1.2.3, plus a small DNS field height fix. Upgrading is a tag bump; no migration. Changed: - rate limiting (level 2): domain ceilings apply to every client IP (no IP Fixed: - panel: on the domain DNS status grid, the Type (TXT) field height matches [1.2.5] Rate-limit form polish after 1.2.4. Upgrading is a tag bump; no migration. Changed: - panel: rate-limit forms refined — level-1 backstop as muted copy on the Squashed CHANGELOG sections: [1.2.0], [1.2.1], [1.2.2], [1.2.3], [1.2.4], [1.2.5]. Full detail: CHANGELOG.md (1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5).
128 lines
5.4 KiB
HTML
128 lines
5.4 KiB
HTML
{{/* Wide enough for credentials and DMARC settings side by side (see .split
|
|
in panel.css, as on a delivery's page). */}}
|
|
{{define "wide"}}wide{{end}}
|
|
|
|
{{define "content"}}
|
|
<h1>Settings</h1>
|
|
|
|
{{if .Flash}}<div class="flash">{{.Flash}}</div>{{end}}
|
|
{{if .Error}}<p class="error">{{.Error}}</p>{{end}}
|
|
|
|
{{if .ShowDMARC}}
|
|
<form method="post" action="/settings">
|
|
<div class="split">
|
|
<div class="card">
|
|
<h2>Panel credentials</h2>
|
|
<p class="muted">These are the credentials for this control panel only.
|
|
Applications keep their own logins and passwords, which are not affected.</p>
|
|
|
|
<label for="username">Username</label>
|
|
<input id="username" name="username" autocomplete="username"
|
|
autocapitalize="none" spellcheck="false" value="{{.FormUsername}}" required>
|
|
|
|
<label for="current_password">Current password</label>
|
|
<input id="current_password" name="current_password" type="password"
|
|
autocomplete="current-password" required>
|
|
|
|
<label for="new_password">New password</label>
|
|
<input id="new_password" name="new_password" type="password" autocomplete="new-password">
|
|
|
|
<label for="new_password_confirm">Confirm new password</label>
|
|
<input id="new_password_confirm" name="new_password_confirm" type="password" autocomplete="new-password">
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>DMARC aggregate reports</h2>
|
|
<p class="muted">Optional default <code>rua=</code> address for every sending
|
|
domain (can be overridden per domain). Use a mailbox on a domain that
|
|
receives inbound mail. SelfPost is send-only today; a future release will
|
|
be able to receive reports in the panel itself.</p>
|
|
|
|
<label for="dmarc_report_email">Default report address</label>
|
|
<input id="dmarc_report_email" name="dmarc_report_email" type="email"
|
|
autocomplete="email" autocapitalize="none" spellcheck="false"
|
|
value="{{.FormDMARCEmail}}" placeholder="reports@your-mail-domain.com">
|
|
|
|
{{if .FormDMARCEmail}}
|
|
<p class="muted">When <code>rua=</code> points at another domain, that hub
|
|
domain must publish a report-authorisation record so receivers will deliver
|
|
the XML aggregates.</p>
|
|
|
|
<label>Report authorization — host / name</label>
|
|
<div class="code-row">
|
|
<span class="code">{{.ReportAuthName}}</span>
|
|
<button type="button" class="copy">Copy</button>
|
|
</div>
|
|
|
|
<label>Report authorization — value</label>
|
|
<div class="code-row">
|
|
<span class="code">{{.ReportAuthExample}}</span>
|
|
<button type="button" class="copy">Copy</button>
|
|
</div>
|
|
|
|
{{if .ReportAuthDNS.Status}}
|
|
<label>Report authorization DNS <span class="st st-{{.ReportAuthDNS.Status}}">{{.ReportAuthDNS.Status}}</span></label>
|
|
<p class="{{if eq .ReportAuthDNS.Status "ok"}}muted{{else}}error{{end}}">{{.ReportAuthDNS.Detail}}</p>
|
|
{{if .ReportAuthDNS.Records}}<span class="code">{{range .ReportAuthDNS.Records}}{{.}}
|
|
{{end}}</span>{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
<button type="submit">Save changes</button>
|
|
<p class="muted">Leave both new-password fields empty to change the username
|
|
or DMARC address only. Changing the password signs out every other session;
|
|
this one stays signed in.</p>
|
|
</form>
|
|
{{else}}
|
|
<div class="card narrow">
|
|
<h2>Panel credentials</h2>
|
|
<p class="muted">These are the credentials for this control panel only.
|
|
Applications keep their own logins and passwords, which are not affected.</p>
|
|
<form method="post" action="/settings">
|
|
<label for="username">Username</label>
|
|
<input id="username" name="username" autocomplete="username"
|
|
autocapitalize="none" spellcheck="false" value="{{.FormUsername}}" required>
|
|
|
|
<label for="current_password">Current password</label>
|
|
<input id="current_password" name="current_password" type="password"
|
|
autocomplete="current-password" required>
|
|
|
|
<label for="new_password">New password</label>
|
|
<input id="new_password" name="new_password" type="password" autocomplete="new-password">
|
|
|
|
<label for="new_password_confirm">Confirm new password</label>
|
|
<input id="new_password_confirm" name="new_password_confirm" type="password" autocomplete="new-password">
|
|
|
|
<button type="submit">Save changes</button>
|
|
</form>
|
|
<p class="muted">Leave both new-password fields empty to change the username
|
|
only. Changing the password signs out every other session;
|
|
this one stays signed in.</p>
|
|
</div>
|
|
{{end}}
|
|
|
|
<div class="card" id="rate-limits">
|
|
<h2>Sending rate limits</h2>
|
|
<p class="muted">Configured in <code>.env</code> / Compose; restart the
|
|
container to change level 1. Domain and application ceilings are set on
|
|
each domain's page.</p>
|
|
|
|
<label>Level 1 — per client IP (Postfix)</label>
|
|
<p class="code-row"><span class="code">{{.L1Messages}} messages / {{.L1Window}} seconds</span></p>
|
|
<p class="muted"><code>RATE_LIMIT_MESSAGES_PER_IP</code> /
|
|
<code>RATE_LIMIT_WINDOW_SECONDS</code>. Hard ceiling for every connecting IP;
|
|
the panel cannot raise a domain or application limit above this.</p>
|
|
|
|
<label>Level 2 — domain</label>
|
|
<p class="muted">Optional ceiling for <em>all</em> senders on a domain. When
|
|
unset, only level 1 applies. Must be ≤ level 1.</p>
|
|
|
|
<label>Level 2 — application (trusted IPs)</label>
|
|
<p class="muted">Optional override: list client IPs and a ceiling
|
|
<em>strictly above</em> the domain limit (still ≤ level 1). Those IPs
|
|
skip the domain check; everyone else stays under the domain (or level 1).</p>
|
|
</div>
|
|
{{end}}
|