Your clients’ domains, kept strictly apart.

Agencies trust Mailsonde with every client they send for. Here is exactly how that data is isolated, encrypted and retained — described as it is built, not as a promise.

Tenant isolation

One workspace can never read another’s domains, reports or alerts — enforced by the database itself.
Row-level security
Every tenant table has PostgreSQL row-level security enabled and forced, so even the application’s own database role can only see the workspace bound to the current transaction. Cross-tenant isolation is covered by automated tests that run on every change.
Least-privilege runtime
The web app, worker and MCP server connect with a role that cannot bypass row-level security. Schema changes run under a separate migration role.
Client viewers
A client you invite sees only their own client folder — never your other clients, billing or settings.

Secrets and access

How credentials, tokens and payments are handled.
Encrypted credentials
Slack and Telegram tokens, Slack webhook URLs and Google Postmaster refresh tokens are encrypted with AES-256-GCM before they are stored, each with its own random IV and authentication tag.
Passwords
Hashed with scrypt and a per-user salt, compared in constant time. Google sign-in is available so you never need a password at all.
API tokens
MCP tokens are shown once at creation. Only a SHA-256 hash and a short prefix are kept, and any token can be revoked instantly.
Payments
Card data never touches Mailsonde. Paddle is the Merchant of Record; its webhooks are verified with HMAC-SHA256 against the raw body inside a 5-second replay window, and plans are only granted from those verified webhooks.

Data we hold

Only what monitoring needs, for as long as your plan says.
What we read
Public DNS records, public blacklist answers, the DMARC aggregate reports inboxes send to your Mailsonde reporting address, and — only if you connect it — read-only Google Postmaster Tools data.
Forensic reports
Off by default and opt-in per domain under a data processing agreement. Message bodies and attachments are discarded on arrival, recipient local-parts are masked, and links are defanged.
Retention
DMARC data is kept for your plan’s window and then deleted: 30 days on trial, 90 on Starter, 180 on Agency, 365 on Scale. Forensic events expire after 14–30 days.
AI agents
The MCP server exposes read-only tools, requires OAuth 2.1 tokens bound to Mailsonde as their audience (or a revocable workspace token), and logs every call with its latency and outcome.

Retention by plan

DMARC report data older than the plan’s window is deleted, not archived.
DataTrialStarterAgencyScale
DMARC aggregate data30 days90 days180 days365 days
Forensic (RUF) eventsoffoff14 days30 days

Edge and network

How data enters, which hosts can reach what, and how hostile strings are handled.
Report intake
DMARC reports arrive at a Cloudflare Email Worker that streams each message to R2 object storage without holding it in memory, then queues only a pointer. Messages over 25 MiB are rejected at the edge.
Custom hostnames
Client portals on your own subdomain use Cloudflare for SaaS: Cloudflare validates the CNAME and issues and renews the TLS certificate. Those hostnames can only reach the read-only portal; dashboard, API and internal routes return 404.
Blacklist queries
DNSBL lookups run from the data plane through a private Unbound resolver, never through public resolvers, and each list must pass an RFC 5782 canary before its answers count.
Untrusted strings
DNS records and report fields are attacker-controllable text. They are escaped for Telegram MarkdownV2 and Slack, and sanitized before any MCP tool returns them to an agent.

Architecture and data flow

Three planes, one database. Checks that need port 25, UDP or a private resolver run only on the dedicated data plane; everything lands in PostgreSQL through workspace-scoped transactions.

Cloudflare edge

No port 25, no UDP, no buffering

  • Email Worker

    streams RUA/RUF MIME ≤ 25 MiB to R2

  • R2 object storage

    raw reports, read once by the worker

  • Custom hostnames

    TLS for client portals on your subdomain

Control plane

What you and your agents talk to

  • Web app & API

    dashboard, Paddle webhooks, Slack actions

  • MCP server

    stateless, OAuth 2.1, read-only tools

  • Job queue

    BullMQ on Redis, pointers only

Data plane (dedicated VPS)

Owns every outbound check

  • DNS & RFC workers

    SPF, DKIM, DMARCbis, MTA-STS, drift

  • DNSBL scanner

    local Unbound resolver, canary-verified

  • SMTP prober

    port 25 STARTTLS and certificate checks

  • Report & alert workers

    RUA parse, RUF redaction, Postmaster v2, PDF

PostgreSQL behind PgBouncer

ENABLE + FORCE ROW LEVEL SECURITY

Every service connects as app_runtime_role (NOBYPASSRLS). Each request sets the workspace for its own transaction, so a query without it returns nothing rather than another agency’s rows. Views run with security_invoker.

Outbound alerts leave from the data plane to Slack and Telegram.

Security questions

More in the full FAQ, or ask support.

How are workspaces kept apart?

Every tenant table has PostgreSQL row-level security enabled and forced, and the application connects with a role that cannot bypass it. Each request runs in a transaction bound to one workspace; cross-tenant isolation tests run on every change.

How are Slack, Telegram and Google credentials stored?

Encrypted with AES-256-GCM, each with its own random IV and authentication tag, before they reach the database.

Do you store forensic (RUF) reports?

Only if you switch them on per domain, on Agency or Scale, under the data processing agreement. Message bodies and attachments are dropped on arrival, recipient local-parts are masked, links are defanged (hxxp://) and every event is deleted after 14 days on Agency or 30 on Scale.

How do agents authenticate?

With a workspace token (shown once, stored as a SHA-256 hash, revocable) or an OAuth 2.1 access token whose audience is bound to the Mailsonde MCP resource. Tokens for any other audience are rejected.

Can a malicious DNS record or report inject instructions into my agent?

DNS records and report fields are untrusted text. The MCP server sanitizes them before returning tool output, and the tool manifest is pinned by hash so tool descriptions cannot change silently.

Who processes payments and issues invoices?

Paddle.com is the Merchant of Record. It charges the card, collects VAT or sales tax and issues compliant invoices. Plans are granted only from Paddle webhooks verified with HMAC-SHA256, never from the checkout page.

Questions from your security review?

Send them to support with your questionnaire attached. The data processing agreement and subprocessor list are public.