Close-up of a fingertip poised over a mouse for a list-unsubscribe header setup test

List-Unsubscribe Header Setup: Add One-Click Opt-Out

For a working list-unsubscribe header setup, add a List-Unsubscribe header containing an HTTPS unsubscribe URL and a List-Unsubscribe-Post: List-Unsubscribe=One-Click header. Your endpoint must process the mailbox provider’s POST request and unsubscribe the identified recipient from the relevant list without another confirmation step, and a valid DKIM signature must cover both headers, as specified in RFC 8058’s one-click unsubscribe requirements.

The headers do not replace the unsubscribe link in your message: Google’s sender guidelines require both one-click unsubscribe and a clearly visible body link for marketing and subscribed messages covered by its bulk-sender requirements. This guide walks through the header syntax, endpoint behavior, DKIM coverage, platform settings, and testing from opt-out to suppression. It also explains how to troubleshoot missing unsubscribe controls and requests that fail to stop future sends.

The short answer: send the headers and handle the opt-out

To add one-click unsubscribe, send the List-Unsubscribe and List-Unsubscribe-Post headers, provide an HTTPS endpoint that handles the unsubscribe POST, sign both headers with DKIM, and apply the opt-out to the relevant mailing list. The headers advertise the option; your backend must complete the unsubscribe.

RFC 8058 defines the implementation: List-Unsubscribe includes an HTTPS URL, and List-Unsubscribe-Post carries the value List-Unsubscribe=One-Click. The receiving mailbox service can then send a POST request to that URL. Your endpoint must identify the recipient and list without requiring a login, cookies, or a confirmation step.

The standard explains how one-click unsubscribe works; mailbox providers determine which senders and messages must support it. Under Google’s email sender guidelines, covered bulk senders must support one-click unsubscribe for marketing and subscribed messages sent to personal Gmail accounts. Those messages must also retain a clearly visible unsubscribe link in the message body.

Keep promotional subscriptions separate from transactional mail. Google’s sender guidelines FAQ distinguishes promotional messages from transactional messages such as receipts and password resets, and explains that a mailto link or preference page alone does not meet its one-click requirement. Yahoo’s unsubscribe guidance likewise focuses on promotional messages and says a body link alone is insufficient.

This is a technical setup guide, not a complete US legal-compliance checklist. For the broader authentication, reputation, and sending requirements, use our Gmail and Yahoo bulk sender requirements checklist.

Add the List-Unsubscribe and List-Unsubscribe-Post headers

Add both fields to the outgoing message headers—not to the HTML body. The first provides the unsubscribe destination; the second signals that the destination supports a one-click unsubscribe request.

Illustrative plain-text header example

List-Unsubscribe: <https://example.com/unsubscribe/opaque-token>

List-Unsubscribe-Post: List-Unsubscribe=One-Click

The example.com endpoint above is a placeholder, not a working unsubscribe service. Replace it with your own HTTPS endpoint and a token that lets your system identify the recipient and mailing list.

Follow the RFC 8058 implementation specification when setting these fields:

  • List-Unsubscribe: Keep the angle brackets around the HTTPS URL. This is the destination the receiving mail service can contact to complete the opt-out.
  • List-Unsubscribe-Post: Use the exact value List-Unsubscribe=One-Click, without a trailing period. It tells the receiving service to send an HTTPS POST request with that value as the request body.

A mailto unsubscribe address may coexist with the HTTPS URL in the List-Unsubscribe field as a fallback. However, Gmail’s sender guidelines FAQ makes clear that a mailto address alone does not satisfy its one-click unsubscribe requirement. Keep the HTTPS method in place for qualifying marketing and subscribed messages.

Build an HTTPS endpoint that completes the unsubscribe

The HTTPS URL in your header must do more than open a page: it must accept a POST request and unsubscribe the recipient from the identified list. Under RFC 8058’s one-click requirements, that action cannot depend on cookies, HTTP authorization, login, or another confirmation step. The endpoint must not redirect the POST.

An illustrative request to your HTTPS endpoint looks like this:

Request: POST /unsubscribe?token=OPAQUE_TOKEN HTTP/1.1

Content-Type: application/x-www-form-urlencoded

Body: List-Unsubscribe=One-Click

Put enough information in the URL to identify both the recipient and the mailing list. A practical approach is a validated, opaque or hard-to-forge token that maps to that subscription. Do not depend on a browser session to supply missing context: the mailbox provider sends the request on the recipient’s behalf.

