Security and GDPR
Where your data lives and who can reach it matters as much as the encryption on top of it. This page covers how we store mail, how passwords and signing work, and what actually happens when you delete an account.
1. Data custody & KMS encryption
Mail bodies, attachments and database records are stored solely on dedicated nodes we operate in Warsaw, Poland (EU), and no third-party mail storage provider holds your correspondence at rest.
- KMS encryption at rest (live) vs. volume encryption (planned). Customer PII, recovery codes, TOTP secrets and DKIM private keys are encrypted today with AES-256-GCM through our Go KMS enclave, bound to their table/row context via AAD, with master keys held only in volatile RAM. Message bodies live in isolated Maildir volumes on dedicated Warsaw disks; full-disk LUKS encryption for Maildir and database volumes is planned prior to public launch.
- Post-quantum KMS transport. API and worker clients negotiate sessions with the KMS enclave over an X25519 + ML-KEM-1024 hybrid key exchange protected by Linux SO_PEERCRED UID checks.
- Tenant isolation. PostgreSQL row-level security isolates every tenant row, and address lookups rely on keyed HMAC blind indexes.
- Isolated ingress & web boundaries. The Mail & Data node has no public IP and isn't directly reachable; inbound mail arrives only through our Warsaw WireGuard edge, while webmail and console traffic arrive through Cloudflare Tunnels guarded by Anubis proof-of-work checks.
2. Authentication, App Passwords & Abuse Protection
No MD5, no SHA-1 passwords, and no persistent cleartext credentials.
- Argon2id & scoped App Passwords. Account and primary mailbox passwords use Argon2id. Third-party IMAP/SMTP clients can use per-mailbox App Passwords (mlap_…) stored as SHA-256 digests with expiry dates and individual instant revocation.
- TOTP 2FA, recovery codes & re-authentication. Accounts support TOTP two-factor authentication, single-use encrypted recovery codes (with remaining-count reporting and step-up regeneration), escalating password lockout, and mandatory step-up or password re-authentication for destructive actions.
- Session family controls. Refresh tokens live in HttpOnly SameSite=Strict cookies and rotate with reuse detection. The console identifies your current device session and lets you revoke individual devices or sign out all other sessions at once.
- Abuse & spam gating. Automated per-mailbox rate limits, DNSBL + FastText AI + neural Rspamd inspection, and Stripe Identity verification holds on anomalous outbound bursts keep reputation clean across all tenants.
- TLS 1.2+ & DNSSEC DANE/ARC. Connections require TLS 1.2+, outbound SMTP enforces DANE with validating DNSSEC via Unbound, and outbound mail is DKIM-signed (2048-bit RSA) and ARC-sealed.
3. Deleting an account (GDPR)
Deletion is self-service. When you request it, here's what actually happens:
- 30-day grace period. The account and its mailboxes are suspended immediately and a purge is scheduled 30 days out. You can cancel the deletion until then.
- Lease-guarded purge. After the grace period, a worker runs a lease-guarded, multi-step job that removes the database records and the Maildir on disk.
- Audit record. Audit rows are kept for legal defence with the IP address removed, so there is a record that the deletion happened without keeping the mail itself.
4. Subprocessors & third-party transit
Email storage and databases stay on our servers in Warsaw, but the control web surface and billing rely on three external processors:
| Processor | Role | Data scope |
|---|---|---|
| Cloudflare | DNS, WAF, Pages, Zero Trust Tunnels | Terminates TLS for mailed.pl, app.mailed.pl and webmail.mailed.pl in transit before tunnelling traffic to Warsaw. SMTP/IMAP bypass Cloudflare and terminate at mail.mailed.pl. |
| Stripe | Subscription billing & optional Identity verification | Payment details, invoices, and optional KYC checks triggered on anomalous outbound bursts. Stores no email content. |
| Web3Forms | Closed-beta request form delivery (temporary) | Handles submissions from the marketing site invite modal during closed beta. You can bypass it completely by emailing beta@mailed.pl directly. |
GDPR & DPA: The deletion workflow above is designed around the GDPR (Regulation (EU) 2016/679). A GDPR Data Processing Agreement (DPA) is available for business customers via beta@mailed.pl.