Run isolated spam filter checks on mail receivers #237

Merged
parkel merged 1 commits from feature/isolated-mail-filter-check into main 2026-12-02 00:49:19 +01:00
Owner

Closes #233

New features

  • Run an ordinary synthetic message and a GTUBE sample against the SpamAssassin rules on the local or linked mail receiver configured for a managed domain.
  • Show the receiver, expected and observed decisions, scores, thresholds, and matching rules. Refresh queued and running checks in the panel.

Security

  • Require a server administrator with verified MFA. Keep shared mail receivers scoped by domain and keep temporary reports visible only to the requesting operator.
  • Run the two fixed samples inside unprivileged transient services, with a read-only system, private temporary storage, blocked network syscalls, and disabled Bayesian learning. The samples never enter Postfix or reach a mailbox.

Documentation

  • Explain the distinction between the direct SpamAssassin check and the separate end-to-end SMTP procedure with a designated test mailbox. Rspamd-only signing nodes continue to use reported header analysis.

Verification

  • Ubuntu 26.04 VM: ran both samples through the real Coulobre mail receiver socket and systemd service. The ordinary sample scored 0.0 (clean), and GTUBE scored 1000.0 and triggered its rule. A separate probe confirmed that the service was unprivileged, could not create Unix or IP sockets, and could write only to its temporary workspace.
  • Ran both SpamAssassin samples in networkless Ubuntu 26.04 and Debian 13 containers.
  • 655 Django tests ran, with one environment-dependent skip. Ruff, migration consistency, and Git whitespace checks passed.

Upgrade notes

  • Includes the MailFilterCheck migration. Linked receivers must match the panel release for the new operation.
Closes #233 ## New features - Run an ordinary synthetic message and a GTUBE sample against the SpamAssassin rules on the local or linked mail receiver configured for a managed domain. - Show the receiver, expected and observed decisions, scores, thresholds, and matching rules. Refresh queued and running checks in the panel. ## Security - Require a server administrator with verified MFA. Keep shared mail receivers scoped by domain and keep temporary reports visible only to the requesting operator. - Run the two fixed samples inside unprivileged transient services, with a read-only system, private temporary storage, blocked network syscalls, and disabled Bayesian learning. The samples never enter Postfix or reach a mailbox. ## Documentation - Explain the distinction between the direct SpamAssassin check and the separate end-to-end SMTP procedure with a designated test mailbox. Rspamd-only signing nodes continue to use reported header analysis. ## Verification - Ubuntu 26.04 VM: ran both samples through the real Coulobre mail receiver socket and systemd service. The ordinary sample scored 0.0 (clean), and GTUBE scored 1000.0 and triggered its rule. A separate probe confirmed that the service was unprivileged, could not create Unix or IP sockets, and could write only to its temporary workspace. - Ran both SpamAssassin samples in networkless Ubuntu 26.04 and Debian 13 containers. - 655 Django tests ran, with one environment-dependent skip. Ruff, migration consistency, and Git whitespace checks passed. ## Upgrade notes - Includes the MailFilterCheck migration. Linked receivers must match the panel release for the new operation.
parkel added this to the v1.2.0 - WordPress and mail diagnostics milestone 2026-12-02 00:48:37 +01:00
parkel added 1 commit 2026-12-02 00:48:37 +01:00
Run isolated spam filter checks on mail receivers
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
042406b2aa
parkel merged commit ff3e39a2e1 into main 2026-12-02 00:49:19 +01:00
parkel deleted branch feature/isolated-mail-filter-check 2026-12-02 00:49:19 +01:00
Sign in to join this conversation.