List-Unsubscribe Header: How to Set Up One-Click Unsubscribe
How to add the List-Unsubscribe and List-Unsubscribe-Post headers to marketing email: the exact values, an unsubscribe address that accepts an HTTPS POST, DKIM coverage for both headers, the body link and a test.
By Muhammed SevimliPublished 5 min read

Transcript
One-click unsubscribe takes five steps, two headers first. Add List-Unsubscribe with one HTTPS address, plus List-Unsubscribe-Post set to One-Click. Make that address accept a POST and remove the person without a redirect. Sign both headers with DKIM, a signature your service adds. Keep a visible link and process requests within forty-eight hours. Last, POST to the address by hand and send yourself a test message. The full guide is on Sendicorn.
Gmail asks for one-click unsubscribe from senders of more than 5,000 messages a day, and Yahoo asks bulk senders for a working one-click list-unsubscribe header. Setting it up comes down to five steps. Add two headers to each marketing message: List-Unsubscribe with one HTTPS address, and List-Unsubscribe-Post with the value List-Unsubscribe=One-Click. Build that address so it accepts an HTTPS POST and removes the person without a redirect. Sign both headers with DKIM, a signature your sending service adds to each message. Keep a visible unsubscribe link in the body and process requests within the 48 hours Google recommends and the 2 days Yahoo lists. Then POST to the address by hand and send yourself a test message.
Which messages need one-click unsubscribe
Gmail's sender guidelines say that if you send more than 5,000 messages per day to Gmail accounts, your marketing and subscribed messages must support one-click unsubscribe (Gmail Help). The Google FAQ applies the one-click requirement to marketing and promotional messages, and describes a bulk sender as one that sends close to 5,000 messages or more to personal Gmail accounts within 24 hours (Gmail Help FAQ).
Yahoo asks bulk senders for a functioning list-unsubscribe header that supports one-click unsubscribe for marketing and subscribed messages, and calls the Post method from RFC 8058 highly recommended (Yahoo's sender best practices). An RFC (Request for Comments) is a numbered specification, and RFC 8058 is the one that defines one-click unsubscribe (RFC 8058).
Add the two headers
A header is a line of metadata that travels with the email. Mail software reads it, and you can see it in the raw message source. Google's help page shows the same pair with its own sample address (Gmail Help). The address below is a placeholder:
Message headers · example
List-Unsubscribe-Post: List-Unsubscribe=One-Click
List-Unsubscribe: <https://mail.example.com/unsubscribe/k3Jx9qT2vL8m>List-Unsubscribe comes from RFC 2369, which describes its value as angle-bracket URLs (RFC 2369). RFC 8058 adds two rules: the header contains one HTTPS URI, and List-Unsubscribe-Post contains the single pair List-Unsubscribe=One-Click (RFC 8058).
The second header is the same text on each message. The address in the first header carries the recipient and the list, so your code builds it per message once it knows who the message goes to.
Build the unsubscribe address
The address has to contain enough information to identify the recipient and the list. RFC 8058 also asks for an opaque identifier or another hard-to-forge component, and for the server to verify it (RFC 8058). A token is a value your server generates and looks up later. The random string at the end of the example address plays that role.
The request is a POST because anti-spam software often fetches the URLs in header fields automatically, and a sender cannot tell that fetch from a person's action. The mail software sends the pair List-Unsubscribe=One-Click as the request body. RFC 8058 says the body should be multipart/form-data and allows application/x-www-form-urlencoded, so an endpoint that accepts both covers either. Google's page shows what you receive: a POST /unsubscribe/example HTTP/1.1 request to the path of your address (Gmail Help).
The request carries no cookies, no HTTP authorization and no other context, so a login session cannot be part of the check. Answer at that address directly. RFC 8058 prohibits an HTTPS redirect, because redirected POSTs have historically not worked reliably and many browsers have turned them into GETs.
Sign both headers with DKIM
DKIM (DomainKeys Identified Mail) lets receivers check a signature on each message against a public key in your domain's DNS. The signature names your domain in its d= tag and a selector in its s= tag. A selector is a label that lets one domain publish several keys.
RFC 8058 asks you to apply at least one valid DKIM signature. List-Unsubscribe and List-Unsubscribe-Post have to be covered by it and listed in the h= tag, which names the headers the signature protects. A fragment looks like this:
DKIM-Signature · fragment
DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=selector1;
h=from:to:subject:date:list-unsubscribe:list-unsubscribe-post; ...When that signature is missing, the receiver should not offer one-click unsubscribe for the message (RFC 8058). Because a header in h= is part of what gets signed, both headers need to be on the message at the moment it is signed.
Keep a visible link and process requests quickly
The headers are read by mail software. The body link is for the reader who scrolls to the footer. Gmail asks for a clearly visible unsubscribe link in the body of marketing messages (Gmail Help), and its FAQ says additional unsubscribe links in the body can lead to a preferences page that you specify (Gmail Help FAQ). Yahoo's page lists a clearly visible link in the body that may direct to a preference page, and recommends an unsubscribe process that does not require users to log in (Yahoo's sender best practices).
For timing, the Gmail Help FAQ recommends fulfilling unsubscribe requests within 48 hours (Gmail Help FAQ). Yahoo lists honoring unsubscribes within 2 days among its requirements for bulk senders (Yahoo's sender best practices).
Test the address before you send
Start with the POST. Use curl, a command-line tool for HTTP requests. Its -d option sends the pair as application/x-www-form-urlencoded and its -F option sends it as multipart/form-data. Run both against your address:
curl · test
curl -i -X POST -d "List-Unsubscribe=One-Click" "https://mail.example.com/unsubscribe/k3Jx9qT2vL8m"
curl -i -X POST -F "List-Unsubscribe=One-Click" "https://mail.example.com/unsubscribe/k3Jx9qT2vL8m"Read the status line of each. A 3xx status means your server redirects, which RFC 8058 prohibits. Then check that the person is gone from that list.
Next, change one character of the token and POST again. A token your server verifies should remove nobody.
Last, send a test message to a mailbox you control and open its raw source. Find both headers, check that List-Unsubscribe appears once, check that the h= list in the DKIM-Signature names them, and check that Authentication-Results shows a DKIM pass. Repeat this for each kind of marketing message you send, such as a newsletter and an automated sequence.
What Sendicorn adds to marketing email
Sendicorn adds an unsubscribe link and one-click unsubscribe headers to campaigns, and to templates and automations sent as marketing. Please do not remove, hide or break them. An unsubscribe takes effect at once: from that moment the person gets no more marketing email from that list. The rules are on the acceptable use page, effective 14 October 2026.
Email sent through the API is for transactional messages such as receipts, sign-in links and notices someone asked for. Marketing goes out as a campaign or a marketing template, so it carries the link and headers. When you import a list, people who unsubscribed or bounced come in blocked.
Whichever tool adds these headers, the test above shows whether they arrive on each kind of message. The DKIM key for your domain has its own walkthrough in How to Set Up SPF, DKIM and DMARC for Your Sending Domain.
Next step
Run the test above again whenever you change how your messages are built or signed, and keep the raw source of a passing test message to compare with later ones. See the Before you send check, with its Unsubscribe link item, on the Sendicorn home page.