Skip to main content

How to keep cold email domains healthy with Windmill

This guide shows how to keep the domains and mailboxes of a cold email team healthy with Windmill. Every weekday, a flow checks each mailbox in Instantly, works out why one is failing and proposes the smallest fix in Slack. Nothing changes in Instantly until someone approves it.

The tool​

The tool is one flow, its Python steps and an app, in one Windmill workspace. They share a ledger in a data table, created by the project's migration: each mailbox and its state (active, warming, spare, resting, burned), its daily figures, the blacklists, the placement tests and every proposal with its decision. The Slack bot is a resource, and the Instantly and Zapmail keys are secret variables.

Each piece below comes with the prompt to build it in your own workspace. The whole project is on the Windmill Hub, with recorded runs, ready to add to your workspace: Cold email deliverability bot on the Hub. The recorded runs use the demo data: made-up mailboxes on northwind-*.example domains, with no Instantly, Zapmail or Slack account.

A flow checks, asks and applies​

A schedule runs the flow on weekday mornings. A first step copies Instantly's campaigns, mailboxes and daily figures into the ledger. Then two branches run in parallel: one looks each domain up in the public blacklists (Spamhaus DBL, SURBL, URIBL), the other reads the Zapmail placement tests that have finished. Then a step reads what the first steps wrote: each mailbox's bounces, replies and warmup health over 7 days, the blacklists and the placement tests. It sets each mailbox's state and works out why one is failing:

  • One bad mailbox: swap it for a spare from the same provider.
  • Every mailbox of a domain is bad: rest the domain.
  • A domain is on a hard blacklist: retire it.
  • Bounces spike across one campaign: flag the lead list, swap nothing.
  • Most domains fail at once: flag a shared cause, swap nothing.
  • A domain rested for 14 days, clean since and passing a placement test: back to the spares.

It removes at most 4 mailboxes a day and never empties a campaign. After the report in Slack, a for loop takes each proposal in parallel.

Diagnose, 8:00
Swap [email protected]for [email protected] in Demo - Roofing USBounce rate 5% on 120 sends
Approval step
Posts the proposal to Slack with a Review button, and waits
Approve or Reject within 3 days
Apply
Writes the new sender list to Instantly, reads it back
Done

Each proposal waits on its own approval, so one decision never holds up another. An approved change is written to Instantly, read back and confirmed in the Slack thread, one at a time so two changes to the same campaign never overwrite each other. A rejected proposal keeps its reason and is not proposed again for 7 days; one nobody decides on within 3 days expires. The Review button opens the approval page, so post to a channel whose members are allowed to approve.

Read more: Approval steps.

Prompt

Create a flow daily_rotation that runs every weekday morning, with the Python code of each step in the flow: a step copies Instantly into the data table, two branches in parallel check the DNS blacklists and read finished Zapmail placement tests, a step diagnoses each mailbox and writes the smallest fix as a proposal, a step posts the report to Slack, then a parallel for loop takes each proposal, posts it to Slack with a Review button that opens its approval page, waits (continue on disapproval or after 3 days) and applies the decision.

An app shows the ledger​

The app shows every mailbox with its state, its campaigns, its bounce rate, warmup health, placement and blacklists, and every proposal with its changes and what was decided. A switch moves between the live data and the demo data.

To try the tool without any account, run the flow with demo ticked: it works on made-up mailboxes and waits for your approval on the run page. reset_demo puts the demo data back as it was, and start_placement_test, scheduled twice a month, buys the Zapmail placement tests.

Read more: Full-code apps.

Prompt

Build a full-code app that shows every mailbox with its state, its campaigns, its bounce rate, warmup health, placement and blacklists over the last 7 days, and every proposal with its changes and what was decided, with a switch between the live and the demo data.

App

A day with the tool​

  • At 8:00, the flow checks the 18 mailboxes of the two demo campaigns.
  • It posts three proposals: swap [email protected] for [email protected] in "Demo - Roofing US", rest trynorthwind.example, and put northwind-partners.example back as a spare.
  • At 10:12, a person approves the swap, and the flow updates the sender list in Instantly at once.
  • The rest of trynorthwind.example is rejected, "wait one more week of warmup": it is not proposed again for 7 days.