mailrs-shield 1.0.4

SMTP anti-spam primitives: DNS blocklist (DNSBL) queries, greylisting policy with optional Redis store, and PTR / forward-confirmed reverse DNS (FCrDNS) checks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# mailrs-shield performance budgets

Enforced by `tests/perf_gate.rs`. Run `cargo test -p mailrs-shield --test perf_gate`.

| Path | Budget | Observed P95 (dev) | Headroom |
| --- | ---: | ---: | ---: |
| `reverse_ipv4` | 10 µs | ~100 ns | ~100× |
| `interpret_spamhaus` | 10 µs | ~50 ns | ~200× |
| `evaluate_triplet` (retry case) | 10 µs | ~50 ns | ~200× |
| `triplet_key` | 50 µs | ~500 ns | ~100× |
| `ptr_score_from_names` (match) | 20 µs | ~200 ns | ~100× |

Live DNSBL / PTR lookups are not gated — those are network-bound and
their cost lives outside the in-process pipeline.

Methodology + re-measurement protocol identical to `crates/jmap/BUDGETS.md`.