RocksDB & Port 25 Tuning
SMTP Inbound Concurrency, Rate Limiting & Tarpit Delays
Protect VPS CPU and disk IOPS from credential-stuffing bots and brute-force relays using Stalwart tarpit delays and fail2ban-style throttle buckets.
2s Auth Tarpit · Per-IP Rate Buckets · Zero Brute-Force CPU Burn
Never Allow SMTP AUTH on Inbound Port 25
Port 25 exists strictly for unauthenticated server-to-server MX exchange. Disabling SMTP AUTH advertisement on port 25 and forcing clients onto implicit TLS port 465 slashes credential brute-force noise dramatically.
Per-Account Outbound Quotas Save IP Reputation
If one workstation gets phished, an uncapped submission user can fire 20,000 spam messages in five minutes and get your VPS IP blacklisted on Spamhaus. Per-account hourly rate limits stop blast radius immediately.
Measured Thresholds & Stalwart Configuration Parameters
| Throttle Rule | Recommended Threshold | Attack Vector Blocked |
|---|---|---|
| Failed Auth Tarpit | 2s-5s progressive delay | Slows distributed IMAP/SMTP password spray bots |
| Max Connections / IP | 10-20 simultaneous sockets | Prevents single botnet host from exhausting FD pool |
| Outbound User Quota | 250 msgs/hr per mailbox | Contains compromised employee password before IP burn |
| Unauthenticated Port 25 | Disable AUTH on TCP 25 | Forces submission logins strictly onto TLS ports 465/587 |