DEV Community

developer
developer

Posted on Edited on

OutboundOS: Self‑Hosted Cold‑Email Engine That Beats $150/mo SaaS

🔗 Open-Source GitHub Repo: ansh1325/OutboundOS — self-hosted, MIT licensed.

Hook

If you’re paying $150 a month for a cold‑email and warm‑up service, you’re funding a black‑box you can’t tweak. OutboundOS lets you run the same workflow on a free Oracle Cloud ARM instance, keep every metric in your own database, and stay under the daily sending limits that keep inboxes healthy.


What OutboundOS Actually Does

OutboundOS is a Python‑centric, Docker‑wrapped pipeline that automates three core tasks:

  1. Cold‑email blast – send 30‑35 messages per day per domain, respecting a 28‑day ramp for brand‑new domains and a 14‑day ramp for aged ones.
  2. Peer‑to‑peer warm‑up – exchange inbound replies between a pool of 16 active inboxes, tracking 651 warm‑up exchanges so far.
  3. Inbox hygiene – suppress 204 bad or bounced addresses, star 604 inbound warm‑ups that were read, and stop sending to any address that replies.

The telemetry snapshot from the live deployment reads:

  • Total cold emails sent: 1723
  • Total P2P warm‑ups exchanged: 651
  • Inbound warm‑ups starred and read: 604
  • Bad or bounced addresses suppressed: 204
  • Active inboxes in pool: 16

All of this runs on a single Oracle Cloud Always Free VM (24 GB RAM, ARM64) with $0 monthly cost.


Architecture Overview

Below is the minimal set of components you need to understand to run OutboundOS yourself.

+-------------------+      +-------------------+      +-------------------+
|  Domain Onboard   | ---> |  DNS MX Checker   | ---> |  Send Queue (Docker) |
+-------------------+      +-------------------+      +-------------------+
        |                           |                         |
        v                           v                         v
+-------------------+      +-------------------+      +-------------------+
|  IMAP Poller (2.5m) | <--|  Spam Rescue      | <--|  Outbound Mailer   |
+-------------------+      +-------------------+      +-------------------+
        ^                           ^                         ^
        |                           |                         |
        +-------------------+-------------------+-------------------+
                            |   Systemd Service   |
                            +-------------------+
Enter fullscreen mode Exit fullscreen mode

1. Domain Onboarding

  • Supports 1‑100+ domains per instance.
  • Built‑in adapters for Namecheap PrivateEmail, Gmail, Outlook, and Zoho.
  • Each domain is stored in a SQLite (or optional Postgres) table with its SMTP credentials and a ramp profile (28‑day for new, 14‑day for aged).

2. Live DNS MX + RFC 7505 Null MX Check

Before a message hits the queue, OutboundOS performs a DNS lookup:

  • If the MX record resolves to a Null MX (.) per RFC 7505, the address is rejected immediately.
  • This prevents queuing to domains that have explicitly disabled inbound mail, saving quota and reputation.

3. Send Queue (Docker)

  • A lightweight Python worker pulls from a Redis‑backed queue.
  • Sends via SMTP over TLS (port 587 or 465) using the credentials supplied during onboarding.
  • Enforces the per‑domain daily cap (30‑35 emails) automatically.

4. IMAP Poller (2.5‑minute interval)

  • Connects to each inbox with an IMAP client.
  • Moves any message that lands in Spam back to INBOX, then flags it with \Seen and \Flagged (starred).
  • If a reply is detected, the poller marks the original outbound as completed and removes the address from future sends (Stop‑on‑Reply).

5. Systemd & Docker Integration

  • The repo ships a deploy/install_vps.sh script that:
    1. Installs Docker and Docker‑Compose.
    2. Creates a systemd unit (outboundos.service) that starts the Docker stack on boot.
    3. Enables log rotation and health checks.
  • All components run as isolated containers, making upgrades as simple as docker compose pull && docker compose up -d.

Why Self‑Hosting Beats $150/mo SaaS

Factor Typical SaaS (e.g., $150/mo) OutboundOS on Oracle Free VM
Monthly cost $150 $0
Data ownership Provider‑controlled Your own SQLite/Postgres
Warm‑up control Fixed cadence, opaque Adjustable 28‑day / 14‑day ramps
Domain limits Often 1‑2 domains per plan 1‑100+ domains per instance
Deliverability tweaks Limited UI knobs Full DNS MX, Null MX, IMAP rescue

The cost difference is literal: you can spin up the free VM in under five minutes, run the same daily caps, and keep the telemetry that matters.


Getting Started in Three Commands

  1. Clone & install
   git clone https://github.com/ansh1325/OutboundOS.git && cd OutboundOS
   ./deploy/install_vps.sh
Enter fullscreen mode Exit fullscreen mode
  1. Add a domain (example for Gmail)
   python add_domain.py --provider gmail --email you@example.com --password $APP_PASSWORD
Enter fullscreen mode Exit fullscreen mode
  1. Fire up the conversational strategist

    • Open the UI at http://<your‑vm‑ip>:8000/chat and paste your OpenAI API key.
    • Or run the CLI version:
     python chat.py
    

The bot will suggest target ICPs, draft subject lines, and even generate a follow‑up sequence based on your input.


Practical Tips for Production Use

  • Monitor DNS health – schedule a cron job that runs python dns_check.py and alerts on Null MX changes.
  • Back‑up the inbox pool – export the inboxes table nightly; a corrupted IMAP session can otherwise lose star flags.
  • Scale horizontally – spin up additional free Oracle instances, each with its own Docker stack, and load‑balance outbound SMTP via HAProxy.
  • Stay under the daily cap – the built‑in limiter is hard‑coded; if you need more volume, add another domain with its own ramp.

When to Choose OutboundOS

  • You have multiple domains and need granular ramp control.
  • You want full visibility into bounces, warm‑up replies, and spam rescues.
  • Your budget is zero for infrastructure, but you can allocate developer time for setup.
  • You need a programmable interface – the /chat endpoint is a thin Flask wrapper that accepts JSON payloads, making it easy to integrate with your own CRM.

Call to Action

OutboundOS proves that a modern cold‑email operation doesn’t require a $150/mo subscription. Clone the repo, run the three‑step install, and start experimenting with the conversational strategist today. The live telemetry shows the engine already handling 1723 outbound messages and 651 warm‑up exchanges – all on a free VM. Your inbox reputation, cost sheet, and codebase will thank you.

Ready to replace the SaaS? Try /chat in the UI, run python chat.py locally, or launch the VPS with deploy/install_vps.sh. The code is open, the docs are in‑repo, and the community is just a GitHub issue away.


Try OutboundOS Free

👉 GitHub Repo (Star & Clone): https://github.com/ansh1325/OutboundOS

Top comments (0)