Add operator mail diagnostics for spam and authentication #233

Closed
opened 2026-12-01 15:15:44 +01:00 by parkel · 0 comments
Owner

Goal

Add a mail diagnostics page for operators to explain why an incoming or outgoing message was accepted, flagged, deferred or rejected. Reuse the mail-domain DNS checks and delivery diagnostics from #75 and #111, and the spam filter integration from #62.

Acceptance criteria

  • Let an authorized operator select a local or linked Coulobre mail node and run an ordinary synthetic message and a GTUBE spam check on the applicable filter. Show the observed action and expected result, and distinguish a direct filter check from an end-to-end delivery probe.
  • For a submitted message or its headers, show the spam score, action and matching rules when available. Explain observed SPF, DKIM and DMARC results and whether SPF or DKIM aligns with the From domain. Distinguish results recorded by a trusted receiver, independent verification, and checks that lack the required message or SMTP data.
  • Link to the existing DNS checks for the relevant domain, including MX, PTR, SPF, DKIM and DMARC. Where the operating context permits, correlate the verdict with the node, Postfix queue ID and delivery or rejection reason.
  • Keep diagnostic scans read-only. Use synthetic data and a designated test mailbox for an optional delivery probe. Preserve production filter policy and training state.
  • Respect domain scope on shared mail nodes. Avoid retaining submitted messages, recording their contents in logs, or exposing unrelated customer traffic. Test missing headers, a clean message, GTUBE detection, and authentication pass and fail cases.

References

Follow-up after #236

The merged header analysis and journal correlation are read-only. Add a
separate filter check with two fixed synthetic messages (ordinary and
GTUBE). Use the configured local or linked mail receiver, and keep the
existing domain scope for panels sharing a receiver.

The documented incoming filter is SpamAssassin. Coulobre also ships a
Rspamd configuration for signing SMTP submission. Report the applicable
role before offering a filter check. Run synthetic scans with isolated
storage and no access to production training, scoring history, or delivery
services. Show expected and observed outcomes alongside the scan mode.
Verify the isolation and both outcomes on a test Ubuntu mail node before
releasing the feature. An end-to-end probe is a separate action with an
explicitly designated test mailbox.

## Goal Add a mail diagnostics page for operators to explain why an incoming or outgoing message was accepted, flagged, deferred or rejected. Reuse the mail-domain DNS checks and delivery diagnostics from #75 and #111, and the spam filter integration from #62. ## Acceptance criteria - Let an authorized operator select a local or linked Coulobre mail node and run an ordinary synthetic message and a GTUBE spam check on the applicable filter. Show the observed action and expected result, and distinguish a direct filter check from an end-to-end delivery probe. - For a submitted message or its headers, show the spam score, action and matching rules when available. Explain observed SPF, DKIM and DMARC results and whether SPF or DKIM aligns with the From domain. Distinguish results recorded by a trusted receiver, independent verification, and checks that lack the required message or SMTP data. - Link to the existing DNS checks for the relevant domain, including MX, PTR, SPF, DKIM and DMARC. Where the operating context permits, correlate the verdict with the node, Postfix queue ID and delivery or rejection reason. - Keep diagnostic scans read-only. Use synthetic data and a designated test mailbox for an optional delivery probe. Preserve production filter policy and training state. - Respect domain scope on shared mail nodes. Avoid retaining submitted messages, recording their contents in logs, or exposing unrelated customer traffic. Test missing headers, a clean message, GTUBE detection, and authentication pass and fail cases. ## References - [Apache SpamAssassin GTUBE](https://spamassassin.apache.org/gtube/) - [Rspamd filter tests](https://docs.rspamd.com/getting-started/first-setup/) ## Follow-up after #236 The merged header analysis and journal correlation are read-only. Add a separate filter check with two fixed synthetic messages (ordinary and GTUBE). Use the configured local or linked mail receiver, and keep the existing domain scope for panels sharing a receiver. The documented incoming filter is SpamAssassin. Coulobre also ships a Rspamd configuration for signing SMTP submission. Report the applicable role before offering a filter check. Run synthetic scans with isolated storage and no access to production training, scoring history, or delivery services. Show expected and observed outcomes alongside the scan mode. Verify the isolation and both outcomes on a test Ubuntu mail node before releasing the feature. An end-to-end probe is a separate action with an explicitly designated test mailbox.
parkel added the
kind
feature
area/mail
labels 2026-12-01 15:15:44 +01:00
parkel added this to the v1.2.0 - WordPress and mail diagnostics milestone 2026-12-02 00:21:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hippogrief/coulobre#233