Skip to main content
New AI-powered DMARC analysis + open REST API See how → →
Advanced

How To Implement RFC 8058 One-Click Unsubscribe Headers

Brad Slavin
Brad Slavin General Manager

Quick Answer

RFC 8058 allows email recipients to unsubscribe with a single click using special email headers. To implement it, add the List-Unsubscribe and List-Unsubscribe-Post headers to outgoing emails, enabling secure, easy, and compliant unsubscribe requests.

One-Click Unsubscribe

RFC 8058 One-Click Unsubscribe provides a standardized way for email recipients to opt out of promotional messages and newsletters with a single action. By implementing the List-Unsubscribe and List-Unsubscribe-Post email headers, senders allow participating mailbox providers to submit an HTTPS POST request directly to an unsubscribe endpoint.

This approach simplifies the opt-out process, reduces friction for recipients, and helps email senders meet bulk email requirements. Proper implementation also requires a valid DKIM signature covering both unsubscribe headers, secure endpoint validation, and reliable subscription management.

What RFC 8058 One-Click Unsubscribe Is and Why It Matters

RFC 8058 defines a standardized way for mailbox providers and an email client to let a recipient opt out of promotional emails, newsletters, and other recurring email communications with a single action. Instead of requiring the user to find an unsubscribe link in the email footer, load a subscription page, and complete a multi-step unsubscribe process, RFC 8058 enables a mailbox interface, such as Gmail, to submit an HTTPS POST request to the sender’s unsubscribe endpoint. The email must have a valid DKIM signature covering both unsubscribe headers so the mailbox provider can verify the message’s authentication.

This matters because Google, Gmail, Microsoft, and other mailbox providers increasingly expect senders of bulk email to provide a simple, reliable click unsubscribe mechanism. When implemented correctly, one-click unsubscribe reduces spam complaints, improves deliverability, and gives recipients a clear way to unsubscribe from email without using “Report spam” as an alternative.

For senders using email marketing platforms, CRM systems, or legacy subscription management tools, RFC 8058 should complement—not replace—existing subscription management workflows. A standard unsubscribe link in the email footer can direct recipients to a preference center where they can manage individual subscriptions or update their communication preferences. The one-click unsubscribe header, however, should process the opt-out immediately for the specific mailing list associated with the message.

A standard unsubscribe link in the email footer can still point to a preference center or subscription management page where the recipient can manage subscription preferences, choose specific subscription lists, or perform a global unsubscribe. The one-click unsubscribe flow is designed for immediate opt out from a specific mailing stream, such as a Newsletter or Marketing List.

Dmarc Check 8560

Required Email Headers: List-Unsubscribe and List-Unsubscribe-Post

To support RFC 8058, your message must include two headers: List-Unsubscribe and List-Unsubscribe-Post. Together, these create the list unsubscribe header functionality that mailbox providers use to display an unsubscribe header link near the sender details.

The List-Unsubscribe header may include both a mailto: address and an HTTPS URL. For RFC 8058 one-click unsubscribe, the HTTPS URL is the critical part because the email client will send a POST request to that endpoint.

The List-Unsubscribe-Post header tells the mailbox provider that the Hypertext Transfer Protocol Secure (HTTPS) endpoint supports RFC 8058 one-click unsubscribe functionality. The required header value is:

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

This value identifies the endpoint as supporting the standardized one-click unsubscribe POST operation.

Example unsubscribe code snippet

A basic unsubscribe code snippet in an outbound message might look like this:

List-Unsubscribe: <mailto:unsubscribe@example.com>, <https://example.com/unsubscribe/one-click?token=abc123>
List-Unsubscribe-Post: List-Unsubscribe=One-Click

This unsubscribe code snippet tells Gmail and other participating providers that the recipient can be automatically unsubscribed via a POST request to the HTTPS URL. The visible unsubscribe link in the email footer can still point to a subscription management page, while the header URL handles the simplified click unsubscribe action.

For ClickDimensions, Dynamics 365, or custom Messaging systems, the token in the unsubscribe header link should map to a Lead, Contact, Account, Subscription List, Email Send, or Unsubscribe Record. The goal is to identify the recipient and the specific promotional emails or newsletters they are opting out of without exposing the raw email address in the URL.

Dmarc Lookup 5863

Building the One-Click Unsubscribe Endpoint

The endpoint referenced in the List-Unsubscribe header must accept an HTTP POST request. RFC 8058 is designed to make unsubscribing straightforward. When a mailbox provider sends an HTTPS POST request to the specified URL, the sender’s system should process the opt-out immediately. The endpoint must not require the recipient to sign in, solve a CAPTCHA, visit another page, or complete an additional confirmation step.

Endpoint behavior

A reliable click unsubscribe endpoint should:

  1. Accept only POST requests for one-click unsubscribe.
  2. Validate the token or signed payload.
  3. Identify the recipient, such as a contact, lead, account, or email address.
  4. Determine the relevant subscription lists, newsletters, marketing list, or bulk email category.
  5. Update the appropriate subscription management records.
  6. Return a success status quickly.

For example, if a recipient receives a Newsletter campaign through ClickDimensions or a Microsoft Dynamics 365 Marketing List, the one-click unsubscribe endpoint may mark that recipient as unsubscribed from that Subscription List while leaving other subscription preferences unchanged. In contrast, if your business policy treats header-based unsubscribe as a global unsubscribe, the endpoint may opt out the recipient from all promotional emails.

Mapping to subscription management

The unsubscribe process should align with your subscription management rules. In some systems, clicking the unsubscribe link in the email footer opens a preference center where the recipient can choose which newsletters to keep. In RFC 8058, however, the action is immediate. That means the system must decide whether to remove the recipient from one campaign list, one category of email communications, or all subscription lists.

