RocksDB & Port 25 Tuning
Why Disabling ClamAV Saves 1.4 GB RAM With Built-In Sieve
Quantify the 1.4+ GB resident RAM penalty of clamd signature databases compared to Stalwart built-in Bayes, DNSBL, and Sieve attachment rules.
45 MB Built-in Rust vs 1,480 MB ClamAV · 30x Lighter
The ClamAV Signature Reload Spike
Even when idle, clamd holds over 1.2 GB of virus signatures in RAM; during freshclam reloads it temporarily holds two copies in memory, spiking past 2.2 GB and crashing co-located services.
Blocking Dangerous Payloads With Zero-RAM Sieve Scripts
Use Stalwart built-in Sieve filters and attachment extension blocks (.exe, .scr, .iso, macro docs) alongside DNSBLs and strict DMARC/ARC checks to stop 99% of malicious attachments in 45 MB of Rust memory.
Measured Thresholds & Stalwart Configuration Parameters
| Antispam Layer | Resident RAM RSS | 2 GB / 4 GB VPS Impact |
|---|---|---|
| Built-in Rust Bayes + DMARC/SPF | ~45 MB RAM | Zero external process; fits 2 GB VPS cleanly |
| External Rspamd HTTP Milter | +380-420 MB RAM | Optional for complex fuzzy hash rules on 4+ GB |
| ClamAV Daemon (clamd) | +1,250-1,480 MB RAM | Triggers OOM kills on 2 GB nodes during DB reload |