Launch architecture
Mailed separates public mail ingress, mailbox/database storage, cryptographic key custody & control APIs, and web interfaces onto four dedicated nodes in Warsaw, Poland, linked over a private WireGuard mesh and Cloudflare Zero Trust Tunnels.
The four server roles
1. Public Edge
Reachable publicly at mail.mailed.pl. Runs only nftables and WireGuard (no Docker, no storage). Public SMTP (25/465/587) and IMAP (143/993) are forwarded via DNAT without SNAT so the real client IP reaches Postfix and Rspamd. Outbound SMTP leaves via the edge IP with strict egress filtering.
Public mail gateway · 0 stored bytes
2. Mail & Data Node
Has no public IP and isn't directly reachable from the open internet; mail arrives exclusively through the WireGuard edge. Runs Postfix, Dovecot (IMAPS, LMTP, ManageSieve), Rspamd, ClamAV, Olefy macro inspection, Unbound validating DNSSEC resolver, PostgreSQL 16 (role-split with RLS), Redis, a node-local KMS and Maildir purge/DKIM worker.
Private mesh only · No public IP
3. Control Plane Node
Runs the Hono REST API behind HAProxy and an outbound-only Cloudflare Tunnel (api.mailed.pl, mta-sts.mailed.pl), the Go ML-KEM-1024 KMS enclave, billing & Stripe Identity webhooks, notification/plan workers, and Prometheus / Grafana observability. Has zero Maildir mounts and never touches email bodies.
Control API + KMS · No Maildir access
4. Web & Portal Node
Serves the customer console (app.mailed.pl) and hardened Roundcube 1.7.7 webmail (webmail.mailed.pl) behind an Anubis proof-of-work shield and outbound Cloudflare Tunnel. Webmail communicates with Dovecot/Postfix exclusively over WireGuard TLS with no direct database or Redis access.
Anubis PoW shielded · Zero DB access
Honest sender IPs & multi-layer spam defence
Most reverse proxies rewrite the source IP of every connection they forward, forcing spam filters to evaluate the proxy address instead of the sender. Because the edge forwards inbound mail via DNAT without SNAT, Postfix and Rspamd always see the real sending IP.
Before a message reaches your inbox, it passes postscreen DNSBL greeting checks, a local validating Unbound resolver checking public PBL/RBL/URIBL zones (Spamhaus ZEN/DBL, Surriel PSBL, SpamCop, Mailspike, SURBL), ClamAV & Olefy attachment scanning, a custom quantized FastText classification model, and Rspamd's online neural network. Outbound mail is rate-limited per mailbox by plan tier, DKIM-signed (2048-bit RSA), and ARC-sealed with DANE/DNSSEC opportunistic TLS verification.
Isolation & least privilege
Key security boundaries across nodes:
- No direct public exposure on core nodes. Mail & Data and Control Plane nodes have no public IP addresses and cannot be reached directly from the open internet; inbound mail is forwarded solely through the Warsaw edge via DNAT, and admin/API traffic arrives over authenticated WireGuard tunnels and Cloudflare Access.
- Hybrid post-quantum KMS. Customer PII and DKIM private keys are encrypted with AES-256-GCM through a distroless Go KMS over an X25519 + ML-KEM-1024 hybrid channel with kernel SO_PEERCRED UID enforcement. Master keys reside solely in volatile RAM.
- Tenant isolation. PostgreSQL row-level security (keyed to app.customer_id) and column-split roles separate customer API traffic from Postfix/Dovecot lookups; address searches use salted HMAC blind indexes.
- Zero-content control plane. API workers that manage DNS, billing, and notifications never mount mailbox Maildir volumes; only the isolated Mail & Data worker touches Maildir directories.
Jurisdiction & GDPR
Mailed is engineered for Polish law and the GDPR (RODO). All mailboxes, databases, backups and signing keys are stored on dedicated nodes in Warsaw, Poland. See security, subprocessors and GDPR for third-party transit disclosures, KMS encryption, 2FA/step-up auth, App Passwords, and 30-day deletion.