Initial feature-complete implementation of the v1.0 specification (phases 0-11 of `docs/implementation-plan.md`). Added: - Panel (Go, single static binary) with SQLite persistence, one-time - Domain management with per-domain DKIM (RSA-2048, generated in pure Go) and - Application (sender identity) management: SASL credentials via `sasldb2`, - Full Postfix relay config generated from env at container start: SMTPS 465, - Journal milter (pure Go, `go-milter`) recording every send to `send_log`; … (6 more in CHANGELOG) Full detail: CHANGELOG.md (0.1.0).
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
{{define "content"}}
|
|
<h1>Domains</h1>
|
|
|
|
{{if .Flash}}<div class="flash">{{.Flash}}</div>{{end}}
|
|
|
|
<div class="card">
|
|
<h2>Add a sending domain</h2>
|
|
<form method="post" action="/domains">
|
|
<label for="name">Domain</label>
|
|
<input id="name" name="name" type="text" placeholder="example.com"
|
|
autocomplete="off" autocapitalize="none" spellcheck="false"
|
|
value="{{.FormName}}" autofocus required>
|
|
{{if .Error}}<p class="error">{{.Error}}</p>{{end}}
|
|
<button type="submit">Add domain</button>
|
|
</form>
|
|
<p class="muted">A DKIM key is generated for the domain; you then publish the
|
|
shown DNS record. Adding a domain does not create an application.</p>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>Domains</h2>
|
|
{{if .Domains}}
|
|
<table>
|
|
<thead>
|
|
<tr><th>Domain</th><th>Selector</th><th>Apps</th><th></th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Domains}}
|
|
<tr>
|
|
<td><a href="/domains/{{.ID}}">{{.Name}}</a></td>
|
|
<td class="muted">{{.DKIMSelector}}</td>
|
|
<td>{{.AppCount}}</td>
|
|
<td class="actions"><a class="danger" href="/domains/{{.ID}}/delete">Delete</a></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
<p class="muted">No domains yet. Add one above to get started.</p>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|