Deliverability

The List-Unsubscribe header and one-click unsubscribe

Short answer

The List-Unsubscribe header tells mail apps how to unsubscribe someone from your mail, so they can show an Unsubscribe button next to your name. One-click unsubscribe adds a second header, List-Unsubscribe-Post: List-Unsubscribe=One-Click, defined in RFC 8058. Gmail and Yahoo require both for marketing and subscribed mail from bulk senders. Transactional messages such as password resets are excluded.

Last checked 16 November 2026

The List-Unsubscribe header is a line in your email’s headers that tells mail apps how to unsubscribe the recipient. When it is present, Gmail, Yahoo, Apple Mail and others can show an Unsubscribe link next to the sender’s name, so people leave your list instead of pressing “Report spam”. One-click unsubscribe adds a second header, List-Unsubscribe-Post, so the mail app can unsubscribe the person with a single request, without opening a web page.

What the headers look like

List-Unsubscribe: <https://acme.com/unsubscribe?t=8f2c1d>, <mailto:unsubscribe@acme.com?subject=unsubscribe>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
  • List-Unsubscribe comes from RFC 2369. It holds one or more URLs in angle brackets: an HTTPS link, a mailto: address, or both.
  • List-Unsubscribe-Post comes from RFC 8058. Its value must be exactly List-Unsubscribe=One-Click.

The token in the URL (t=8f2c1d here) should identify the recipient and the list without exposing the email address in plain text, and it should be hard to guess.

How one-click unsubscribe works

  1. The recipient clicks Unsubscribe in their mail app.
  2. The mail app sends an HTTPS POST to the URL in List-Unsubscribe, with the body List-Unsubscribe=One-Click.
  3. Your server unsubscribes the person and returns a success response. No login, no confirmation page, no “are you sure”.

RFC 8058 adds three conditions:

  • The List-Unsubscribe header must contain an HTTPS URI.
  • The message must have a valid DKIM signature that covers both List-Unsubscribe and List-Unsubscribe-Post (they must be listed in the signature’s h= tag). Without that, receivers should not offer one-click.
  • The POST body is sent as a form, preferably multipart/form-data, though application/x-www-form-urlencoded is allowed. Accept both.

Your endpoint should also handle GET, because some mail apps and security scanners open the link. Show a page with a button for GET and only unsubscribe on POST, so link scanners do not unsubscribe people by accident.

What Gmail and Yahoo require

Since 2024, Gmail and Yahoo require bulk senders to support one-click unsubscribe:

  • Gmail: senders of more than 5,000 messages a day to Gmail accounts must support one-click unsubscribe for marketing and subscribed messages, with List-Unsubscribe-Post: List-Unsubscribe=One-Click and an HTTPS List-Unsubscribe URL, plus a clearly visible unsubscribe link in the body. Source: Google sender guidelines. Google’s FAQ recommends processing requests within 48 hours.
  • Yahoo: bulk senders must have a functioning List-Unsubscribe header supporting one-click for marketing and subscribed messages. The POST method is “highly recommended” and mailto is acceptable. Unsubscribes must be honored within 2 days. Source: Yahoo sender best practices.

Our Gmail and Yahoo bulk sender rules guide covers the rest of the requirements.

Do transactional emails need a List-Unsubscribe header?

No, not for the Gmail rule. Google’s FAQ states that transactional messages are excluded from the one-click requirement, and gives password resets and reservation notices as examples. Receipts, login codes, security alerts and shipping updates fall into the same group.

Be honest about what is transactional. A “receipt” that is mostly a promotion is marketing. A product newsletter sent to all users is marketing even if it comes from your app. If people can sensibly opt out of a message, give them a way to. See transactional vs marketing email.

How to add the headers yourself

If you send marketing or notification mail through an email API, add the headers on each message. With Mailcandor, pass them in headers:

const res = await fetch('https://api.mailcandor.com/v1/emails', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MAILCANDOR_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    from: 'Acme <news@news.acme.com>',
    to: 'sam@example.com',
    subject: 'What shipped in November',
    html: '<p>...</p><p><a href="https://acme.com/unsubscribe?t=8f2c1d">Unsubscribe</a></p>',
    headers: {
      'List-Unsubscribe': '<https://acme.com/unsubscribe?t=8f2c1d>',
      'List-Unsubscribe-Post': 'List-Unsubscribe=One-Click',
    },
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);

After you send, open the received message in Gmail, choose “Show original”, and check two things: both headers are present, and the DKIM-Signature header’s h= list includes list-unsubscribe and list-unsubscribe-post.

Handling the unsubscribe request

A minimal endpoint does three things: looks up the token, marks the recipient as unsubscribed from that list, and returns 200. Do it synchronously or queue it, but make sure it takes effect within two days. Then check that list before every send. If the token is unknown, still return success, so you do not leak which tokens are valid. Log every request with a timestamp, so you can show when someone left if they later complain.

Common mistakes

  • HTTP instead of HTTPS. RFC 8058 requires an HTTPS URI for one-click. A plain http:// link does not qualify.
  • Headers added after signing. If a system adds the headers after the DKIM signature is created, the signature does not cover them and one-click will not be offered. Add them before the message is signed.
  • A confirmation step. Asking people to log in or confirm on the POST request defeats the purpose. The POST itself is the confirmation.
  • Unsubscribing from everything. One-click should remove the person from the list the message came from. If you have several lists or topics, offer a preferences page in the body link as well.
  • Ignoring the mailto address. If you include a mailto: option, something must read that inbox and process the requests within two days.
  • Slow processing. Sending another campaign to someone who unsubscribed yesterday is the fastest way to earn a spam complaint.

The easier route

Mailcandor Broadcasts handle this for you: audiences, contacts and topics with one-click unsubscribe using the RFC 8058 List-Unsubscribe-Post header, so you do not need to build the endpoint. For transactional mail sent through the email API, you can leave the headers off.

Questions

Do transactional emails need an unsubscribe link?

Not for Gmail's one-click rule. Google's FAQ says transactional messages, such as password resets, are excluded from the one-click unsubscribe requirement. Your local marketing laws may still apply to anything promotional.

What is the exact one-click header value?

List-Unsubscribe-Post: List-Unsubscribe=One-Click. It must appear together with a List-Unsubscribe header that contains an HTTPS URL.

Can I use only a mailto: List-Unsubscribe?

Yahoo accepts mailto but highly recommends the one-click POST method. Gmail asks for the HTTPS one-click version. You can include both in the same header.

How fast must I process an unsubscribe?

Yahoo requires unsubscribes to be honored within 2 days. Google recommends processing them within 48 hours.

Why does Gmail not show an Unsubscribe button for my mail?

Gmail decides when to show it. Check that both headers are present, that the URL is HTTPS, and that your DKIM signature covers both headers, which RFC 8058 requires.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.