Skip to content

Subdomain isolation for transactional vs marketing mail — per-stream reputation

Sending password resets and Black Friday campaigns from the same domain is how reputational accidents become outages. The subdomain split, the DNS layout, the ramp-up plan.

Your engineering team ships password resets, receipts, and 2FA codes from noreply@example.com. Marketing ships nurture campaigns and broadcast newsletters from the same domain through a different ESP. One of the marketing sends draws a complaint spike. Gmail dings the domain reputation. Two days later, a customer complains they can’t log in because the password-reset email never arrived. The transactional stream is collateral damage from a marketing problem. The fix is structural — separate subdomains, separate signing keys, separate ramp paths, and DMARC alignment that keeps the parent’s reputation out of either stream’s blast radius.

What’s happening

Inbox reputation is calculated per domain and per IP, but per domain at the level of the DKIM d= and the From: header domain. If both transactional and marketing mail authenticate as example.com, both contribute to the same reputation score at every inbox provider. A bad day on marketing pulls down transactional. The split that actually works has three pieces:

  1. Distinct subdomains for distinct streams. A common layout: tx.example.com for transactional (login codes, receipts, password resets, alerts) and mkt.example.com (or news.example.com) for marketing (newsletters, campaigns, lifecycle). Some operators split further — tx.example.com, alerts.example.com, news.example.com, product.example.com. The minimum useful split is two.
  2. Per-stream SPF, DKIM, DMARC. Each subdomain is treated as a distinct authentication identity. DKIM signs with d=tx.example.com for transactional and d=mkt.example.com for marketing. DMARC is published per subdomain. The parent example.com stays clean — it isn’t used for bulk sending at all.
  3. Per-stream IPs and per-stream warm-up. Transactional rides a small, hot, low-volume pool. Marketing rides a separate pool that gets warmed up gradually. They never share IPs, even at low total volume — sharing means one stream’s volatility moves the other’s reputation.

The benefit: a complaint storm against mkt.example.com does not degrade tx.example.com’s reputation, and the parent example.com (often used for human-to-human email) stays insulated from both.

How to verify

Given a current setup, audit what authenticates as what:

# What's the DKIM d= on a sample transactional message?
# Pull a real header and look for d= in DKIM-Signature
grep -i 'DKIM-Signature' sample-transactional.eml
# DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=tx1; ...

# Same for marketing
grep -i 'DKIM-Signature' sample-marketing.eml
# DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=mkt1; ...

If both show d=example.com, the streams aren’t isolated — they share the parent’s reputation.

Confirm SPF includes for each stream:

dig +short TXT example.com   | grep spf
# "v=spf1 include:_spf.google.com include:sendgrid.net include:mailchimp.com -all"

A single SPF record listing three or four ESPs is a sign that streams haven’t been split.

Check DMARC at the parent and the subdomains:

dig +short TXT _dmarc.example.com
# "v=DMARC1; p=reject; pct=100; rua=mailto:rua@example.com; sp=reject"

dig +short TXT _dmarc.tx.example.com
dig +short TXT _dmarc.mkt.example.com

If _dmarc.tx.example.com returns empty and the parent’s sp=reject is set, transactional from a subdomain inherits the parent’s strict policy without its own reporting — fine for enforcement, blind for visibility. You want per-subdomain rua so you can see authentication health per stream.

The fix

A clean isolation strategy is a one-time DNS rebuild plus a gated ramp-up. Plan it as a project, not a hot fix.

1. Decide the split

Minimum viable: two subdomains.

  • tx.example.com — receipts, password resets, 2FA, account notifications, security alerts. Low volume, high importance, low complaint probability. Sender visibility matters more than volume scaling.
  • mkt.example.com (or news.example.com) — newsletters, lifecycle, promotional. Higher volume, higher complaint probability.

If you have a distinct alerts/product notification stream (e.g. “your build failed” or “your invoice posted”), split it into alerts.example.com — its complaint rate is between tx and marketing, and isolating it spares the password-reset stream from any noise.

2. Build the per-stream DNS

For each subdomain, publish SPF, the DKIM selectors your ESP needs, and DMARC. Example for tx.example.com sent through Postmark:

# BIND zone fragment
tx.example.com.                IN MX    10 inbound.example.com.
tx.example.com.                IN TXT   "v=spf1 include:spf.mtasv.net -all"
20251101._domainkey.tx.example.com.  IN CNAME 20251101.dkim.mtasv.net.
_dmarc.tx.example.com.         IN TXT   "v=DMARC1; p=reject; pct=100; rua=mailto:rua+tx@example.com; ruf=mailto:ruf+tx@example.com; adkim=s; aspf=s"

