List-Unsubscribe Header: Set Up One-Click Unsubscribe
· 8 min read

The List-Unsubscribe header is a line in the hidden part of an email that tells the mailbox provider where a recipient can opt out. When it is set up for one-click unsubscribe, mailbox providers such as Gmail can show an "Unsubscribe" button right next to your sender name, and a click on it removes the person from your list without a visit to your website.
Most senders only think about this header when a bulk sender rule makes them. That is a pity, because the header does more than tick a compliance box. It gives an unhappy recipient a way out that is not the spam button, and the spam button is the thing your sender reputation can least afford. This guide explains what the header is, what Gmail and Yahoo ask for, how to build it correctly, and how to test it before a campaign goes out.
What the List-Unsubscribe header actually is
Every email has headers that most people never see: the sender, the route it took, the authentication results. List-Unsubscribe is one of them. It holds one or more addresses where an unsubscribe request can be sent, usually an HTTPS link and sometimes a mailto address, and the mailbox provider turns that into a button.
On its own the header only gives the provider a place to point the recipient. The "one-click" part comes from a second header, defined in RFC 8058. It is called List-Unsubscribe-Post, and its only allowed content is the pair List-Unsubscribe=One-Click. That second header tells the provider it can send the unsubscribe request straight to your server as an HTTPS POST, without opening a web page and without asking the person to confirm anything.
So a complete one-click setup is two headers that work together. A typical pair looks like this:
List-Unsubscribe: <https://mail.example.com/u/8f3a91c2d7>, <mailto:unsubscribe@example.com?subject=unsubscribe>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
The long random string in the link is on purpose. RFC 8058 says the address should carry an opaque identifier that is hard to forge, and that your server should verify it. A link like /unsubscribe?email=jane@example.com lets anyone remove anyone.
What Gmail and Yahoo ask for
Both providers put this in their rules for bulk senders. Google's email sender guidelines say that marketing messages and subscribed messages must support one-click unsubscribe, and that you need both headers above. The message body must also include a clearly visible unsubscribe link. Google applies the bulk sender rules to anyone sending more than 5,000 messages a day to personal Gmail addresses. If you are below that today, the header is still the right habit, and we cover the volume side in our Gmail and Yahoo bulk sender summary.
Yahoo's sender best practices ask for a functioning list-unsubscribe header that supports one-click unsubscribe for marketing and subscribed messages. Yahoo says the POST method from RFC 8058 is highly recommended and that a mailto method is acceptable. It also asks you to honor unsubscribes within two days.
Two details from those pages are easy to miss. First, Google says that other options, such as letting people manage their subscriptions or unsubscribing people automatically after bounces, should not replace one-click unsubscribe. Second, the rules talk about marketing and subscribed mail. Neither page says a one-to-one reply to a customer needs the header.
What it has to do with cold email
Cold outreach sits in an uncomfortable spot here. A first email to someone who has never heard of you is a marketing message in the plain sense of the word, and a prospect who does not want it will look for the quickest way to stop it. If the quickest way is the spam button, you pay for it twice. Google asks senders to keep their user-reported spam rate below 0.30% in Postmaster Tools and to aim for under 0.10%, and Yahoo also names 0.3%. We walk through those numbers in the spam complaint rate guide.
A working unsubscribe button does not make a bad list good. It does give the people who would otherwise have complained a different exit, and that is a fair trade.
The law points the same way. The FTC's CAN-SPAM compliance guide says you must give a clear and conspicuous explanation of how to opt out, honor an opt-out request within 10 business days, and not charge a fee for it. It also says the law makes no exception for business-to-business email, so a cold email to a company address carries the same duty. That is U.S. law only, and other countries have their own rules, so check the ones that apply to the people you write to.
How to set it up
You usually do not write these headers by hand. How you add them depends on how you send.
If you send through a sequencing or email marketing platform, look for a setting named one-click unsubscribe or List-Unsubscribe and switch it on. Then send yourself a test and look at the raw headers to confirm both lines are there. Don't assume the setting is on just because the platform offers it.
If you send from your own application or through a mail API, you add the headers when you build the message and you build the endpoint that receives the POST. That endpoint has a few jobs:
- Accept an HTTPS POST whose body is
List-Unsubscribe=One-Click, with no login and no cookies. - Look up the opaque identifier in the address and mark that recipient as unsubscribed in your sending list.
- Answer with a plain success status. RFC 8058 says not to answer the POST with a redirect, since browsers have often turned redirected POSTs into GETs.
- Make sure your sending stops for that address from then on, across every sequence and mailbox.
The last item matters most in practice. A button that records the request but does not stop the next email in a sequence is worse than no button, because the person now has a reason to hit spam.

