# An open source cold email and warmup platform: what self-hosting actually gives you

> ContextOut is Apache 2.0 cold email plus warmup you can self-host with one command. What running it yourself means for servers, workers and your data, and when the hosted cloud is better.

Published by ContextOut team on 2026-07-04, updated 2026-12-01. https://contextout.si/blog/open-source-cold-email-platform/

Self-hosting ContextOut gives you a full cold email and warmup stack you run on your own servers, under Apache 2.0, with mailbox credentials and message content sealed with keys you control. What it can't give you is the shared warmup pool on ContextOut Cloud. A pool needs mailboxes from many organizations talking to each other, and a self-hosted instance pairs only the mailboxes it runs, even when it hosts several organizations.

That trade is the point of this post. Here's what you own, what you have to run yourself, and where ContextOut Cloud does something a single self-hosted instance can't.

## Why an open source cold email tool is worth wanting

Most cold email tools are closed SaaS: your mailbox passwords, your prospect lists, and your reply content live on someone else's servers, and you find out how sending works when it breaks. An [open source cold email platform](https://github.com/suresh213/contextout) changes what you can inspect and control. You can read how the scheduler paces sends, how tokens get validated, and what gets encrypted before it hits disk.

Three concrete things you get that a closed tool won't give you:

- The sending logic is auditable. When a mailbox stops sending, you can read the guardrail that stopped it instead of filing a support ticket.
- Your data stays on infrastructure you picked. No third party holds your mailbox OAuth tokens or the bodies of your replies.
- No per-seat or per-mailbox billing on the software itself. You pay for servers, not a license.

If your only goal is to send today with zero ops, that's a real reason to use the hosted cloud. If you care about controlling where credentials live and how sending behaves, running the code yourself is the way to get both.

## What you run when you self-host ContextOut

ContextOut isn't one binary. It's six services, and the installer runs all of them for you with one command: `curl -fsSL https://contextout.si/install.sh | sh`. It needs Docker and no cloud account.

| Service | Language | Job |
| --- | --- | --- |
| Backend | Go | API and business logic, the control plane |
| Consumer | Go | reads events, updates platform state |
| Workers | Go | execute sends and mailbox sync, one per machine |
| Tracking | Rust | serves open pixels and click redirects |
| Realtime | Elixir | websocket fanout to the dashboard |
| Dashboard | React | the in-product UI |

Behind those sit Postgres, Redis and NATS by default (Kafka is optional), with a local key for encryption and files on disk for attachments. Workers can run on more machines as you grow: each mailbox is assigned to one worker, and a worker's planned volume is the sum of its mailboxes' daily caps. Losing a machine pauses the mailboxes on it, so how much of your sending one failure can stop depends on how many machines you run and how you spread mailboxes across them. That sizing is yours to decide.

The dashboard, tracking and realtime services are the same code that runs the hosted product. Nothing is stubbed for the open source build.

## The parts self-hosting makes you own: servers, domains and monitoring

This is the honest part. Running the code is the easy part. The rest is the infrastructure and the judgment around it.

You own the servers. A worker never talks to a recipient's mail server: it signs in to each mailbox's own provider (Google, Microsoft or your IMAP/SMTP host), and that provider delivers the mail from its own network. The recipient's server receives the mail from the provider, and the provider's reputation and your domain's carry most of the weight, though some providers record the submitting address in a Received header. What the provider does see is where the sign-in comes from, so keep each mailbox on the same machine; moving it can trigger a security check.

You own the domains and their auth. SPF has a 10 DNS-lookup limit, and going over it breaks SPF. DMARC needs SPF or DKIM to align with the visible From domain, so both can pass authentication while DMARC alignment still fails. Google's bulk-sender guidance requires SPF, DKIM, and DMARC with alignment plus one-click unsubscribe for bulk mail. Getting that right is on you. Our [SPF, DKIM, DMARC guide](https://docs.contextout.si/learn/spf-dkim-dmarc/) and the [alignment post](/blog/spf-dkim-dmarc-alignment-cold-email/) walk through the failure modes.

