# List-Unsubscribe Header: How One-Click Unsubscribe Works

> Set up the List-Unsubscribe header for one-click unsubscribe (RFC 8058): the two headers, the POST endpoint, DKIM, and what Gmail, Yahoo and Outlook check.

Canonical: https://ballast.to/blog/list-unsubscribe-header
Last updated: 2026-11-30

The List-Unsubscribe header is an email header that tells mail apps how to unsubscribe the reader, so Gmail, Yahoo and others can show their own Unsubscribe button next to your name. For one-click unsubscribe (RFC 8058) you add two headers: `List-Unsubscribe` with an HTTPS link, and `List-Unsubscribe-Post: List-Unsubscribe=One-Click`. When the reader clicks the button, the mail provider sends a POST request to that link, and your server unsubscribes them on the spot, with no page and no confirmation.

```card
kind: header
icon: mail
label: RFC 8058 · One-click headers
badge: Both required
title: The two headers Gmail and Yahoo look for on bulk mail
meta: Both must be signed by DKIM (h= tag); the HTTPS URL accepts an unauthenticated POST
link: Check your sending domain | /check
copy: true
---
List-Unsubscribe: ==<https://links.example.com/u/7Hq2mXc>==, <mailto:unsubscribe@example.com?subject=unsubscribe>
==List-Unsubscribe-Post: List-Unsubscribe=One-Click==
```

## What is the List-Unsubscribe header?

It's a header defined in 1998 by RFC 2369 that lists one or more ways to unsubscribe, each in angle brackets: an HTTPS link, a `mailto:` address, or both. Mail apps read it and offer an Unsubscribe button in their own interface, so the reader never has to find a link at the bottom of your email.

On its own, though, the old header was awkward. A `mailto:` link sends an email the reader has to send, and an HTTPS link opens a web page they have to deal with. RFC 8058, published in 2017, added the second header that makes it one click.

## What is one-click unsubscribe (RFC 8058)?

One-click unsubscribe lets a reader leave your list with a single click on their mail app's own Unsubscribe button, with no page to load, no login and nothing to confirm. RFC 8058 makes it work with one more header, `List-Unsubscribe-Post`. When it's present, the mail provider doesn't open your link in a browser: it sends an HTTP POST to it from its own servers, with the body `List-Unsubscribe=One-Click`. Your server takes that request as the unsubscribe itself.

The RFC's rules, in short:

| Rule | What it means |
| --- | --- |
| `List-Unsubscribe` must contain one HTTPS URI | A `mailto:` can sit next to it, but the HTTPS link is required for one-click |
| `List-Unsubscribe-Post` must be exactly `List-Unsubscribe=One-Click` | No other value, no extra parameters |
| Both headers must be covered by a valid DKIM signature | They must be listed in the signature's `h=` tag |
| The POST carries no cookies, HTTP auth or other context | The link itself has to identify who is unsubscribing |

The last rule is why the URL needs an opaque token: something like `/u/7Hq2mXc` that your server can map back to one recipient and one list. Don't put the email address in the URL in plain text, and sign or randomise the token so nobody can unsubscribe other people by guessing.

## Do Gmail, Yahoo and Outlook require one-click unsubscribe?

Gmail does for bulk senders, Yahoo asks for the header and prefers one-click, and Outlook.com asks only for a working unsubscribe link. Each writes its rules for senders of 5,000 or more emails a day and for marketing or subscribed mail:

| | Gmail | Yahoo | Outlook.com |
| --- | --- | --- | --- |
| Header | Both headers, one HTTPS link in `List-Unsubscribe` | A working `List-Unsubscribe` header | Not mentioned |
| One-click POST (RFC 8058) | Required for marketing and promotional mail | "Highly recommended" | Not mentioned |
| `mailto:` alone | Still supported, but doesn't meet the requirement | Acceptable | Not mentioned |
| Link in the body | Clearly visible, and it doesn't have to be one-click | Clearly visible, may open a preference page | A working, easy-to-find link (recommended) |
| Honour it within | 48 hours | 2 days | Not stated |

