Sub topic 10
Keeping transactional and marketing traffic apart
This chapter assumes you know how email is sent and received, what an email service provider (ESP) does, and what a DNS record is. It builds on the earlier chapters on transactional and promotional email and on sender authentication.
Why separate streams
A sending stream is a distinct path your mail takes to the inbox. It has its own sending domain or subdomain, its own IP addresses or IP pool, and its own credentials and reputation.
Mailbox providers such as Gmail and Microsoft score senders by the behavior of the mail they see. Marketing mail draws more spam complaints and unsubscribes than transactional mail, because recipients did not ask for each individual send. If both types share one reputation, a weak campaign can push a password reset into the spam folder.
Separate streams keep the two reputations independent. A bad campaign hurts only the marketing stream.
What to separate
Separate these four things, from most to least important:
- Sending subdomain. Use something like
notify.example.comfor transactional mail andmail.example.comfor marketing. Mailbox providers track reputation per domain, so this matters most. - IP address or pool. On a dedicated IP, reputation follows the IP. Use different pools for each stream where your volume justifies it.
- Credentials. Give each stream its own API key or SMTP login. A leaked marketing key then cannot send as your transactional stream.
- Configuration. Each stream has its own tracking, suppression lists, and unsubscribe behavior.
Many ESPs offer this as named message streams. Postmark and Amazon SES, for example, let you keep separate configurations for each type.
Authenticate each stream
Each subdomain needs its own authentication. SPF authorizes the servers that may send for the domain. DKIM signs each message with a key published in DNS. DMARC tells receivers what to do when checks fail.
notify.example.com. TXT "v=spf1 include:_spf.esp.example.net -all"
_dmarc.notify.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]"
mail.example.com. TXT "v=spf1 include:_spf.esp.example.net -all"
_dmarc.mail.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]"Both subdomains can use the same ESP. The point is that each has its own DNS records, DKIM selectors, and reports, so you can read problems in each stream on its own.
Keep the content rules separate too
Routing is only half of the job. The stream must match the message.
- Send only messages triggered by a user action through the transactional stream. Examples are password resets, receipts, and shipping notices.
- Send newsletters and promotions through the marketing stream, and include
List-Unsubscribeheaders. - Do not add promotional blocks to transactional messages to save on sends. This is the mixed-content problem from the earlier chapter. It can change the message's legal classification, and it trains recipients to mark account mail as spam.
- Do not route marketing mail through the transactional stream because it "must get delivered." That spends the reputation you built to protect critical mail.
Suppression handling differs by stream as well. A user who unsubscribes from marketing should still receive a password reset. Keep the marketing suppression list from blocking transactional sends.
Common errors
| Error | Result | Fix |
|---|---|---|
| One domain and IP for everything | A campaign's complaints affect receipts and resets | Move each type to its own subdomain |
| Shared API key | A leak or misconfiguration affects both streams | Issue one key per stream |
| Global suppression list | Unsubscribed users miss password resets | Scope suppression by stream |
| New subdomain used at full volume on day one | Low trust leads to spam placement | Warm up gradually |
| Subdomain with no DMARC record | Policy is inherited and reports are mixed | Publish a record per subdomain |
A new subdomain or IP has no history. Start with small volumes to your most engaged recipients and increase over several weeks.
Exercise
Your app sends password resets and a weekly promotional digest from example.com through one API key. After a campaign gets many spam complaints, users report that resets arrive late or land in spam. Describe the changes you would make and in what order.
Show answer
First, create separate subdomains, for example notify.example.com for resets and mail.example.com for the digest. Publish SPF, DKIM, and DMARC records for each. Second, issue a separate API key for each stream and, if volume allows, a separate IP pool. Third, scope suppression lists by stream so unsubscribes from the digest do not block resets. Finally, warm up the new marketing subdomain with small sends to engaged users. The transactional stream then keeps its own reputation, and the next bad campaign cannot affect resets.