pingferry

Security, Architecture & Compliance

Designed so you don't have to take our word for it.

Every security boundary is enforced by Microsoft Exchange Online, verified by automated tests, or observable directly in your tenant. We deliver your mail — we never read or save it.

Exchange RBAC isolation proof Verified
$ pingferry m365-test --tenant yourcompany --to ops@yourcompany.com --as ceo@yourcompany.com
-> Auth: PS256 X.509 cert (no client secret)
-> POST /v1.0/users/ceo@yourcompany.com/sendMail
<- 403 ErrorAccessDenied (refused by Exchange)

$ pingferry m365-test --tenant yourcompany --to ops@yourcompany.com --as alerts@yourcompany.com
-> POST /v1.0/users/alerts@yourcompany.com/sendMail
<- 202 Accepted (single scoped mailbox)

01 · Microsoft 365 boundary

Least privilege enforced inside your own Exchange Online

Standard Entra ID Mail.Send grants allow sending as every mailbox in the organization. pingferry refuses Entra API grants completely — permission comes strictly from Exchange RBAC for Applications scoped to one unlicensed shared mailbox.

ControlHow it is enforced
Single-mailbox send scopeEnforced by Microsoft Exchange Online (New-ManagementScope + Application Mail.Send). Even if pingferry had a bug, Microsoft rejects sending as any other user.
Verifiable negative testOur Exchange RBAC setup script and pingferry m365-test --as ceo@company.com prove Exchange returns ErrorAccessDenied for every other mailbox.
Zero read accessNo Mail.Read, no User.Read, no Directory scopes. pingferry cannot read, search, or delete mail — not even in alerts@.
Certificate-only Entra loginPS256 JWT client assertion with x5t#S256. Per-tenant keypair generated on the server; private keys are passed via systemd LoadCredential and never leave the host.
Revocation in your handsTurn off sign-in for the pingferry app in Entra, or delete it, and pingferry is locked out at its next sign-in. Removing only the Exchange role takes up to 2 hours.

02 · Data handling

SMTP intake & zero-storage mail flow

Encryption & device authentication

  • No password in cleartext: AUTH is hidden until TLS is active; plaintext attempts get 523 TLS is required.
  • TLS 1.2+ by default on port 587 (STARTTLS) and port 465 (SMTPS).
  • argon2id password hashes only, with constant-work verification to prevent username timing leaks.
  • Per-IP auth rate limiting and optional per-tenant recipient domain allowlists (allowed_rcpt_domains).

Never saved & metadata-only logs

  • Passes straight through: We deliver your mail. We don't read it. Content is never saved to disk and leaves as soon as Graph returns 202 Accepted.
  • No disk spool: Brief Graph 429/5xx blips retry transiently without saving messages; persistent failures return SMTP 4xx.
  • Metadata-only logs: Device ID, timestamp, source IP, TLS version, recipient domain (never full address), size, and Graph status code.
  • Isolated web plane: pingferry-web runs separately from the SMTP bridge.

03 · Infrastructure & GDPR

Hosted in the EU & Art. 28 AVV

Hosted in the EU

Runs on Hetzner Cloud servers in the EU.

Changes without a restart

Adding tenants or rotating device credentials uses atomic SIGHUP reloads so active SMTP sessions and heartbeat timers stay intact.

GDPR & Art. 28 AVV

Processing in the EU, one sub-processor (Hetzner Online GmbH), and a published AVV / DPA that is part of every contract.

Review every step before you start

The setup guide, the setup script and the AVV / DPA are public. Check them with your security team, then try pingferry on one tenant.