Sources, checked 30 November 2026: [Gmail's sender guidelines](https://support.google.com/mail/answer/81126) and [FAQ](https://support.google.com/mail/answer/14229414), [Yahoo's sender requirements](https://senders.yahooinc.com/best-practices/), [Outlook's requirements for high-volume senders](https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/strengthening-email-ecosystem-outlook%E2%80%99s-new-requirements-for-high%E2%80%90volume-senders/4399730). Gmail adds that one-click is required only for marketing and promotional messages, so password resets and order confirmations don't need it, and that an unsubscribe removes the person only from the list the message came from.

None of them writes these rules for one-to-one B2B email, and a cold mailbox sending 30 a day is nowhere near 5,000 (see [Gmail sending limits](https://ballast.to/blog/gmail-sending-limits)). We'd add the header to cold email anyway, for two reasons:

- **It turns complaints into unsubscribes.** Someone who doesn't want your email will either unsubscribe or click "Report spam". A button right next to your name makes the first one easier, and [spam complaints are what hurt a sending domain](https://ballast.to/blog/email-reputation) (Gmail asks for a rate under 0.3%).
- **It's free.** Two headers and one endpoint. Gmail, not you, decides whether and when to show its button, but it can't show one without the header.

## What does Gmail's Manage subscriptions view do?

It lists the senders a person gets regular mail from, most frequent first with how many emails each sent in the past few weeks, and lets them unsubscribe from each in one click. Google [launched it in July 2025](https://blog.google/products/gmail/new-manage-subscriptions-unsubscribe/) and says Gmail then "will send an unsubscribe request to the sender on your behalf". Its [help page](https://support.google.com/mail/answer/15621070) adds that this unsubscribes the person from every active list of that sender, that it can take the sender a few days, and that some senders send people to their website instead.

That request is the same one-click POST to your `List-Unsubscribe` link. So the endpoint has to work even when nobody is looking at your email: there's no page, no click on a link in the body, only a POST from Google. If it fails, the person still thinks they've unsubscribed, and Gmail sends [mail that arrives after an unsubscribe straight to Spam](https://support.google.com/mail/answer/1366858).

## How do you add the List-Unsubscribe header?

It depends on how you send:

- **Through an email service or cold email tool**: look for a setting called one-click unsubscribe or List-Unsubscribe. Most add both headers for you; check that the link points at a domain you own.
- **From your own code**: add the two headers when you build the message, before DKIM signing. In Node.js with Nodemailer, for example:

```js
const unsubscribe = [
  `<https://links.example.com/u/${token}>`,
  "<mailto:ana@example.com?subject=unsubscribe>",
].join(", ");

await transporter.sendMail({
  from: "Ana <ana@example.com>",
  to: lead.email,
  subject: "Quick question",
  text: body,
  headers: {
    "List-Unsubscribe": unsubscribe,
    "List-Unsubscribe-Post": "List-Unsubscribe=One-Click",
  },
});
```

- **From Gmail or Outlook by hand**: you can't. Neither lets you set custom headers from the app, which is one reason cold email goes through a sending tool.

## What should the unsubscribe endpoint do?

Two things, depending on the method:

- **POST**: unsubscribe the recipient the token points to and answer with `200`. No redirect, no login, no confirmation step. The request comes from Gmail's or Yahoo's servers, not from the reader's browser.
- **GET**: show a page with a single Unsubscribe button that sends a POST. Never unsubscribe on a GET.

The GET rule isn't in the RFC, but it matters in practice. Corporate mail filters and link scanners open the links in incoming email to check them, and as the RFC itself notes, anti-spam software often fetches the resources in mail headers automatically. If a GET unsubscribed, those scanners would unsubscribe people who never clicked anything.

A minimal handler, as a Next.js route:

```ts
// app/u/[token]/route.ts
export async function POST(_req: Request, { params }: { params: Promise<{ token: string }> }) {
  const recipient = await recipientForToken((await params).token);
  if (recipient) await unsubscribe(recipient); // suppress the address everywhere, stop every sequence
  return new Response("You're unsubscribed.", { status: 200 });
}

export async function GET() {
  return new Response(
    `<form method="post"><p>Stop receiving these emails?</p><button>Unsubscribe</button></form>`,
    { headers: { "content-type": "text/html" } },
  );
}
```

Make the POST idempotent: the same request can arrive more than once, and a second one for someone already unsubscribed should still return `200`.

## Why isn't the Gmail Unsubscribe button showing?

Check these in order:

1. **Both headers are there.** Open the email in Gmail, choose "Show original" and search for `List-Unsubscribe`. You need both lines, spelled exactly as above.
2. **The link is HTTPS.** A `mailto:` alone doesn't give you one-click.
3. **DKIM passes and covers both headers.** In "Show original", DKIM should say PASS. A tool that adds the headers after the message is signed, or a gateway that rewrites them, breaks the signature for those headers. Our [DKIM checker](https://ballast.to/check/dkim) shows whether your domain publishes a key at all.
4. **It's still Gmail's call.** Google's FAQ says the button appears "only for messages that pass Google's automated eligibility checks", even when the headers are right. When we tested Ballast's link domains in October 2026, Gmail showed its button on a new sender's cold email and its one-click POST reached our endpoint, while Outlook.com showed no unsubscribe option for the same sender. Outlook makes its own decision, and Microsoft doesn't document it.

You can also test the endpoint yourself, the way Gmail would call it:

```bash
curl -i -X POST "https://links.example.com/u/7Hq2mXc" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data "List-Unsubscribe=One-Click"
```

You should get `200`, and the recipient should be unsubscribed.

## Do you still need an unsubscribe link in the email body?

Gmail and Yahoo ask bulk senders for both: the header for their button, and a clearly visible link in the body. Gmail says the body link doesn't have to be one-click, and that a `mailto:` link in the body doesn't count as one-click either, so it can lead to the same GET page. For cold email, a plain line works as well, such as "Not interested? Reply 'stop' and I won't email you again", as long as you read the replies and act on them.

## Where should the unsubscribe link point?

At a domain you own and send from, or a subdomain of it, such as `links.yourdomain.com`. A link to your email tool's shared domain puts you next to every other customer of that tool, and it's a domain the reader has never heard of in an email that claims to be from you.

## When this guide isn't enough

The header makes unsubscribing easy. It doesn't make unwanted email wanted: if people unsubscribe or complain in large numbers, the problem is the list or the message, and no header fixes that. Fix who you're emailing first.

## How Ballast handles it

Every email Ballast sends carries both headers, with an HTTPS link plus a `mailto:` to the sending mailbox, added when the message is built, before your mail provider signs it with DKIM. The link sits on your own link domain (`links.yourdomain.com`, one CNAME record), the GET opens a neutral page with your name on it and an Unsubscribe button, and the one-click POST unsubscribes immediately: the address is suppressed and every sequence it's in stops. You choose per workspace whether the body carries a link or a "reply stop" line, and "stop" replies are read and acted on either way. The docs on [sending safety](https://ballast.to/docs/sending-safety) cover the rest.

## FAQ

### What is the List-Unsubscribe header?

An email header (RFC 2369) that tells mail apps how to unsubscribe the reader, with an HTTPS link, a mailto address or both. Gmail and Yahoo use it to show their own Unsubscribe button.

### What is List-Unsubscribe-Post?

The header from RFC 8058 that turns the link into one-click unsubscribe. Its value must be exactly `List-Unsubscribe=One-Click`; the mail provider then sends a POST to your link and you unsubscribe the reader without a confirmation step.

### Is a mailto List-Unsubscribe enough for Gmail?

Not for one-click. RFC 8058 requires an HTTPS link in the header, and Gmail's setup uses the HTTPS link with List-Unsubscribe-Post. Keep a mailto next to it for older mail apps.

### Does the List-Unsubscribe header need DKIM?

Yes. RFC 8058 says both headers must be covered by [a valid DKIM signature](https://ballast.to/blog/dkim-selector), listed in its `h=` tag. Add them before the message is signed.

### How fast do I have to process an unsubscribe?

Gmail asks bulk senders for 48 hours and Yahoo for 2 days; Outlook.com doesn't state a deadline. With one-click, there's no reason to wait: unsubscribe on the POST.

### Is one-click unsubscribe required for cold email?

Not by the letter of the rules: Gmail and Yahoo require it for bulk marketing and subscribed mail, and Outlook.com asks only for a working link. It's still worth adding, because Gmail's Unsubscribe button and its Manage subscriptions view both use it, and an easy unsubscribe is what keeps people away from the spam button.

## Sources

- [RFC 8058: Signaling One-Click Functionality for List Email Headers](https://www.rfc-editor.org/rfc/rfc8058.html), checked 20 October 2026.
- [RFC 2369: The Use of URLs as Meta-Syntax for Core Mail List Commands](https://www.rfc-editor.org/rfc/rfc2369.html).
- [Gmail email sender guidelines](https://support.google.com/mail/answer/81126) and [FAQ](https://support.google.com/mail/answer/14229414), checked 30 November 2026.
- [Yahoo sender best practices](https://senders.yahooinc.com/best-practices/), checked 30 November 2026.
- [Outlook's requirements for high-volume senders](https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/strengthening-email-ecosystem-outlook%E2%80%99s-new-requirements-for-high%E2%80%90volume-senders/4399730) (updated 30 April 2025), checked 30 November 2026.
- [Manage your subscriptions in Gmail](https://support.google.com/mail/answer/15621070) and [Google's announcement](https://blog.google/products/gmail/new-manage-subscriptions-unsubscribe/) (8 July 2025), checked 30 November 2026.