In an email marketing or CRM platform, you may need to coordinate RFC 8058 functionality with existing subscription pages, preference centers, contact preferences, and unsubscribe records. The one-click endpoint should update the appropriate subscription records directly while ensuring that future campaigns respect the recipient’s opt-out decision.For example, your configuration may use field types and page properties on a subscription page to manage visible preferences, while the one-click endpoint writes directly to an unsubscribe record or subscription management records in CRM.

Another unsubscribe code snippet for application logic

Your application-level unsubscribe code snippet may follow logic like this:

POST /unsubscribe/one-click?token=SIGNED_TOKEN

validate token
find recipient by token
find related email send
mark recipient unsubscribed from subscription list
create unsubscribe record
return 200 OK

This unsubscribe code snippet is intentionally minimal. The endpoint should not display a confirmation message as a required step, although sending an unsubscribe confirmation email is generally discouraged unless legally necessary, because it can create more unwanted email communications.

Security, Validation, and Compliance Best Practices

One-click unsubscribe must be easy for the recipient, but it still needs strong validation. Never expose a recipient’s email address or other unnecessary personal information directly in the unsubscribe URL. Instead, use an opaque, difficult-to-forge token that securely identifies the recipient and relevant mailing list or subscription category. The endpoint should validate the token before processing the opt-out request and should not depend on cookies, HTTP authorization, or an active login session to complete the unsubscribe operation.

How To Create Dmarc Record 8504

Token and request validation

A secure unsubscribe process should validate:

  • Token signature and expiration.
  • The associated recipient record.
  • The originating campaign, Newsletter, or bulk email.
  • Whether the recipient is already unsubscribed.
  • Whether the request method is POST.

Although RFC 8058 requests may come from Gmail or Google infrastructure, do not build security solely around user-agent strings or IP addresses. Mailbox provider infrastructure changes over time. A signed token is more reliable and helps maintain SPF-related email security.

You should also make the unsubscribe process idempotent. If the recipient has already opted out, the endpoint should still return success. This avoids errors when Gmail retries a request or when multiple systems process the same click unsubscribe event.

Compliance and CRM data handling

Your compliance model should define what happens after a recipient chooses to opt out. For example, in Dynamics 365 or ClickDimensions, you may update a Contact Preferences field, create an Unsubscribe Record, or mark the person as an Excluded Recipient for future sends. If the system uses flags such as allow bulk email, do not allow bulk email, or do not allow, ensure the one-click unsubscribe action maps consistently to those values.

For example:

  • If someone opts out of one Newsletter, remove them from that Subscription List.
  • If someone chooses global unsubscribe, block emails for all promotional emails.
  • If someone was excluded from mailing due to prior preference settings, do not override that status.
  • If a user later requests to unblock email, require a clear resubscription or opt-in action.

Avoid using one-click unsubscribe to silently change unrelated settings. A recipient who wants to opt out of newsletters may not intend to stop transactional notices, support updates, or account-related Messaging. Separate promotional emails from operational email communications wherever possible.

Dmarc Record 6934

Testing, Monitoring, and Maintaining One-Click Unsubscribe Functionality

Testing RFC 8058 requires more than verifying that an unsubscribe link works in a browser. The header-based click unsubscribe flow depends on message headers, mailbox provider behavior, endpoint availability, and CRM data updates.

Pre-send testing

Before sending promotional emails or newsletters at scale, inspect the raw message source and confirm that both headers are present:

List-Unsubscribe: <https://example.com/unsubscribe/one-*click*?token=...>
List-Unsubscribe-Post: List-Unsubscribe=One-*Click*

This final unsubscribe code snippet should appear in the delivered email, not just in your template. Some email service providers, CRM integrations, or Email Send pipelines may rewrite headers. Confirm that the list unsubscribe header survives the full delivery path.

Send test campaigns to Gmail, Microsoft, and other major mailbox providers. In Gmail, check whether the unsubscribe header link appears near the sender name. Also verify that the visible unsubscribe link in the email footer still works and that it routes to the correct preference center or subscription management page.

Functional test cases

Your testing plan should include:

  • A recipient who is active on multiple subscription lists.
  • A recipient already marked as unsubscribed.
  • A recipient on a Marketing List but not a Subscription List.
  • A lead without a matching contact record.
  • An account-level email address used by more than one person.
  • An excluded recipient who should remain excluded from mailing.
  • A manually unsubscribe scenario handled by Support or CRM staff.
  • A WebUnsubscribe event from a standard subscription page.

Each test should confirm that the unsubscribe process updates the right subscription management records and that the recipient does not continue receiving the same promotional emails. If a person is an unsubscribed recipient, future campaign segmentation should exclude them automatically.

Monitoring and maintenance

Once deployed, monitor POST volume, response codes, token validation failures, and downstream CRM updates. A broken endpoint can make it impossible for mailbox providers to automatically unsubscribe users, increasing spam complaints and damaging sender reputation.

Track whether recipients continue to receive newsletters after using click unsubscribe. If they do, review synchronization between ClickDimensions, Dynamics 365, Bulk Email settings, Subscription Preferences, and campaign audience selection. The unsubscribe process is only effective if every future email send respects the updated opt out state. DMARCReport can also help support email authentication monitoring and maintain better visibility into email security.

Maintain documentation for your Support team so they can explain the difference between one-click unsubscribe, the email footer unsubscribe link, the preference center, and global unsubscribe. This ensures consistent handling when a recipient asks to manually unsubscribe or reports that they are still receiving promotional emails.

Brad Slavin
Brad Slavin

General Manager

General Manager of DuoCircle. Product strategy and commercial lead for DMARC Report's 2,000+ customer base.

LinkedIn Profile →

Take control of your DMARC reports

Turn raw XML into actionable dashboards. Start free - no credit card required.