When the POST arrives, validate the token and request body, resolve the subscription, and record the opt-out so future sends to that list exclude the recipient. Repeated valid requests should leave the same subscription unsubscribed, rather than fail because it was already removed.

Keep GET and POST behavior separate. Security scanners and other automated tools may fetch URLs without the recipient choosing to unsubscribe. A GET request to this URL should not change the subscription; it may show an unsubscribe page instead. The valid one-click POST is what completes the opt-out, without requiring the recipient to visit that page or click again.

Make sure DKIM signs the unsubscribe headers

Adding the headers is not enough: RFC 8058 requires a valid DKIM signature covering both List-Unsubscribe and List-Unsubscribe-Post. Both header names must appear in that signature’s h= tag, which identifies the message headers included in the signature.

Check a delivered test message—not just your sending platform’s settings. Open the message’s full headers or original source and look for:

  • Both unsubscribe headers: Confirm that List-Unsubscribe and List-Unsubscribe-Post reached the inbox.
  • Coverage in the DKIM signature: Find the DKIM-Signature header and check its h= value for both list-unsubscribe and list-unsubscribe-post. The header may wrap across several lines.
  • A passing DKIM result: Check the receiving service’s authentication results. If the message has multiple DKIM signatures, confirm that the passing signature is the one covering both unsubscribe headers.

The order of operations matters. If your platform signs the message before another system adds the unsubscribe headers, those headers can sit outside the signature’s coverage. A general DKIM pass therefore does not, by itself, confirm that the one-click headers are authenticated. Have the sending system add them before signing, or ensure a later valid signature covers them.

If DKIM itself is failing or has not been configured, DNS Authentication Setup can help with the underlying configuration. Then repeat the delivered-message check to confirm both authentication and header coverage.

Diagram showing DKIM-signed unsubscribe headers added before signing versus headers left outside the signature

Check what your sending platform already manages

Check your platform’s existing unsubscribe handling before adding custom headers. If it already manages the full opt-out process, use that workflow rather than adding a competing implementation. If you need a custom setup, first confirm what the platform lets you control.

Use this checklist to establish who owns each step:

  • Header insertion: Who adds List-Unsubscribe and List-Unsubscribe-Post—the platform or your sending application?
  • Endpoint hosting: Who operates the HTTPS endpoint and processes the unsubscribe request?
  • Message signing: Who applies DKIM, and does the signature cover both unsubscribe headers? RFC 8058 requires DKIM coverage of both fields for one-click unsubscribe.
  • Suppression: Which system records the opt-out and prevents later sends to that recipient for the relevant list? If multiple systems are involved, confirm how the change reaches each one.

Once ownership is clear, send a test through your normal sending workflow and inspect the final delivered message—not just the template or pre-send preview. Look for missing fields, duplicate or conflicting unsubscribe headers, and changes introduced after your application hands off the message.

Confirm the list scope, too. Gmail’s guidance allows one-click unsubscribe to remove a recipient from the mailing list associated with that message; it does not have to remove every subscription from the sender. Make sure your platform’s list mapping and suppression rules match that scope before choosing between its built-in handling and a custom endpoint.

Test the opt-out through to suppression

Use a test subscription and a real delivered message to verify the whole path—from the unsubscribe request to exclusion from future sends. A successful HTTP response alone does not prove that your sending system has stopped selecting that subscription.

  1. Inspect the delivered headers. Confirm that List-Unsubscribe contains the intended HTTPS URL and List-Unsubscribe-Post contains List-Unsubscribe=One-Click. Check the received message, not just your sending template.
  2. Submit the intended request. Send an HTTPS POST to the test subscription’s unsubscribe URL, with List-Unsubscribe=One-Click in the request body using a supported form encoding. RFC 8058 defines this POST behavior and the subscription-identifying URL. Do not test against a real subscriber’s URL without authorization.
  3. Check the subscription record. Verify that the request changes the associated subscription to an unsubscribed or suppressed state for the intended list. Confirm the change in the system that controls sending, not only in an endpoint log.
  4. Run a recommended operational test. Check the next eligible campaign selection and any pending sends. Confirm that the opted-out subscription is excluded or prevented from sending, including where a campaign audience was prepared before the opt-out arrived.

Keep suppression connected to campaign selection through your list management and hygiene workflow. A recorded opt-out is only useful if audience imports, scheduled campaigns and queued messages respect it.

Google’s sender FAQ recommends honoring unsubscribe requests within 48 hours. Record when the request arrives and when suppression takes effect so your test measures actual processing—not just endpoint availability.

