Sub topic 12
Reach the inbox: authentication and unsubscribing
This chapter assumes you have used an email service provider (ESP), can edit DNS records or ask someone who can, and know what open rate and click rate mean. A great issue does nothing if it lands in spam. Deliverability is the share of your mail that reaches the inbox instead of the spam folder or nowhere at all. Most of it comes down to proving you are who you say you are, and making it easy to leave.
How a mailbox provider decides
Mailbox providers such as Gmail, Yahoo, and Outlook score each message on a few signals:
- Identity: can the sender prove the message really came from the domain it claims?
- Reputation: how have readers treated your earlier mail? Complaints, deletes without reading, and bounces hurt. Replies and clicks help.
- Content and behavior: does the message look like what recipients asked for, and is it sent at a steady volume?
- Opt-out: is there a visible, working way to unsubscribe?
You control all four. The first and last are technical setup you do once. The middle two are the result of the writing and list practices in the rest of this tutorial.
The three authentication records
Authentication is set up with DNS records on the domain you send from. Your ESP gives you the exact values. Your job is to publish them and check them.
SPF: who may send
Sender Policy Framework (SPF) is a DNS record that lists the servers allowed to send mail for your domain. The receiving server compares the connecting server against that list.
example.com. TXT "v=spf1 include:_spf.your-esp.example ~all"Common errors:
- Two SPF records. A domain may have only one SPF record. Two records make SPF fail. Merge them into one.
- Too many lookups. SPF allows at most 10 DNS lookups. Each
include:counts, so stacking several services can break it silently. - Wrong ending.
~allmarks other senders as suspicious (soft fail).-allrejects them. Start with~alluntil you are sure every legitimate sender is listed.
DKIM: the message is untampered
DomainKeys Identified Mail (DKIM) adds a cryptographic signature to each message. The ESP signs with a private key. You publish the matching public key in DNS, and the receiver uses it to verify the signature. It proves the message was authorized by the signing domain and was not changed in transit.
selector1._domainkey.example.com. CNAME selector1.dkim.your-esp.example.Many ESPs ask for a CNAME like this one so they can rotate keys for you. Others ask for a TXT record that holds the key itself. Copy the record exactly. A stray space or a DNS host that appends your domain a second time are the usual causes of failure.
DMARC: what to do on failure
Domain-based Message Authentication, Reporting and Conformance (DMARC) ties the other two together. It tells receivers what to do when a message fails, and it requires alignment: the domain that passed SPF or DKIM must match the domain in the visible From address.
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]"The p= policy has three values:
| Policy | Effect on failing mail | When to use it |
|---|---|---|
| `none` | Delivered normally, reports are sent to you | First weeks, while you find every sender |
| `quarantine` | Usually sent to spam | After reports show only legitimate mail passes |
| `reject` | Refused | Once you are confident, for the strongest protection |
Alignment is the part people miss. If your ESP signs with its own domain (your-esp.example) and your From address is [email protected], DKIM can pass while DMARC still fails. Setting up a custom signing domain in the ESP fixes this.
Check your setup
Do this before your first send and again after any change to your ESP or DNS.
- Publish the SPF, DKIM, and DMARC records your ESP gives you.
- Wait for DNS to update. This can take minutes or hours.
- Use your ESP's domain verification page. It shows which records it can see.
- Send a test to a Gmail address. Open the message, choose "Show original", and confirm that SPF, DKIM, and DMARC each say
PASS. - Read the DMARC reports in the first weeks. They are XML files. Many free tools turn them into readable tables.
Make leaving easy
Unsubscribing feels like a loss, but a hard unsubscribe is worse. A reader who cannot find the link clicks "Report spam", and that damages your reputation for every future issue. A reader who leaves cleanly costs you nothing, and they were never going to read the next issue anyway.
The visible link
Put an unsubscribe link in the footer of every issue. Make it plain text, readable, and working in one step. Avoid requiring a login, a password, or a survey before the unsubscribe takes effect. You may offer an optional "tell me why" page after it is done.
Laws such as CAN-SPAM in the United States, and GDPR and the ePrivacy rules in Europe, also require an easy opt-out, honored promptly, and a real sender identity. CAN-SPAM also requires a physical postal address in commercial mail. This chapter is not legal advice, so check the rules for the places where your readers live.
One-click unsubscribe headers
The second mechanism is invisible to readers. Two headers let the mailbox provider show its own "Unsubscribe" button next to your sender name. This is defined in RFC 8058.
List-Unsubscribe: <https://example.com/unsubscribe?token=abc123>, <mailto:[email protected]>
List-Unsubscribe-Post: List-Unsubscribe=One-ClickHow it works:
- The
List-Unsubscribeheader gives a URL and a mailto address. List-Unsubscribe-Posttells the provider it may send an HTTP POST to the URL to unsubscribe the reader immediately, with no page to click through.- The URL carries a per-subscriber token, so the server knows who asked without a login.
- The message must also be signed with DKIM, and the headers must be covered by the signature.
Most ESPs add these headers automatically. Confirm that yours does by viewing the original message source of a test send. If you run your own sending system, you must implement the POST endpoint yourself. It should accept the request without a redirect, remove the address, and return a success status.
Common mistakes
- Sending from a free mailbox address such as a
gmail.comFrom address through an ESP. DMARC alignment fails because you do not control that domain. - Changing domains or ESPs without warming up. A new sending setup has no reputation. Send to your most engaged readers first and increase volume over a couple of weeks.
- Ignoring unsubscribe requests or processing them slowly. Remove the address at once.
- Buying or scraping a list. Readers who never asked for your mail will complain, and the complaints will drag down the rest of your list.
- Hiding the unsubscribe link in tiny grey text. Readers who cannot find it use the spam button.
- Setting DMARC to
rejecttoo early, which blocks your own legitimate mail from a service you forgot to list.
What this means for your writing
Authentication gets you through the door. After that, reputation depends on whether readers want your mail. The welcome email from the previous chapter, a clear promise, and an honest unsubscribe path all reduce complaints. The next chapter looks at how to measure engagement, including why open counts are less reliable than they look.
Exercise
Your newsletter is sent through an ESP. A test message shows SPF = PASS, DKIM = PASS, but DMARC = FAIL. Your From address is [email protected]. Name the most likely cause and the fix.
Show answer
Alignment is failing. SPF and DKIM passed for the ESP's own domain, not for example.com, so neither matches the From domain. Fix it by setting up a custom authenticated sending domain in the ESP, publishing the DKIM (and, where offered, SPF/return-path) records it gives you for example.com, and retesting until DMARC passes.
Exercise
A reader says they could not find a way to leave your list and marked an issue as spam. List two changes that protect your reputation against this.
Show answer
Put a clear, plain-text unsubscribe link in every footer that works in one step, and enable the List-Unsubscribe and List-Unsubscribe-Post (RFC 8058) headers so the mailbox provider shows its own unsubscribe button. Processing requests immediately is also acceptable as a supporting change.