DKIM has to cover the headers
This is the part that breaks otherwise correct setups. RFC 8058 requires at least one valid DKIM signature on the message, and the signature has to cover both List-Unsubscribe and List-Unsubscribe-Post. If it does not, a receiver should not offer one-click unsubscribe for that message.
In practice, that means the header can be present in your raw message and still produce no button. Before blaming the header, check that DKIM passes for the sending domain at all. Our plain-English SPF, DKIM and DMARC explainer shows how, and a domain health view that checks your DKIM record live is quicker than testing selectors by hand.

That screen shows the result of a DNS check on the domain. It does not tell you which headers your sending platform signs, so you still need to look at a test message. In the raw source, find the DKIM-Signature line and read its h= list. Both header names should appear in it.
Mailto, HTTPS, or both
RFC 8058 requires an HTTPS address in the List-Unsubscribe header for the one-click method. A mailto address is optional. Yahoo calls the mailto method acceptable, and Google's wording asks for the URL form together with the Post header.
The safe choice is to include the HTTPS address and the Post header, and to add a mailto address as a fallback for providers and mail clients that still use it. If you add a mailto address, someone has to read that mailbox, or a script has to process it. An unsubscribe address that nobody reads is a trap.
Test it before the campaign
Give yourself ten minutes before the first real send:
- Send a test from the exact mailbox and platform you will use for the campaign to a Gmail address you control.
- Open the message and use "Show original". Confirm both headers are there and that DKIM passes.
- Look for the "Unsubscribe" link next to the sender name in the message view. If it is missing, check three things first: that DKIM passes, that the Post header is present, and that the link does not redirect.
- Click it with a test address, then confirm that address is suppressed in your sending tool and receives nothing more.
- Repeat on a Yahoo address.
It is also worth putting this on your launch list next to authentication and list hygiene. Our cold email deliverability checklist covers the rest of the pre-launch checks, and the cold email domain setup guide covers the domain side.
FAQ
Do I need the List-Unsubscribe header if I send fewer than 5,000 emails a day?
The bulk sender rules start at that volume for Gmail, but nothing stops you from adding the header earlier. It costs little and gives recipients an exit that is not the spam button.
Does one-click unsubscribe replace the unsubscribe link in the email body?
No. Google asks for a clearly visible unsubscribe link in the message body as well, and Yahoo asks for the same. The header is an addition.
How fast do I have to process an unsubscribe?
Yahoo says to honor unsubscribes within two days. The FTC's CAN-SPAM guide says within 10 business days in the U.S. The safer habit is to suppress the address right away when the POST arrives.
Does the header improve inbox placement?
We have no data that says it does, and neither Google nor Yahoo describes it that way. What it does is give an unhappy recipient an exit other than the spam button, and it keeps you in line with the Gmail and Yahoo rules.
Can a warmup tool add this header for me?
No. The header belongs to the mail you send to real recipients, so it is set in your sending platform or application. Warmup helps a new mailbox build a sending history before that mail goes out. It does not replace the headers or the opt-out handling.
Get the sending side ready first
A new domain that sends its first campaign without warmup, authentication or a working opt-out gets judged on all three at once. If you are about to start, start the free trial. There is no credit card, and setup takes under 2 minutes. If you would rather look at a domain first, the free deliverability checker tests SPF, DKIM, DMARC, MX and blacklists.
- list-unsubscribe header
- one-click unsubscribe
- cold email
- deliverability
- Gmail Yahoo sender rules