Add countersend test tool and project CLAUDE.md
countersend send plays mailqueuer against /in and /out, and countersend receive writes each notification to a file in place of the web app. send refuses a run that would notify unless given --allow-notify. The Makefile builds it in build, freebsd and build-linux. docs/testing-with-countersend.md has the steps. Also add CLAUDE.md and gitignore .claude/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
54f9626121
commit
d465739f6d
@@ -233,6 +233,10 @@ make test-contrib # shell test for contrib/pull-domains.sh (needs tinycdb cdb +
|
||||
make freebsd # static FreeBSD amd64 binaries for the Ansible role
|
||||
```
|
||||
|
||||
To test the daemon on its server, `countersend send` posts to `/in` and `/out` as
|
||||
mailqueuer will, and `countersend receive` stores each notification as a file in place of
|
||||
the web app. Steps are in `docs/testing-with-countersend.md`.
|
||||
|
||||
`test_files/` is gitignored because the CDB holds real customer domains, so on
|
||||
a fresh clone the tests fail until you copy `rspamd_domains_db` from an agent
|
||||
host (`/usr/local/etc/agent/build/rspamd/`) to `test_files/rspamd_domains_db.cdb`.
|
||||
|
||||
Reference in New Issue
Block a user