The ordering problem
How spam filtering survives encryption
This is the question that catches most encrypted-mail providers out, so it is worth
stating the answer directly: filtering runs before the encryption boundary,
not after it.
Inbound mail is scored by Rspamd at the gateway, in memory, at the moment it arrives —
DNS blocklists, SPF and DKIM results, Bayesian scoring, URL reputation. Only mail that
passes is then sealed to your key and written to disk. Nothing ever scans ciphertext at
rest, because nothing can.
The consequence, stated plainly: for the few hundred milliseconds a message is being
scored at the gateway, it exists in memory in the clear. That is unavoidable for any
provider that filters spam at all. What matters is that it is never written in
the clear and never leaves that process readable.
How outbound deliverability works →