SpamFeedback downloads

Testing, compatibility and release

Evidence for this build

Development verification on 22 November 2026:

  • OPM installed through OFORK 12.0.3's native package manager.
  • 19 HTTP checks cover the received-email screen, action registration, original SPAM-tag confirmation, false-positive correction, HTML escaping, POST and CSRF enforcement, explicit confirmation, stale forms, and refusal of outgoing/missing-source/internal/cross-ticket articles.
  • 12 integration checks exercise OFORK → verified TLS → gateway → a local learner test double, byte-identical original EML, ham correction, whitelist/blacklist/removal, normal-agent permission denial, and pending status during a gateway outage.
  • Python unit tests cover duplicate IDs, conflicting payloads, corrections, stale sender revisions, policy publication recovery, unambiguous addresses, classifier disagreement and failure states.
  • 14 standalone Perl assertions cover the rule gate; 24 assertions also pass against the actual PMG 9.1.4 classes, including replacing forged decision headers and ignoring baseline score 100 when there is no agreement.
  • An isolated real Rspamd 3.12.1/Valkey test accepts spam, recognises its duplicate, reclassifies as ham, recognises that duplicate, and reclassifies back to spam. It uses separate ephemeral daemons, ports and storage. No production corpus is seeded with synthetic mail.

These are development and isolated integration checks. They do not claim a completed production mail cutover, native antivirus acceptance, SMTP delivery/load testing, Znuny support, or automatic AI training. Test output and site-specific deployment evidence belong outside the portable release.

Local tests

python3 -m unittest discover -s tests -v
perl tests/pmg-gate.t

The Python tests use the standard library. The standalone Perl test stubs only the native PMG boundary. On a lab PMG with the installed Perl classes:

perl tests/pmg-native-gate.pl

This executes an isolated process with synthetic MIME objects and preset scan metadata. It does not change the running mail filter or send a message.

tests/rspamd-isolated.py runs as root on a lab host with rspamd, Valkey/Redis and the _rspamd account. It refuses occupied ports 19333, 19334 and 16379, creates temporary storage and stops its own processes in a finally block. Its Bayesian minimum is one only to exercise the disposable test corpus. Do not copy that minimum into production. After an interrupted test, inspect those specific processes/ports before retrying; never kill the normal mail-filter services.

OFORK HTTP and reporting tests

Use an isolated OFORK instance with outgoing mail disabled. The scripts assume /opt/ofork, an ofork system account, the users and admin groups, and a Raw queue. Adapt these harness assumptions for another development layout; the add-on itself uses OFORK's configured Home.

Run tests/dev-setup.pl as the application user and redirect stdout to a private file mode 0600. It creates synthetic tickets, a temporary non-admin test account, and test sessions. Its JSON contains session credentials and must not be printed, committed or distributed. It temporarily disables email-address validation only in that process for its .example.org fixtures.

Run tests/dev-http.py with that private JSON on stdin. Run tests/dev-integration.py PRIVATE_JSON as root for the local TLS test. The latter verifies that mail is disabled, creates an ephemeral certificate and token, runs a real feedback gateway and mock controller on loopback, installs a temporary development-only configuration override, then removes the override and stops the processes. Certificate validation is enabled between OFORK and the gateway. Only the harness's loopback Apache requests accept the dev web server's test certificate.

Revoke test sessions and invalidate the synthetic test account afterwards. Keep synthetic tickets as development evidence if desired. If interrupted, remove only this harness's temporary configuration after inspecting its state and stop only its processes. No test should run against production OFORK or the production Rspamd training database.

Porting to Znuny / OTOBO

This release intentionally declares only OFORK 12. Changing the framework version in the manifest is not a compatibility test. A port must verify:

  • Native package/configuration root tags, framework dependency and package lifecycle.
  • Article-action registration, metadata and backend methods (ArticleList, ArticleGet, ArticlePlain).
  • Ticket rw, action ACLs, group membership and server-side sender-list restrictions.
  • Session challenge-token handling, POST enforcement, templates and HTML escaping.
  • Application Home, filesystem locking, token-file permissions and HTTPS behaviour.
  • Install, upgrade and uninstall without deleting retained human-feedback history.

The gateway uses a documented HTTP protocol and can be reused without porting its implementation. A different helpdesk frontend must preserve original message bytes, stable event IDs, explicit sender scope and permission checks. Run equivalent acceptance tests on the exact target version before advertising support.

Release hygiene

build.py uses an allowlist of directories/files, fixed archive timestamps and stable XML ordering. Repeating a build from the same tree produces identical outputs. SHA256SUMS covers the OPM and source tarball; the source tarball deliberately does not include its own checksum file.

Before publishing, inspect the archive file list and scan both source and decoded OPM contents for live endpoints, IP addresses, tokens, private keys, correspondence, local session files and databases. Example domains and loopback addresses are expected. Public copyright/contact details are intentional attribution. Generate credentials after installation, never during a build. A source archive is portable; the enclosing infrastructure repository is not a public release artifact.

The code is GPL-3.0-or-later; retain the included licence and authorship. OFORK, PMG, Rspamd, Znuny and OTOBO are their respective projects. This package is an independent add-on and does not imply endorsement or a vendor support guarantee.