---
title: "One-click List-Unsubscribe: what receivers actually check"
canonical: https://pulsepigeon.com/blog/one-click-list-unsubscribe-what-receivers-check
last_updated: 2026-11-11
---

# One-click List-Unsubscribe: what receivers actually check

What RFC 8058 requires for one-click List-Unsubscribe, what mailbox providers can test, and how to check your own endpoint with a POST before you send.

If you send marketing or subscribed mail, a mailbox provider can show an "Unsubscribe" control next to your sender name. That control is not magic. One-click list-unsubscribe works only when your messages carry two specific headers, and when the URL inside them behaves in a way the receiver can rely on. When it does not, the control is missing or the click silently does nothing.

This post lists what the standard requires, what a receiving system can test for, and how to check your own endpoint before you send.

## The two headers

One-click unsubscribe is defined in [RFC 8058](https://www.rfc-editor.org/rfc/rfc8058.html). It builds on the older `List-Unsubscribe` header from [RFC 2369](https://www.rfc-editor.org/rfc/rfc2369.html). A message that supports it carries both headers shown in the first code example after this article, using a placeholder token on example.com.

The first header tells the receiver where to go. The RFC requires that it contain exactly one HTTPS URI; it may also list other URIs, such as a `mailto:` address. The second header tells the receiver that the URL accepts a one-click POST. Its value must be exactly `List-Unsubscribe=One-Click`.

The token in the URL should identify the recipient and the list, and it should be hard to guess. The RFC says the URI must carry enough information to identify them, and that the sender should include a hard-to-forge component and verify it. Treat the token as the only credential, because the request that arrives will carry no other.

## What the receiver sends

When a person clicks the control, the receiver sends an HTTPS POST to your URL. The body is the key and value from the second header, `List-Unsubscribe=One-Click`. The RFC prefers `multipart/form-data` and allows `application/x-www-form-urlencoded`, so your endpoint should read both.

The request must not include cookies, HTTP authorization, or any other context. That has a practical consequence: you cannot ask the person to sign in, and you cannot depend on a session to know who they are. The token has to be enough.

Your response must not be a redirect. The RFC says the sender must not answer with an HTTPS redirect, so do not bounce the request to a "you are unsubscribed" page. Return a plain success status.

## What a receiver can test for

Receivers cannot read your intentions, but they can observe several things:

- **Both headers are present** on the message, and the URL uses HTTPS.
- **The headers are covered by your DKIM signature.** RFC 8058 section 4 says both headers must be covered by the signature and listed in its `h=` tag. If they are not, the receiver should not offer one-click.
- **The endpoint answers a POST** with a success status, without a redirect, and without needing cookies.

You can check the first and second yourself by reading the raw message source of a test email. For the DKIM requirement, look at the `DKIM-Signature` header and confirm that `h=` names `list-unsubscribe` and `list-unsubscribe-post`. If you are tracing a message that fails authentication in general, [diagnose email authentication and alignment](/blog/diagnose-email-authentication-and-alignment) walks through the checks in order.

## Who has to do this

Google's [sender guidelines](https://support.google.com/a/answer/81126) say that senders of 5,000 or more messages per day to personal Gmail accounts must support one-click unsubscribe for marketing and subscribed messages, and must also include a visible unsubscribe link in the body. The guidance describes the two headers above and cites RFC 8058 and RFC 2369. Google's [FAQ on these requirements](https://support.google.com/a/answer/14229414) recommends fulfilling unsubscribe requests within 48 hours and excludes transactional messages, such as password resets, from the one-click requirement; its requirements table lists unsubscribe requests not honored within 48 hours as a compliance issue. Read the current text before you decide where your own mail falls.

A reasonable engineering rule is to put the headers on every marketing or subscribed stream, and to leave password resets and receipts alone. A receipt does not need an unsubscribe control, and attaching one invites people to remove themselves from mail they need.

## Design the endpoint so a scanner cannot unsubscribe people

Security scanners and link prefetchers request URLs found in mail. If a plain GET to your unsubscribe URL changes state, a scanner can opt a person out before they ever read the message. A safer design follows from the RFC's own split:

1. **GET never changes anything.** Answer with a 405, or with a confirmation page that only submits a POST when the person presses a button.
2. **POST changes state only when the body carries the marker.** Require `List-Unsubscribe=One-Click` in the body. A POST without it, such as from a scanner, should do nothing.
3. **Unknown tokens look like known ones.** Return the same empty success for a token you do not recognize, so the status code does not reveal which tokens are valid.
4. **Fail loudly when you cannot save the change.** If your database is down, return a 5xx with a `Retry-After`, so the receiver can retry. A false success means someone who asked to leave keeps getting mail.

The RFC defines the POST with the `List-Unsubscribe=One-Click` body as the one-click request. How your GET behaves, how you answer unknown tokens, and what you do when you cannot save are your own defenses, and they follow from the fact that the endpoint is public, unauthenticated, and linked from every message you send.

## Test the endpoint before you send

Take a real token from a test message and run the request the way a receiver would, as shown in the second code example after this article. Use a staging host you control, for example `mail.example.com` standing in for your own. Check four things in the output:

- The status is a 2xx, not a 3xx.
- There is no `Location` header and no `Set-Cookie` header you rely on.
- Repeating the same request returns the same result and does not error.
- The recipient is now suppressed for that list, which you can confirm in your own data.

Then use a different token, for a recipient who is still subscribed, because the first request has already suppressed the first recipient. Swap the token in the URL and send the same request without the `-d` body. It should leave that recipient subscribed. If it does not, a scanner can unsubscribe your users. If you record suppressions through an API, the [API reference](/docs/reference) lists the message and suppression endpoints.

## What to do next

Send a test message from your own stack and open the raw source. Confirm the two headers are present, that the URL is HTTPS, and that your DKIM signature lists both header names. Then run the POST against a staging token. If any step fails, fix that one before you scale the stream, because mailbox providers use the message itself as a precondition for showing the control.

## Example message headers

```
List-Unsubscribe: <https://mail.example.com/unsubscribe/tok_example123>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
```

## Test the one-click POST with curl

```
curl -i -X POST \
  -d 'List-Unsubscribe=One-Click' \
  https://mail.example.com/unsubscribe/tok_example123
```
