Add rspamd, ClamAV and sentinel Valkey to the mail namespace #542
Reference in New Issue
Block a user
Delete Branch "benvin/mail-rspamd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The smarthost routes all mail through one rspamd: inbound that survived the edge gets the AI (LiteLLM Haiku) pass and is tagged for Stalwart's Junk filing; outbound from the lab and pods is DKIM-signed.
X-Spam,X-Spam-Status,X-Spamd-Result), reject only viruses, tempfail when ClamAV failsexternal_relay)volatile-ttlpassword_hash)Requires
password_hashin kvmail/default/rspamd-controller.local_addrsincludes all of198.18.0.0/16; withsign_local = trueany inbound mail whose connecting IP is in that range (DMZ gateways over WireGuard if the milter client IP is not forwarded) is DKIM-signed for a spoofedFrom: unkin.netand skips the gpt module → narrow to the smarthost/Stalwart source ranges only, or confirm the gateways forward the real client IP./datais empty, otherwise retry peers before falling back.--maxmemoryagainst a 512Mi limit (AOF rewrite forks) → OOMKill instead of bounded memory; set--maxmemory~384mb in start.sh.enable_password→ storerspamadm pwhashes in Vault.force_actionsonCLAM_VIRUS_FAIL, so mail passes unscanned when clamd is down → add a soft-reject rule.No findings.