Skip to main content
STALWART JMAPRELAY FOUNDRY // JMAP + IMAP + SMTP RUST MAIL SIZING STUDIO ROCKSDB + TANTIVY FTS | VULTR PORT 25 PTR | INTERSERVER STORAGE SLICE | 2026-10-29
StalwartMailVPS
StalwartMailVPS Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
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

Why Disabling ClamAV Saves 1.4 GB RAM With Built-In Sieve
Mail engineering baseline verified 2026-10-29 by JMAPRelay Foundry.

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 LayerResident RAM RSS2 GB / 4 GB VPS Impact
Built-in Rust Bayes + DMARC/SPF~45 MB RAMZero external process; fits 2 GB VPS cleanly
External Rspamd HTTP Milter+380-420 MB RAMOptional for complex fuzzy hash rules on 4+ GB
ClamAV Daemon (clamd)+1,250-1,480 MB RAMTriggers OOM kills on 2 GB nodes during DB reload
45 MB Built-in Rust vs 1,480 MB ClamAV · 30x Lighter Deploy Vultr NVMeInterServer Slice