CI triggered on both push to any branch and pull_request, so every branch
ran twice and main ran again after merge. Push is limited to main now, and
a concurrency group cancels superseded runs. publish gets a group too, but
never cancels - a half-published release leaves a manifest without its
binaries.
Adds a pre-push hook installer for fmt and clippy.
The webhook test subscribed every run and never cleaned up, so deliveries
from old subscriptions arrived with secrets the listener could not verify.
The inbound test grepped sentio's log for a generic success line, which
both missed its own async dispatch and passed on an earlier run's line.
It now waits for its own message id to reach the sink.
These were verified by hand while chasing the spam-scoring bug. Spot
checks rot, so they are assertions now: 19 checks, up from 13.
- GTUBE must score above 10. rspamd answered every request while scoring
every message -0.1, and nothing looked wrong; this is the assertion
that catches that class of fault.
- EICAR must be rejected in-band, which is the one scanner verdict
Sentio enforces itself.
- The webhook signature is recomputed over the raw delivered bytes. A
re-serialised body would verify even if the scheme were wrong, so the
check captures the request with its own listener.
- STARTTLS then AUTH, including that AUTH is absent before the upgrade -
credentials must never be solicited in cleartext. Skipped, not failed,
when no certificate is mounted; the skip path was tested by removing
the cert.
- The rate limiter and DNSBL cache must be writing to the KV store.
Also adds FRESHCLAM_CHECKS=24 so signatures refresh hourly rather than
daily; the image default of 1 can leave the scanner a day behind.
The harness only sent bodies, so nothing exercised the object store. A
20 kB attachment now goes in over SMTP and comes back out through the
API, compared by SHA-256 - an encoding slip or a truncated upload fails
instead of passing quietly. It also asserts the ClamAV scan_status on
the attachment row and that the raw message was archived.
Verified by hand first: MinIO gained two objects (the attachment and the
base64 raw EML), the bytes matched, and the archived message ends with
CRLF, which is the fix from the previous commit holding on a real MIME
message.
Sentio SMTP: self-hosted, multi-tenant email infrastructure in Rust.
Gives an AI agent its own real email address. Inbound mail arrives
parsed, authenticated and spam-scored as a webhook; replies go out
DKIM-signed over the same REST API. Full SMTP on both sides, with
DKIM/SPF/DMARC/ARC, MTA-STS, DANE and a three-tier anti-spam pipeline.
Apache-2.0.