diff --git a/internal/web/view/dmarc.go b/internal/web/view/dmarc.go index e794461..032a73d 100644 --- a/internal/web/view/dmarc.go +++ b/internal/web/view/dmarc.go @@ -95,7 +95,7 @@ func NewDMARCHub(m Meta, in IngestInput) *DMARCHub { } last := Fact{Label: "Last report", Value: Plain("None yet")} if in.Last.IsZero() { - last.Note = Rich("Point ", Code("rua="), " at the hosted address below and publish MX for ", Mono(in.Host), " on this server.") + last.Note = Rich("Set a domain to SelfPost hosted in its Domain settings, publish the DMARC record it then shows, and publish MX for ", Mono(in.Host), " pointing at this server.") } else { last.Value = Plain(in.Last.UTC().Format("2006-01-02 15:04") + " UTC") } @@ -112,7 +112,7 @@ func NewDMARCHub(m Meta, in IngestInput) *DMARCHub { IngestFacts: []Fact{ last, {Label: "This week", Value: Plain(FormatCount(int64(in.KeptThisWeek)) + " kept · " + plural(int64(in.ParseFailures), "parse failure", "parse failures"))}, - {Label: "Hosted addresses", Value: Plain(in.Hosted), Mono: true}, + {Label: "Hosted addresses", Value: Plain(in.Hosted), Mono: true, Small: true}, {Label: "Retention", Value: Plain(FormatCount(int64(in.RetentionMax)) + " reports or " + plural(int64(in.RetentionDays), "day", "days"))}, }, Recent: Box{No: "02", Title: "Recent reports"}, diff --git a/internal/web/view/dmarc_test.go b/internal/web/view/dmarc_test.go index dbf7422..a8f6a3e 100644 --- a/internal/web/view/dmarc_test.go +++ b/internal/web/view/dmarc_test.go @@ -12,7 +12,7 @@ func TestDMARCHubShowsIngestAndTheLatestReports(t *testing.T) { pageHas(t, "DMARC reports", out, `

DMARC reports

`, `rua=`, `

Ingest

`, `ok`, - `
2026-09-21 06:12 UTC
`, `
14 kept · 0 parse failures
`, `
Hosted addresses
`, `
dmarc-reports+<domain>@mail.example.org
`, `
500 reports or 90 days
`, + `
2026-09-21 06:12 UTC
`, `
14 kept · 0 parse failures
`, `
Hosted addresses
`, `
dmarc-reports+<domain>@mail.example.org
`, `
500 reports or 90 days
`, `Received, UTC`, `09-21 06:12`, `example.org`, "1 903", `7`, `0View`, ) @@ -24,7 +24,7 @@ func TestDMARCHubWithoutReports(t *testing.T) { p := NewDMARCHub(admin(), IngestInput{Hosted: "dmarc@mail.example.org", Host: "mail.example.org", RetentionMax: 500, RetentionDays: 90}) out := renderSignedIn(t, "dmarc", p.WithReports(nil)) pageHas(t, "DMARC reports", out, `quiet`, `
None yet
`, - `publish MX for mail.example.org on this server`, `No reports yet.`, `0 kept · 0 parse failures`) + `publish MX for mail.example.org pointing at this server`, `No reports yet.`, `0 kept · 0 parse failures`) pageLacks(t, "DMARC reports", out, ``) one := NewDMARCHub(admin(), IngestInput{OK: true, Last: time.Now(), KeptThisWeek: 1, ParseFailures: 1})