From 1f44e4038296935d0636c2292177eb401c8603f1 Mon Sep 17 00:00:00 2001 From: Mix Date: Mon, 12 Oct 2026 08:42:16 +0300 Subject: [PATCH] inbound-antispam-panel: the filter reads its signing key for every message The routine kept the key after its first read. SelfPost makes a new key when the file is lost or damaged, or a backup brings back another, and rspamd would then have gone on signing with the old one - every verdict unrecorded - until someone restarted the sidecar. The file is one short line; reading it per message costs nothing worth keeping a copy for. The guide says what never needs doing: nothing of rspamd's is cleared after a change of the lists or the key; a restart is for a change of its own configuration only. Prompted by the owner's question whether rspamd's cache needs clearing (2026-10-12). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++-- deploy/antispam/rspamd/milter_headers.conf | 16 +++++++++------- docs/guide.md | 7 +++++-- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ab41b3..46ceb3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,8 +96,8 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); version key SelfPost creates in `data/antispam/filter.key` - and the inbound log shows a verdict only next to a signature that fits. Nothing to configure, but the sidecar needs the new `antispam/rspamd/milter_headers.conf` and a - restart after SelfPost's first start; until then accepted mail is logged - as *selfpost*, with no verdict. + restart to read it; until then accepted mail is logged as *selfpost*, with + no verdict. - A full backup carries the inbound log, the filter lists and their files under `data/antispam/`. It does not carry the `antispam/` directory with the compose fragment and the rspamd configuration - copy that from diff --git a/deploy/antispam/rspamd/milter_headers.conf b/deploy/antispam/rspamd/milter_headers.conf index 6dc2df6..843bd2e 100644 --- a/deploy/antispam/rspamd/milter_headers.conf +++ b/deploy/antispam/rspamd/milter_headers.conf @@ -21,15 +21,17 @@ use = ["x-spamd-result", "x-rspamd-action", "selfpost-signature"]; custom { selfpost-signature = <