You own deliverability monitoring. ContextOut runs its own [open and click tracking](/analytics/) and reports the signals, but you decide what to do when complaint rate climbs toward Amazon SES's 0.1% review line or Google's 0.10% reported-spam threshold. The product's defaults help: a 50 emails/mailbox/day cold cap (adjustable; the dashboard warns above 100), a minimum 600 seconds between sends from one mailbox, and warmup that starts at 10/day and ramps +1/day to a 40/day ceiling. A brand-new mailbox typically takes 3 to 6 weeks to reach a stable warmed state. Those numbers ship in the code. Whether your mailboxes and domains can sustain them is your call. See [how many mailboxes and domains you need](/blog/how-many-mailboxes-and-domains-cold-email/) and [budgets, not server settings](/blog/mailbox-budgets-not-server-settings/).

> **The shared warmup pool lives on the cloud**
>
> A warmup pool works by pairing your mailboxes with other participants so providers see two-way conversation. A self-hosted instance pairs only the mailboxes it runs, even when it hosts several organizations. With few mailboxes the same small group repeats, which providers can learn to recognize; a larger instance rotates partners, but it still lacks the cross-organization network the cloud pool has. The pool mechanics (partner selection, recent partners excluded, verification tokens, health-band quarantine) are in the code, but the network effect needs many organizations. So the pool runs on ContextOut Cloud, for mailboxes connected to a hosted workspace. Self-hosted instances do not link to it. Warmup on a self-hosted instance still runs between its own mailboxes; it is just less effective than a pool that spans many organizations.

## How the encryption model keeps credentials and message content private

The design assumption is that mailbox passwords, OAuth tokens, and message content are secrets, and the storage layer should never see them in the clear.

The chain works like this. A root key is the root of trust: a local master key by default on a self-host, or AWS KMS if you configure it. Each organization gets its own data encryption key (a DEK), wrapped by that root key. Sensitive fields are sealed with AES-256-GCM using that DEK, and only the encrypted DEK blob is stored. The plaintext DEK is cached with a TTL, then dropped. Keys are per-organization, never per-user, so offboarding one person never orphans a mailbox the whole org depends on.

Two properties matter for self-hosting. First, workers never open a Postgres connection. When a worker needs a DEK to decrypt a mailbox credential, it fetches it over the backend's internal HTTP API, so the SQL blast radius stays on the control plane, not on the many disposable machines doing the sending. Second, because you hold the root key, no one without it can decrypt a stored field. That's the concrete meaning of your credentials staying private: it's enforced by key custody, not a privacy policy. More on the model in [what we do with your data](/trust/).

## Self-host vs ContextOut Cloud: an honest decision table

| Question | Self-host | ContextOut Cloud |
| --- | --- | --- |
| Who runs the six services? | You | ContextOut |
| Who owns the mailboxes and domains? | You | You |
| Who holds the root key? | You | ContextOut |
| Shared warmup pool? | No. Warmup only pairs your own mailboxes, and a self-hosted instance does not link to the cloud pool | Yes, cross-org pool |
| Deliverability monitoring? | You watch and react | Managed with the same thresholds |
| Best fit | You want full data custody and control, and can run infra | You want to send without operating servers |

Neither is strictly better. If you can run distributed infrastructure and you want your data and campaign credentials to stay on keys you hold, self-host: it is free and fully functional on its own, though its warmup only pairs your own mailboxes. Self-hosting suits experienced operators: ContextOut does not provide support for self-hosted instances, and help comes from the community on [Discord](https://dc.contextout.si). If you want the shared warmup pool, or sending plus warmup without operating any of it, ContextOut Cloud starts at $29 a month with unlimited mailboxes and warmup, and a 14-day trial needs no card. See the [pricing page](/pricing/).

## Where the code lives and what Apache 2.0 lets you do

The code is at [github.com/suresh213/contextout](https://github.com/suresh213/contextout) under Apache 2.0. That license lets you use it commercially, modify it, run it privately, and redistribute it, including as part of a product you sell. Apache 2.0 also includes an express patent grant from contributors, so you're not exposed to a contributor asserting a patent on the code they gave you. The main obligations are keeping the license and notices, and stating significant changes you make.

In practice, you can fork the scheduler to change how sends are paced, add a provider integration, or wire the tracking service into your own analytics, and ship the result. If you're building on the API rather than the source, start at the [developer docs](/developers/) and the [learn section](https://docs.contextout.si/learn/), which cover warmup, inbox placement, and reputation recovery.

A fair starting move: clone the repo, read `internal/scheduler` to see the 50/day cap and 600-second gap enforced in code, then decide whether you'd rather run that yourself or let the cloud run it for you. Either way, you've read the sending logic before you trusted it, which is the thing a closed tool never lets you do.
