Bulk senders · Unsubscribe · RFC 8058
One-click unsubscribe (RFC 8058): implement it and prove it in headers
Your newsletter has an unsubscribe link. Your platform says unsubscribe is “on”. Yet Gmail shows no Unsubscribe button next to your sender name.
Gmail and Yahoo do not read your footer. They read two headers. If either header is missing, malformed, or not covered by your DKIM signature, there is no one-click unsubscribe — whatever your platform toggle says.
The fast answer
Do not trust a platform toggle; check the headers. Every marketing message must carry both List-Unsubscribe (with an HTTPS URI) and List-Unsubscribe-Post: List-Unsubscribe=One-Click, both covered by a valid DKIM signature, and the HTTPS endpoint must accept a POST and unsubscribe the recipient without another click, login or confirmation. That is the whole implementation — everything else in this guide is verifying those four facts. This is the implementation companion to our Yahoo/AOL bulk-sender requirements guide, which covers the wider bulk-sender rules; this page covers only the unsubscribe mechanism.
What you are looking at, in plain words
Bulk-sender rules from Gmail and Yahoo (in force since February 2024 — Gmail's bulk line is 5,000 or more messages a day to personal Gmail accounts; Yahoo publishes no volume threshold) require one-click unsubscribe on marketing and subscribed mail. The mechanism is RFC 8058, and it is deliberately narrow: when a reader clicks Unsubscribe in their mailbox, the mailbox sends an HTTPS POST to a URI you published in the message headers, carrying List-Unsubscribe=One-Click as the body, and you remove them. No page load, no confirmation, no login. Three details catch most implementations: the List-Unsubscribe header must contain an HTTPS URI (a mailto-only header is not one-click); the List-Unsubscribe-Post value is one fixed string, not a URL; and a valid DKIM signature must cover both headers, or the receiver should not offer one-click at all. A fourth, operational detail: Gmail does not display its Unsubscribe link merely because the headers exist — display also depends on reputation and engagement — so “no link visible” is not, by itself, proof the headers are missing. Check the headers, not the button.
| Requirement (RFC 8058) | Exact value |
|---|---|
| List-Unsubscribe | <https://yourdomain/unsubscribe/<token>>, optionally plus a mailto URI |
| List-Unsubscribe-Post | List-Unsubscribe=One-Click (exactly this, nothing else) |
| DKIM coverage | Both headers listed in the DKIM signature’s h= tag, signature valid |
| Endpoint behaviour | Accept POST, no redirect, no cookies or login required, unsubscribe on receipt |
Step 0 — Prove which part is failing
- Send yourself a real marketing message from your real sending setup (not a test mode that skips headers). Open Show original / View source and search for
List-Unsubscribe. Note whether both headers exist, and whether the DKIM-Signatureh=list nameslist-unsubscribeandlist-unsubscribe-post. - Check your sending platform’s unsubscribe setting: does it add headers, or only a footer link? Many platforms do one and describe it as the other.
- Confirm the scope: one-click unsubscribe is required on marketing and subscribed mail. Transactional mail (receipts, password resets) is a different category — do not add an unsubscribe header to mail the recipient cannot opt out of.
Fix 1 — Publish both headers, exactly
Ensure every marketing message carries:
List-Unsubscribe: <https://yourdomain.com/unsubscribe/abc123>, <mailto:[email protected]?subject=unsubscribe>
List-Unsubscribe-Post: List-Unsubscribe=One-ClickThe HTTPS URI must identify the recipient and list with an opaque, hard-to-forge token — never a bare email address in the URL. The mailto URI is an optional fallback for clients that cannot POST; the HTTPS URI is the one-click path and is mandatory. If your platform generates these headers, verify them in a real message rather than trusting its settings page; if you send via your own system, add them at the sending layer, before DKIM signing.
Fix 2 — Make sure DKIM covers both headers
Check the DKIM-Signature header’s h= tag in a received message: it must list both list-unsubscribe and list-unsubscribe-post. If either is missing, the signature does not cover that header and receivers should not offer one-click. The fix is in your DKIM signer’s signed-headers configuration (or your ESP’s DKIM settings), not in DNS: add both headers to the signed set, then re-test. Headers added or rewritten after signing break coverage just as surely as headers never signed.
Fix 3 — Build the POST endpoint correctly
The endpoint at the HTTPS URI must: accept POST bodies as form-encoded or multipart data carrying List-Unsubscribe=One-Click; process the unsubscribe without requiring cookies, authentication or a prior browser session; not return an HTTPS redirect (redirected POSTs historically fail or turn into GETs); and suppress the recipient from future sends to that list. It may show a confirmation page after unsubscribing for a human visitor, but the POST itself must complete the unsubscribe with no further action. Honour the request promptly — bulk-sender guidance expects processing within two days at the outside; same-day is the sane operational target.
Fix 4 — Verify end to end, including the POST
Send a real campaign message to a test mailbox, confirm both headers and DKIM coverage in its source, then simulate the mailbox’s POST (for example with a simple HTTP client posting List-Unsubscribe=One-Click to the token URI) and confirm the test address is suppressed from the next send. A header check without a POST check proves only half the mechanism; a POST check without a suppression check proves nothing about your list.
Prove it worked
- A received marketing message shows both headers in its source, with the exact List-Unsubscribe-Post value.
- The DKIM-Signature h= tag lists both unsubscribe headers and the signature verifies.
- A POST to the token URI suppresses the test recipient, with no login, redirect or confirmation required.
- The visible footer unsubscribe link still exists as the human path — header one-click does not replace it.
Still not working? Work this ladder in order
- Headers exist but Gmail shows no button. Check DKIM coverage first (Fix 2), then reputation and engagement: Gmail gates display on more than headers. Do not keep editing headers that are already correct.
- Button appears but clicks do nothing. The endpoint expects GET, requires a session, or redirects. Fix the endpoint (Fix 3) — the headers did their job.
- Unsubscribes work but people still get mail. Suppression is per-list or per-system and your next send used another list or system. Unify suppression before blaming the mechanism.
- Only some campaigns carry the headers. A second sending path (another tool, a manual send) bypasses your header configuration. Inventory every path that sends marketing mail.
Mistakes that make it worse
- A mailto-only List-Unsubscribe header presented as one-click.
- A List-Unsubscribe-Post value that is a URL or anything other than the fixed string.
- Signing headers, then letting a relay rewrite them after signing.
- Requiring a confirmation click or login on the POST endpoint.
- Judging success by whether Gmail displays the button, instead of by the headers.
FAQ
Is a footer unsubscribe link enough for Gmail and Yahoo bulk rules?
No. The bulk-sender requirement is specifically one-click unsubscribe via RFC 8058 headers on marketing mail. A footer link is still needed as the human path, but it does not satisfy the header requirement.
Why must DKIM cover the unsubscribe headers?
So the receiver can trust that the unsubscribe endpoint really came from you. An uncovered header could have been added by anyone in transit, so receivers should not act on it.
How quickly must an unsubscribe be honoured?
Bulk-sender guidance expects opt-outs to be processed within two days. Build for same-day processing; a batched weekly job is not a serious implementation.
Sources
RFC 8058 — Signaling One-Click Functionality for List Email Headers (both headers, fixed Post value, DKIM coverage, no-redirect POST, opaque token) · Google — Email sender guidelines (one-click unsubscribe on marketing/subscribed mail for senders of more than 5,000 messages a day) and Email sender guidelines FAQ (bulk sender defined as close to 5,000 or more messages a day; unsubscribe requests honoured within 48 hours; button display gated on Google's automated eligibility checks; transactional mail excluded) · Yahoo — Sender Requirements & Best Practices (one-click unsubscribe for marketing/subscribed mail; POST highly recommended, mailto acceptable; honour unsubscribes within 2 days; enforcement from February 2024; no volume threshold published) · Merroway — Yahoo/AOL bulk-sender requirements (the wider bulk-sender rules this guide implements).
Did this fix work for you?
Your reaction is stored only in your own browser — it is not sent to us.