Separate your transactional and marketing email: a one-hour setup order
If your SaaS sends password resets and a monthly newsletter from the same address, one bad campaign can push your login emails into spam. Here is the setup order I use to keep the two streams apart, and it takes about an hour. 1. Split by subdomain, not by provider Pick two sending subdomains under your main domain: mail.yourapp.com for transactional mail (receipts, magic links, password resets)…
To maintain a clean reputation for your SaaS's email communications, it's crucial to separate transactional emails from marketing campaigns. This can be achieved within an hour by following a structured setup order. First, divide your sending subdomains based on the type of email - use mail.yourapp.com for transactional emails like receipts and password resets, and news.yourapp.com for campaigns and product updates.
Each subdomain should be authenticated individually with SPF, DKIM, and Return-Path settings. For SPF, create a TXT record listing only the services that send emails from that subdomain, keeping it under 10 DNS lookups. For DKIM, publish a 2048-bit key as a CNAME or TXT record at selector._domainkey.mail.yourapp.com. The Return-Path should point to your provider to align with the From domain, followed by adding a DMARC record at the root level (_dmarc.yourapp.com) starting with p=none; rua=mailto:... and monitoring aggregate reports.
When sending emails, use distinct From addresses to avoid confusion. For transactional emails, use no-reply@mail.yourapp.com, while campaigns should use a real person's name followed by @news.yourapp.com. Never send campaigns from the transactional address, as this can disrupt the separation. Handling unsubscribes also differs between streams - marketing emails must include List-Unsubscribe and List-Unsubscribe-Post headers, while transactional emails shouldn't recognize marketing unsubscribe requests. Consent for each stream should be managed separately through the contact record.
To gradually warm up your campaign subdomain, start by sending emails to your most engaged users, such as those who logged in recently. Expand the list over two to three weeks, keeping a close eye on metrics like bounce rates, spam complaint rates, and open rates. Register both subdomains in Google Postmaster Tools and monitor the domain reputation graph. If the reputation drops below "High," pause campaigns until the issue is identified.
Services like Elma, which integrates transactional email, campaigns, and automation under one contact graph, can simplify this process. The free tier provides 1,000 credits a month, allowing you to test the setup without additional tools. Regardless of the vendor, the key is to prioritize separating subdomains, authenticating each one, establishing separate consent, and warming up the campaign subdomain slowly.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to