Wired Pipeline

case study 06 · list hygiene

Cleaning a contact list before it touches a sending tool

list cleaningemail verificationdedupePython

The problem

Bounces are the fastest way to burn a sending domain. Most of them come from lists nobody cleaned: the same person twice in different capitals, typos, shared inboxes like info@, throwaway addresses, and companies whose domain stopped taking mail years ago. Paid verification tools charge per row, so feeding them the junk too costs money.

What we built

  • A cleaning pass that runs before any paid verifier, in a fixed order
  • Normalize (trim spaces, lowercase), then check the address format
  • Dedupe on the cleaned address, so OMAR@ and omar@ count once
  • Remove disposable domains and role addresses (info, sales, support, noreply...)
  • Check each domain's MX record, so dead domains go before they bounce
  • Every removed row is kept in a separate file with the reason, so nothing disappears silently

The funnel, on a 295-row sample list

raw rows                295
valid syntax            289
after dedupe            259
no disposable           256
no role addresses       240
domain accepts mail     195

removed, by reason:
  domain has no mail server   45
  duplicate                   30
  role address                16
  bad syntax                   6
  disposable domain            3

kept 195 of 295 (66%)

A third of the list was gone before spending a cent on verification. On a real list that's a third fewer verifier credits, and a third fewer chances to bounce. The sample list is made up, but every check above ran for real, including live MX lookups.

What happens next

The 195 kept rows go to a mailbox-level verifier (MillionVerifier, NeverBounce, BounceBan). Catch-all domains get flagged and sent in a separate, smaller batch, because a verifier can't confirm them. Only "valid" goes into the main campaign.

✓ 295 rows to 195 before paying for verification
✓ Every removal logged with its reason
✓ Python standard library only, runs anywhere
# same pass runs on any CSV: Apollo exports, scraped research, old CRM lists.

Got a list you're not sure about?

Clean it before you send. One bad batch can undo weeks of warmup.