Diagram of how to test one-click unsubscribe from delivered headers through endpoint to suppressed future sends

Troubleshoot missing buttons and incomplete unsubscribes

A missing unsubscribe button does not necessarily mean your setup is broken. First check whether the opt-out works end to end, then investigate whether the mailbox provider chooses to display its control.

  • Missing headers: Inspect the delivered message’s raw source for both List-Unsubscribe and List-Unsubscribe-Post—not just the template or platform settings.
  • A mailto-only destination: Confirm that List-Unsubscribe includes an HTTPS endpoint. A mailto address alone does not implement one-click unsubscribe.
  • Unsigned headers: Check that a valid DKIM signature covers both unsubscribe headers.
  • A redirected POST: Send a test POST directly to the endpoint. It must complete the unsubscribe without redirecting the request or requiring a login. These header, signing, and endpoint requirements are defined in RFC 8058’s one-click unsubscribe specification.
  • Suppression that stops halfway: Trace a test opt-out from the endpoint to the sending system’s suppression record. Then verify that the address is excluded from the next send for that list.

Gmail’s visible unsubscribe control depends on automated eligibility checks, not merely the presence of headers. A working endpoint and a missing button can therefore coexist.

Yahoo also considers sufficient sender reputation and engagement before displaying its unsubscribe control. Use Yahoo webmail when testing that interface, rather than relying on another mail client.

For supplementary authentication and delivery checks, explore our free deliverability tools and resources. They complement—not replace—testing the unsubscribe request through to suppression.

If you need help reviewing authentication and delivery setup, Digital Bulldogs can help you identify what to investigate next. Book a free consult.

Keep researching on Digital Bulldogs

Frequently asked questions

Is a footer unsubscribe link enough for one-click unsubscribe?

No. A footer link does not replace the unsubscribe headers. For messages subject to Gmail’s one-click requirement, you need the header-based mechanism as well as a clearly visible unsubscribe link in the message body, as explained in Google’s email sender guidelines. Treat these as separate parts of your setup: the headers enable one-click processing, while the body link gives readers an option inside the email.

What exact value belongs in List-Unsubscribe-Post?

Use List-Unsubscribe-Post: List-Unsubscribe=One-Click. The field value is exactly List-Unsubscribe=One-Click, not your unsubscribe URL. Put the HTTPS URL in the separate List-Unsubscribe header, enclosed in angle brackets. Under RFC 8058’s one-click specification, the receiving service sends an HTTPS POST to that URL with List-Unsubscribe=One-Click in the request body. Your endpoint must process that request without requiring another confirmation step.

Can a mailto address replace the HTTPS unsubscribe endpoint?

No. Google’s one-click requirement calls for an HTTPS endpoint; a mailto: address alone does not meet it. A link to a preference page also does not qualify as the required one-click mechanism, according to Google’s sender guidelines FAQ. You can keep other unsubscribe options, but the header-based HTTPS path must let the recipient unsubscribe without completing extra steps on a website.

Do both unsubscribe headers need to be covered by DKIM?

Yes. RFC 8058 requires a valid DKIM signature that covers both List-Unsubscribe and List-Unsubscribe-Post. Check the signature’s h= tag to confirm that both header names are included. A message having a DKIM signature is not enough by itself: that signature must protect the unsubscribe headers, so verify the delivered message rather than relying only on your platform’s settings.

Why is the unsubscribe button missing after I add the headers?

Adding the headers does not guarantee that a mailbox provider will display an unsubscribe button. Yahoo says its display decision also depends on sender reputation and engagement, and it recommends testing in Yahoo webmail in its sender requirements and unsubscribe FAQ. Check the delivered headers and endpoint behavior separately from the interface: a missing button alone does not tell you which part of the setup needs attention.

Does one-click unsubscribe remove someone from every mailing list?

No, not automatically. Google’s sender guidelines FAQ says one-click unsubscribe can remove a recipient from the mailing list associated with that message; it does not have to remove them from every list the sender operates. Make sure your endpoint identifies the relevant subscription and applies the suppression there. Do not describe a list-specific opt-out as a global unsubscribe unless your system actually handles it that way.

Sources

  1. RFC 8058: Signaling One-Click Functionality for List Email Headers · IETF / RFC Editor
  2. Email sender guidelines · Google
  3. Email sender guidelines FAQ · Google
  4. FAQs: Email Sender Requirements and Unsubscribe · Yahoo Sender Hub

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *