---
title: "List-Unsubscribe header generator"
url: "https://coldagentai.com/tools/list-unsubscribe-generator.md"
canonical_url: "https://coldagentai.com/tools/list-unsubscribe-generator"
last_updated: "2026-10-18"
type: "tool"
summary: "Generate the List-Unsubscribe and List-Unsubscribe-Post headers for one-click unsubscribe, with the exact values from RFC 2369 and RFC 8058, in your browser."
related: ["https://coldagentai.com/tools.md", "https://coldagentai.com/tools/dkim-generator.md", "https://coldagentai.com/tools/dkim-checker.md", "https://coldagentai.com/tools/dmarc-generator.md", "https://coldagentai.com/tools/spf-generator.md", "https://coldagentai.com/tools/email-header-analyzer.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# List-Unsubscribe header generator

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Generate the List-Unsubscribe and List-Unsubscribe-Post headers for one-click unsubscribe, with the exact values from RFC 2369 and RFC 8058, in your browser.

The List-Unsubscribe header puts an unsubscribe control in the mail app's own interface, so a reader who is done with your mail leaves with one click instead of marking it as spam. This generator writes the header lines for you: the angle-bracketed https link and address, and the fixed one-click companion header from RFC 8058, with checks for the mistakes that make receivers ignore them.

The URL and address you type are turned into header text by code running in this page and are never sent anywhere.

## Inputs

- Unsubscribe URL: an https link that identifies the recipient and the list.
- Unsubscribe address: optional. A mailbox that removes the sender when it receives a message.
- One-click: switch on to add the List-Unsubscribe-Post header that receivers use to unsubscribe without opening a page.

## How it works

- The URL is checked: it must start with https, contain no spaces, quotes, angle brackets or commas, and have a valid domain name. A plain http link is refused.
- The address, if given, is checked for valid syntax and written as a mailto link with the subject unsubscribe, the form used in the RFC 8058 examples.
- Each target goes inside angle brackets and the targets are joined with a comma and a space, as RFC 2369 describes. The https link comes first.
- With one-click on, a second header is added whose value is exactly List-Unsubscribe=One-Click, the only value RFC 8058 allows.
- The tool then lists the header names your DKIM signature must cover, ready for the signing settings of your sending platform.
- Warnings flag a link that does not look recipient-specific, a header line over the 998 character limit, and a sender who has not turned one-click on.

## What the two RFCs say

RFC 2369 defines the List-Unsubscribe header. Its value is one or more links in angle brackets, separated by commas, in order of preference from left to right. A mail app uses the first kind of link it supports. The classic form is a mailto address, which makes the reader's app send a message.

RFC 8058 adds one-click unsubscribe on top. The message carries one List-Unsubscribe header with an https link, and one List-Unsubscribe-Post header whose value is List-Unsubscribe=One-Click. A receiver can then send an HTTPS POST to that link with that text as the body, and the sender's server must unsubscribe the recipient without asking anything more. The RFC requires the link to hold enough information to identify the recipient and the list, and recommends an opaque, hard-to-forge part so a stranger cannot unsubscribe other people.

The RFC also says the message must have a valid DKIM signature covering at least those two headers, and that the sender must not answer the POST with an HTTPS redirect.

## What Gmail and Yahoo ask of bulk senders

Gmail says that senders of more than 5,000 messages a day to Gmail accounts must support one-click unsubscribe for marketing and subscribed messages, and must also include a clearly visible unsubscribe link in the message body. Its page shows the two headers, List-Unsubscribe-Post with the one-click value and List-Unsubscribe with an https link, as the way to set it up.

Yahoo asks bulk senders for a working List-Unsubscribe header that supports one-click for marketing and subscribed messages. It calls the POST method of RFC 8058 highly recommended and the mailto method acceptable, asks for a clearly visible unsubscribe link in the body, and asks senders to honor unsubscribes within 2 days. Both providers also ask senders to keep spam complaint rates below 0.3 percent.

Whether your volume counts as bulk is decided by each provider, so if you send in volume to either one, treat one-click as a requirement and not an option.

## Setting it up, step by step

First, make a link for each recipient and list, with a long random token in it, and build a page or endpoint that accepts a POST there and removes that person right away. Second, enter the link here, add an unsubscribe address if you want a fallback, and keep one-click on. Third, add the two header lines to the messages your system sends, and make sure the DKIM signature covers them. Fourth, send a test to a Gmail mailbox and look for the unsubscribe control in the message view, then check the message headers with the header analyzer to confirm both lines arrived and DKIM passed.

## Worked example

Input:

```
URL: https://example.com/unsubscribe/7f3a9c2e41b8d605
Address: unsubscribe@example.com
One-click: on
```

Result:

```
List-Unsubscribe: <https://example.com/unsubscribe/7f3a9c2e41b8d605>, <mailto:unsubscribe@example.com?subject=unsubscribe>
List-Unsubscribe-Post: List-Unsubscribe=One-Click

Sign these headers (h=): list-unsubscribe:list-unsubscribe-post
```

## Limits

- Adding the header is not enough on its own. Your server must accept an HTTP POST at the link and unsubscribe the recipient at once, with no further click, and it must not answer with a redirect.
- The message must carry a valid DKIM signature that covers both headers. Without it, a receiver should not offer the one-click control for that message.
- The token check is a guess from the shape of the link. It cannot know whether your server really verifies the token, so test it.
- Most sending platforms add these headers for you. Use this generator for platforms that let you set custom headers, for mail you send from your own system, or to check what your platform sends.
- Thresholds for bulk senders are set by Gmail and Yahoo and can change. The figures on this page were read on the date shown in the sources.

## Questions

**What is the exact one-click header value?**

List-Unsubscribe-Post: List-Unsubscribe=One-Click. RFC 8058 allows only that value, and it sits beside a List-Unsubscribe header that holds an https link.

**Do I need both a URL and a mailto address?**

For one-click you need the https URL. The mailto address is optional and works as a fallback for older mail apps. Yahoo accepts the mailto method, while Gmail asks bulk senders for one-click.

**Why must the message be DKIM signed?**

The signature proves that the unsubscribe headers came from the sender and were not added later. RFC 8058 requires the signature to cover both headers, and a receiver should not show the one-click control otherwise.

**Why must the link be https and not http?**

RFC 8058 requires one https link in the header, and the receiver sends a POST to it. A plain http link is refused by this tool for that reason.

**What should happen when the POST arrives?**

The server removes the person identified by the link from that list straight away and answers with a success status. It must not redirect, ask for a login or wait for another click.

**Is a visible unsubscribe link in the email still needed?**

Yes. Gmail and Yahoo both ask for a clearly visible unsubscribe link in the message body as well as the header, and it can lead to a preference page.

## Sources

- [RFC 2369: The Use of URLs as Meta-Syntax for Core Mail List Commands](https://www.rfc-editor.org/rfc/rfc2369.txt) (read 2026-10-18)
- [RFC 8058: Signaling One-Click Functionality for List Email Headers](https://www.rfc-editor.org/rfc/rfc8058.txt) (read 2026-10-18)
- [RFC 5322: Internet Message Format (line length limits)](https://www.rfc-editor.org/rfc/rfc5322.txt) (read 2026-10-18)
- [Gmail Help: Email sender guidelines (5,000 messages a day, one-click unsubscribe)](https://support.google.com/mail/answer/81126?hl=en) (read 2026-10-18)
- [Yahoo Sender Hub: sender best practices (bulk sender requirements)](https://senders.yahooinc.com/best-practices/) (read 2026-10-18)

## Related tools

- [DKIM generator](https://coldagentai.com/tools/dkim-generator.md)
- [DKIM checker](https://coldagentai.com/tools/dkim-checker.md)
- [dmarc-generator](https://coldagentai.com/tools/dmarc-generator.md)
- [spf-generator](https://coldagentai.com/tools/spf-generator.md)
- [Email header analyzer](https://coldagentai.com/tools/email-header-analyzer.md)

## Related

- [Free cold email tools](https://coldagentai.com/tools.md)
- [DKIM record generator](https://coldagentai.com/tools/dkim-generator.md)
- [DKIM Checker: Find and Test a DKIM Record](https://coldagentai.com/tools/dkim-checker.md)
- [DMARC record generator](https://coldagentai.com/tools/dmarc-generator.md)
- [SPF record generator](https://coldagentai.com/tools/spf-generator.md)
- [Email header analyzer](https://coldagentai.com/tools/email-header-analyzer.md)
