One-click unsubscribe works through two email headers: List-Unsubscribe with an HTTPS URL (a mailto address is optional) and List-Unsubscribe-Post: List-Unsubscribe=One-Click, both covered by your DKIM signature. When a recipient clicks Unsubscribe in Gmail or Yahoo, the mailbox provider sends a POST request to that URL, and your server must stop mailing the address without asking for anything else.

This guide shows the exact headers, what the endpoint must do, how to test it with Gmail and curl, and the failures that make the Unsubscribe button disappear.

Key takeaways

  • Required for bulk marketing mail: Gmail and Yahoo require it from bulk senders on marketing and subscribed messages; transactional mail is exempt.
  • The POST is the unsubscribe: no login, no confirmation page, no redirect, and a repeated request must still succeed.
  • Never unsubscribe on GET: security scanners open links in emails, so a GET should only show a page.
  • DKIM must sign both headers: if they are added after signing, Gmail treats the message as not supporting one-click.

Who requires one-click unsubscribe, and for which mail

GmailYahoo
WhoSenders of about 5,000+ messages a day to personal Gmail accountsBulk senders (no published number)
Which mailMarketing and promotional (subscribed) messagesMarketing and subscribed messages
MethodRFC 8058 POST; mailto alone does not qualifyRFC 8058 POST "highly recommended"; mailto "acceptable"
Time to honorWithin 48 hours (recommended; mitigation unavailable if not met)Within 2 days
Body linkClearly visible unsubscribe link also requiredClearly visible link; may go to a preference page

Sources: Google's sender guidelines FAQ and Yahoo's sender best practices, as of November 2026. Password resets, receipts and booking confirmations are excluded, but Google notes that recipients, not Google, decide what counts as promotional. Our overview of bulk sender requirements covers the authentication and spam-rate rules that come with these.

Even below the threshold, add the headers. Gmail's "Manage subscriptions" view, rolled out from July 2025 according to the Google Workspace Updates blog, lets people unsubscribe from many senders in one place. An easy unsubscribe is also the cheapest way to keep your spam complaint rate down: people who can leave in one click do not need the spam button.

The exact one-click unsubscribe headers (RFC 8058)

RFC 8058 extends the older List-Unsubscribe header from RFC 2369. A compliant message carries:

List-Unsubscribe: <https://mail.example.com/u/7f3a9c2e41b8d6>, <mailto:unsub@mail.example.com?subject=unsub-7f3a9c2e41b8d6> List-Unsubscribe-Post: List-Unsubscribe=One-Click
  • Exactly one HTTPS URI, in angle brackets. A mailto URI may follow, separated by a comma.
  • The URI identifies the recipient and the list through an opaque, hard-to-forge token, not a plain email address that anyone could edit. The RFC says the server should check that the token is valid.
  • The second header has one fixed value: List-Unsubscribe=One-Click. Nothing else, no variants.
  • Use a per-recipient URL, generated at send time. A shared URL cannot tell you who clicked.

DKIM must sign both headers

RFC 8058 says the message must carry a valid DKIM signature whose h= tag includes both List-Unsubscribe and List-Unsubscribe-Post. Without that, a forwarder could insert its own unsubscribe URL, so the receiver should not offer one-click at all.

Check it in the raw message: the DKIM-Signature header for your domain should contain something like h=from:to:subject:date:message-id:list-unsubscribe:list-unsubscribe-post.

The usual way this breaks is a tool that adds the headers after the provider has signed the message. If you send through Amazon SES, SendGrid or Mailgun, set the headers in the API or SMTP request so they exist before signing. DKIM setup itself is covered in our SPF, DKIM and DMARC setup guide.

What your POST endpoint must do

The mailbox provider sends List-Unsubscribe=One-Click as the body, as multipart/form-data or application/x-www-form-urlencoded. Your endpoint has to handle both and follow these rules:

  1. No authentication. The request carries no cookies, session or HTTP authorization, by design. Identify the recipient from the token in the URL alone.
  2. No confirmation step. The POST itself unsubscribes. Google states that links leading to a landing page do not comply.
  3. No redirect. RFC 8058 forbids answering with an HTTPS redirect. Return 200, 202 or 204 directly from the URL in the header.
  4. Idempotent. A second POST for the same token returns success again, not an error. Providers can retry, and people click twice.
  5. Fast. Accept the request, queue the change, answer within a second or two. Do not make the provider wait on a CRM sync.
  6. Applied within 48 hours, ideally immediately, across every system that can send to that address: your marketing tool, CRM exports and any automation queue.
  7. Scoped correctly. Remove the person from the list the message belonged to. Google notes that one-click unsubscribe does not have to remove them from every message you send; if you only run one newsletter, the list and "all marketing" are the same thing.

