Sub topic 11
Easy unsubscribe and bulk sender requirements
This chapter assumes you know how SPF, DKIM, and DMARC work, and that complaints and bounces feed sender reputation. It covers why an easy exit protects your reputation, how to implement it, and what large mailbox providers now require from bulk senders.
Why unsubscribe is a reputation tool
A recipient who no longer wants your mail has two options: unsubscribe or click "Report spam". A spam report is a complaint, and complaints lower reputation. If the unsubscribe path is hard to find, some recipients will choose the spam button instead.
An easy unsubscribe turns a complaint into a quiet list removal. You lose one address, but your complaint rate stays low. Mailbox providers also read the lack of a working unsubscribe as a sign of a careless sender.
The two layers of unsubscribe
Every marketing message should offer two exits:
- A visible link in the message body, usually in the footer.
- Machine-readable headers that let the mailbox provider show its own unsubscribe control near the sender name.
The headers are List-Unsubscribe and List-Unsubscribe-Post. The second one enables one-click unsubscribe as defined in RFC 8058.
List-Unsubscribe: <https://example.com/unsubscribe/abc123>, <mailto:[email protected]?subject=unsubscribe>
List-Unsubscribe-Post: List-Unsubscribe=One-ClickWith these headers, the provider can send an HTTP POST to the URL without showing the recipient a web page. Your endpoint must accept that POST and remove the address immediately. Use a unique token per recipient, as in abc123, so the request identifies who to remove without a login.
RFC 8058 also requires the message to carry a valid DKIM signature that covers the List-Unsubscribe and List-Unsubscribe-Post headers. Providers will not offer one-click otherwise.
Bulk sender requirements
Large providers, including Google and Yahoo since 2024, set rules for senders who send high volumes to their users. Google defines a bulk sender as one that sends close to 5,000 or more messages a day to personal accounts. The details change, so check each provider's current documentation. The common core is:
| Requirement | What it means in practice |
|---|---|
| Authentication | SPF and DKIM pass, and the domain has a DMARC record (at least `p=none`) |
| Alignment | The visible From domain aligns with the SPF or DKIM domain |
| One-click unsubscribe | Marketing and subscribed mail carries the RFC 8058 headers |
| Prompt processing | Unsubscribe requests are honored within two days |
| Low complaint rate | Stay under 0.1% and never reach 0.3% |
Transactional messages such as password resets are generally exempt from the unsubscribe rule. The authentication and complaint-rate rules still apply to them.
Handling an unsubscribe request
Treat each request as a suppression, not a deletion. If you delete the address, a later import can add it back and you will mail someone who opted out. Keep a suppression list and check it before every send.
suppressed: set[str] = set()
def handle_unsubscribe(email: str) -> None:
"""Record an opt-out so no later campaign sends to this address."""
suppressed.add(email.strip().lower())
def can_send(email: str) -> bool:
"""Return True only if the address has not opted out."""
return email.strip().lower() not in suppressed
handle_unsubscribe("[email protected]")
print(can_send("[email protected]")) # False
print(can_send("[email protected]")) # TrueNormalizing case, as above, prevents a differently capitalized duplicate from slipping through.
Common errors
- Requiring a login or a form. One-click means one click. A confirmation step before removal sends frustrated users to the spam button.
- Processing slowly. A weekly batch job can break the two-day expectation. Process requests as they arrive.
- Missing DKIM coverage of the headers. The headers are present but the provider ignores them.
- Only a
mailto:entry. Add the HTTPS URL, because one-click needs it. - Mailing suppressed addresses from another system. Share one suppression list across every tool that sends under your domain.
Exercise
A sender's one-click unsubscribe headers are in every campaign, yet Gmail does not show an unsubscribe control. The endpoint works when tested by hand. Name two likely causes.
Show answer
The DKIM signature may not cover the List-Unsubscribe and List-Unsubscribe-Post headers, so the provider ignores them. The messages may also fail authentication or alignment, or the headers may list only a mailto: address with no HTTPS URL. Any of these prevents one-click from being offered.
Exercise
Why should an unsubscribed address be kept on a suppression list instead of deleted from your database?
Show answer
Deleting it lets a later list import or sync add the address back, and you would mail someone who opted out. That raises complaints. A suppression list is checked before every send, so the opt-out persists.