And mkt.example.com sent through SendGrid:

mkt.example.com.               IN MX    10 inbound.example.com.
mkt.example.com.               IN TXT   "v=spf1 include:sendgrid.net -all"
s1._domainkey.mkt.example.com. IN CNAME s1.domainkey.u123456.wl.sendgrid.net.
s2._domainkey.mkt.example.com. IN CNAME s2.domainkey.u123456.wl.sendgrid.net.
em.mkt.example.com.            IN CNAME u123456.wl.sendgrid.net.
_dmarc.mkt.example.com.        IN TXT   "v=DMARC1; p=quarantine; pct=100; rua=mailto:rua+mkt@example.com; adkim=r; aspf=r"

Note the alignment knobs:

  • adkim=s on transactional — strict DKIM alignment, meaning the d= must match the From: exactly, not just be a subdomain. Stops a misconfigured marketing send from passing DMARC on the transactional record by coincidence.
  • adkim=r on marketing — relaxed, more practical for ESPs that occasionally vary subdomains.
  • Separate rua= addresses so DMARC reports for each stream land in different inboxes (or different folders for parsing).

For the parent example.com:

example.com.            IN TXT   "v=spf1 -all"
_dmarc.example.com.     IN TXT   "v=DMARC1; p=reject; pct=100; sp=reject; rua=mailto:rua@example.com; adkim=s; aspf=s"

-all on the parent SPF means nothing legitimately sends as the parent — a strong stance, and one you can take once you’ve moved every operational stream to a subdomain. sp=reject covers any subdomain that doesn’t publish its own DMARC.

3. Ramp marketing on a fresh IP — the schedule

A cold IP starts with no reputation. Inbox providers gate the warm-up automatically — you cannot simply blast 200k messages day one. The schedule we use:

DayDaily volume capNotes
150Send only to known-engaged recipients; check delivery in Gmail Postmaster Tools end of day
2100Same audience pattern
3500Add a second engaged segment
41,000
52,500
65,000
710,000First inbox-provider feedback in DMARC reports
820,000
940,000
1075,000
11150,000
12300,000
13600,000
14+full volumeHold for a few days at each step beyond if Gmail reputation moves below HIGH

Hold the schedule. If complaint rate at any inbox exceeds 0.2% on a day, pause the ramp for 48 hours and investigate the segment.

For transactional, no warm-up is needed if total volume stays modest (a few thousand a day). At higher volumes, ramp from day one but you reach steady state faster — transactional engagement signals (recipients open password resets) build reputation quickly.

4. Per-stream IP pools

If your ESP is one of the big platforms (Postmark, SendGrid, SparkPost, Mailgun), request separate dedicated IPs per stream. Shared pools are acceptable for transactional only at low volume; once you’re above a few thousand recipients a day on marketing, you need a dedicated IP for that stream to control reputation.

tx.example.com  → dedicated IP pool: 198.51.100.10/198.51.100.11
mkt.example.com → dedicated IP pool: 203.0.113.20/203.0.113.21/203.0.113.22

If marketing has multiple lifecycle/broadcast segments at high scale, consider one IP per major campaign type.

5. Verification after rollout

Send a real message in each stream, check headers at a Gmail and Outlook inbox:

# Expected for tx.example.com
Authentication-Results: mx.google.com;
       dkim=pass header.d=tx.example.com;
       spf=pass smtp.mailfrom=<bounce>@tx.example.com;
       dmarc=pass header.from=tx.example.com (policy=reject)

Each authentication identifier should match the subdomain. If you see header.d=example.com for a From: noreply@tx.example.com, the ESP signed with the wrong key — fix the ESP config before sending more.

Set up per-stream reputation monitoring (see the postmaster tools integration article for the wiring). Alert on:

  • Subdomain reputation drop in Google Postmaster Tools
  • DMARC dmarc=fail rate >1% on any stream
  • IP listings on Spamhaus (see the blocklist recovery workflow article)

6. Operational follow-ups

  • Audit every external service that sends as you. Vendors that send invoices, CRM lifecycle emails, helpdesk replies — each gets its own subdomain alignment review.
  • DMARC reports per subdomain are noisy at first. Expect three to four weeks before authentication issues at each ESP are fully ironed out.
  • Don’t undo the split for “simplicity.” The temptation to merge once both streams look stable is exactly when reputational accidents start mattering most. Keep them separated.

Stack Harbor runs subdomain isolation rollouts and the supporting DMARC + monitoring work under environment management, with deploy and DNS plumbing under deployment management — open a working session if you’re consolidating ESPs or planning a marketing ramp.