A practical token design: an HMAC signature of the contact ID and list ID made with a server-side secret, so the endpoint can verify it without a database lookup and nobody can forge a token for another address. Do not let tokens expire; people unsubscribe from emails that are months old, and an expired link pushes them to the spam button.

A GET request to the same URL is different. Link scanners in corporate gateways and some mail apps fetch URLs automatically, so a GET must not unsubscribe. Show a page with a single "Unsubscribe" button that sends the POST, plus frequency options if you offer them.

How to test one-click unsubscribe

  1. Send a real campaign to a Gmail and a Yahoo test address, through the same sending path as production.
  2. Read the raw headers. In Gmail, open the message, choose the three-dot menu, then Show original. Confirm both headers, DKIM: 'PASS' for your domain, and that the h= list includes both header names.
  3. Look for the Unsubscribe link next to the sender name at the top. Gmail shows it only for messages that pass its checks, and it may not appear for a new or very low-volume sender even when the headers are right.
  4. POST to the endpoint yourself with curl, both content types:
curl -i -X POST "https://mail.example.com/u/7f3a9c2e41b8d6" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data "List-Unsubscribe=One-Click" curl -i -X POST "https://mail.example.com/u/7f3a9c2e41b8d6" \ -F "List-Unsubscribe=One-Click"
  1. Read the status line. Expect HTTP/2 200 (or 202/204). A 301/302, 401/403, 405 or an HTML login page means failure.
  2. Run the same command again and expect the same success: that is the idempotency check.
  3. Confirm the contact is suppressed in your sending tool, then send another campaign and make sure the test address does not receive it.

Repeat the test after any change to your website firewall, domain or sending platform. If you send through Amazon SES, its event destinations can also report Subscription events for List-Unsubscribe clicks when you use SES list management; see our guide to Amazon SES bounce and complaint handling.

Common failures and how to fix them

What you seeLikely causeFix
No Unsubscribe link in GmailHeaders missing, DKIM does not cover them, or sender too new/low volumeCheck Show original; sign both headers; keep sending consistently
curl returns 403Firewall or bot protection blocks POSTs without browser cookiesExempt the unsubscribe path from challenges and CSRF checks
curl returns 301 or 302http-to-https, www or trailing-slash redirectPut the final URL in the header
405 Method Not AllowedEndpoint only accepts GETAccept POST on the same URL
Second POST returns 404 or 410Token deleted after first useKeep tokens valid; return success when already unsubscribed
Contacts unsubscribed who never clickedGET request triggers the unsubscribeUnsubscribe only on POST
People unsubscribed but still mailedOpt-out written to one system, sends come from anotherOne suppression list that every sending path checks
Header only has mailtoOld template or platform defaultAdd an HTTPS URI and the Post header

eMailBase sends through your own provider account, so whatever platform you use, eMailBase included, run the test above on a real campaign and check the raw headers before assuming one-click works. The DNS and deliverability checks cover SPF, DKIM and DMARC, which is the part DKIM coverage depends on.

Frequently asked questions

Do transactional emails need one-click unsubscribe?

No. Gmail excludes messages such as password resets, reservation confirmations and receipts. Mixed messages are the risk: a receipt with a large promotional block can be read as marketing, so keep promotions out of transactional templates.

Is a mailto-only List-Unsubscribe header enough?

Not for Gmail, which says mailto links do not meet its one-click requirement. Yahoo calls mailto acceptable but recommends the POST method. Use both: the HTTPS URI for one-click and the mailto as a fallback for clients that use it.

Can the one-click URL point to a preference center?

The header URL cannot; the POST must unsubscribe on its own. The visible link in your email body can lead to a preference page where people choose topics or frequency, as both Google and Yahoo allow.

Does one-click unsubscribe increase my unsubscribe rate?

Usually a little, and that is fine. Those readers were going to leave anyway, and leaving through the spam button costs you reputation while an unsubscribe does not.

Two signed headers and an endpoint that unsubscribes on POST, without questions or redirects, are all one-click unsubscribe takes. For the rest of the inbox-placement checklist, see our guide on why emails go to spam.