---
name: "inbox-infrastructure-stack"
description: "Build the sending infrastructure for outbound email: size inboxes and domains from target volume and a conservative per-inbox cap, choose separate sending domains, set MX, SPF, DKIM and DMARC, create inboxes with real sender identities, run a slow warmup ramp, and test placement with seed inboxes before real sends. Use before any cold or high-volume email program, or when authentication has never been checked."
---

# Inbox infrastructure stack

## Goal
A sending setup that is correctly authenticated, spread thin enough to protect reputation, ramped slowly and tested before real prospects see anything. Part of GTM engineering. Feeds: multi-channel-orchestrator, deliverability-monitor. Fed by: waterfall-enrichment-router (verified emails).

## When to use
- Before launching cold or high-volume email.
- When you have domains but no proof they are authenticated.
- When bounces, spam placement or complaints are rising.

## Inputs
- Target first-touch emails per day.
- Main company domain (kept out of cold sending).
- Mailbox provider and sending tool you are allowed to use.
- Real sender names, titles, signatures, and who answers replies.

## Data model
`domains`: `domain, registered_on, registrar, purpose, status (warming, live, paused, retired)`
`inboxes`: `email, domain, sender_name, created_on, warmup_week, daily_cap, status`
`dns_report`: `domain, mx, spf, dkim, dmarc, notes, checked_on`
`placement_tests`: `date, inbox, seed_provider, folder (inbox, spam, promotions, missing)`

## Step 1. Size it
`inboxes = ceil(daily_sends / per_inbox_cap)`, `domains = ceil(inboxes / inboxes_per_domain)`, then add spares (about 20 percent) so a paused inbox does not cut volume. Start with a conservative cap (about 30 cold sends per inbox per day) and lower it if your tool or provider advises. Run `scripts/inbox_plan.py plan`.

## Step 2. Choose domains
- Close variants of the brand (a prefix or a different suffix), easy to read aloud, that clearly belong to you.
- Register them in a separate account from the main domain, with the same legal owner.
- Point each at the main website with an HTTPS redirect, and give it a plain page if you can. Recipients check.
- Never use the main domain for cold sending.

## Step 3. Authenticate every domain
- MX: the mailbox provider's records.
- SPF: one TXT record starting `v=spf1`, listing only the services that send for this domain, ending `~all` or `-all`. Stay under 10 DNS lookups.
- DKIM: publish the public key at `<selector>._domainkey.<domain>` using the provider's values.
- DMARC: TXT at `_dmarc.<domain>`. Start `v=DMARC1; p=none; rua=mailto:<report address>`. Read reports for 2 to 4 weeks, then move to `p=quarantine` once legitimate mail passes.
- Add a one-click unsubscribe header and a physical address where the law requires it. Large mailbox providers require authentication and easy unsubscribe for bulk senders.
Check with `scripts/inbox_plan.py check`.

## Step 4. Create inboxes
- 2 to 3 inboxes per domain, named for real people who will actually answer replies.
- Same signature format, photo where the provider supports it, and a working reply path.
- Record each in `inboxes` with its start date.

## Step 5. Warm up
- Week 1: warmup only. The inbox sends and receives real, varied messages with other real inboxes, including replies.
- Then raise cold volume slowly, for example week 2 up to 10, week 3 up to 20, week 4 on up to 30 per inbox per day. This is an example, not a rule. Follow your provider's guidance.
- If bounce or complaint rates rise, step back a week. Do not push through.

## Step 6. Test placement
- Before real sends: send the actual message (not a test line) from each inbox to seed inboxes at the main providers your buyers use, and to your own accounts. Record the folder.
- Run a seed test weekly in the first month, then monthly.
- Seed tests show direction, not the truth. Use real engagement and the deliverability-monitor for the truth.

## Tool options
Registrars and DNS hosts for domains. A business mailbox provider for inboxes. A sending or sequencing tool that rotates inboxes and enforces caps. Postmaster dashboards from the large mailbox providers for domain reputation. A seed testing service or your own seed accounts for placement. Pick tools you already have.

## Output
`plan.csv`, `dns_report.csv`, the warmup ramp and the placement log.

## Success metrics
- All domains pass the DNS check.
- Bounce rate on first-touch email stays under your threshold (set it in deliverability-monitor).
- Spam complaint rate stays under the mailbox providers' published limits.
- Seed tests mostly in the inbox folder before scaling.
- No cold email ever sent from the main domain.

## Guardrails
- Send only to people you have a lawful basis to contact, with an easy way to opt out, honoured immediately. Know the rules in your regions (CAN-SPAM, GDPR and ePrivacy, CASL and others).
- Do not spoof, rotate "from" identities to hide who you are, or buy lookalikes of other companies' brands.
- Do not buy lists. Do not send from domains you do not own.
- Real sender identity and a real reply path on every message.
- Respect the terms of the mailbox provider and the sending tool.
