A newsletter recipient clicks “unsubscribe,” but your next campaign still sends because the link updated a preference page—not the suppression list used by the campaign. An unsubscribe footer email needs both a visible path for readers and a backend flow that makes the opt-out stick.
For marketing email, include a clear body link, identify the sender, and include a valid physical postal address where CAN-SPAM applies. For one-click support, add the RFC 8058 headers and a DKIM signature that covers them. Keep those headers distinct from the visible footer link: they are separate ways to initiate an opt-out.
Build an unsubscribe footer email with two distinct paths
The footer link is for a person reading the message. The List-Unsubscribe headers let a compatible mailbox provider initiate an unsubscribe request using HTTPS POST. Neither mechanism replaces the other when both are required.
For a marketing message, a minimal HTML footer might look like this:
<footer>
<p>You’re receiving this email from Acme Updates.</p>
<p><a href="https://mail.example.com/unsubscribe?t=OPAQUE_TOKEN">
Unsubscribe from marketing emails
</a></p>
<p>Acme Inc., 123 Main Street, Suite 4, Anytown, ST 00000</p>
</footer>
The address is an example; use your sender’s valid postal address where required. Add a preference-center link if useful, but keep the full unsubscribe direct and easy to find. The CAN-SPAM Act requires commercial email to include a clear opt-out method and valid physical postal address; it also requires the message to identify itself as an advertisement or solicitation unless the recipient gave affirmative consent. (FTC rule text)
Add RFC 8058 headers and route the POST
For one-click unsubscribe, include both headers in each applicable outgoing message. The HTTPS URI must carry enough information to identify the recipient and the list or subscription being changed.
List-Unsubscribe: <https://mail.example.com/unsubscribe/OPAQUE_TOKEN>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
The message also needs a valid DKIM signature covering both headers. For example, the relevant part of the signature’s h= tag should include both names:
DKIM-Signature: ...; h=from:to:subject:date:list-unsubscribe:list-unsubscribe-post; ...
This is an illustrative header fragment, not a complete DKIM signature. RFC 8058 specifies that the receiving system sends an HTTPS POST to the List-Unsubscribe URI with List-Unsubscribe=One-Click in the request body. The POST content should use multipart/form-data or may use application/x-www-form-urlencoded. (RFC 8058)
A simplified endpoint can treat that request as an instruction to suppress the identified subscription:
app.post('/unsubscribe/:token', async (req, res) => {
const subscription = await findSubscriptionByOpaqueToken(req.params.token);
if (!subscription) return res.sendStatus(404);
await suppressMarketing(subscription.contactId, subscription.listId);
return res.sendStatus(200);
});
Use a high-entropy, recipient-specific token; don’t put an email address or guessable database ID in the URL. Keep the endpoint limited to the subscription represented by that token. RFC 8058 also says the receiver must not make the POST without user consent, so the endpoint should process the protocol request rather than treating arbitrary link previews as consent.
Classify messages and honor the opt-out
A newsletter, product announcement, and discount campaign are marketing messages. A password reset, purchase receipt, or one-time password is generally transactional. Don’t add promotions to a receipt and assume its transactional label controls: under CAN-SPAM, mixed-content messages can be treated as commercial depending on their subject and where the transactional content appears. (FTC guidance on mixed messages)
| Requirement | Applies to | Timing or mechanism |
|---|---|---|
| CAN-SPAM opt-out | Commercial email | Process within 10 business days; provide a functioning opt-out mechanism. |
| Gmail bulk-sender rule | More than 5,000 messages per day to personal Gmail accounts | Marketing and subscribed messages need a visible body link and one-click support. |
| Google subscription guidance | Subscription messages | Honor unsubscribe requests within 48 hours. |
| Yahoo bulk-sender guidance | Marketing and subscribed messages from bulk senders | Use a functioning one-click header and visible body link; honor requests within 2 days. |
The 5,000-message threshold is specific to Gmail’s bulk-sender requirements; it is not a CAN-SPAM threshold. Google and Yahoo distinguish marketing or subscribed mail from transactional messages such as password resets and receipts. GDPR separately gives people the right to object to direct marketing, and says their data must no longer be processed for that purpose after an objection. (Google sender requirements, Yahoo best practices, GDPR Article 21)
In our platform, Volanea provides a contact graph with one-click unsubscribe, plus webhooks and unsubscribe statistics. Its sending endpoint runs suppression checks before delivery alongside contact upserts, template rendering, and tracking. That pipeline makes it useful to treat suppression as a send-time control, not only a list-maintenance task. Our published feature information does not specify whether Volanea automatically adds RFC 8058 headers, so don’t assume those headers are present without confirming your message output. Every feature ships on every plan; plans differ by monthly volume and domain count.
Test the full opt-out path, not just the footer
A working link in a preview is not proof that an opt-out prevents the next send. Test the reader-facing URL, the provider-style POST, and the campaign’s suppression check as separate parts of the flow.
- Open the message on a phone and check that the link is visible, readable, and easy to tap.
- Submit the footer link and confirm the intended marketing subscription is suppressed.
- Send a test POST with the RFC 8058 key/value pair and confirm it changes the same suppression state.
- Send a later campaign to the test contact and confirm the suppressed marketing message is not delivered.
- Check the emitted message’s headers and DKIM signature for both unsubscribe fields.
A preference center can let a person choose fewer categories or pause updates, but keep the full opt-out available without a login or an unnecessary form. CAN-SPAM limits what information and steps a sender can require to submit a valid opt-out. For more implementation context, browse our email deliverability and sending guides.
FAQ
Does the visible unsubscribe link satisfy RFC 8058?
No. RFC 8058 uses the List-Unsubscribe and List-Unsubscribe-Post message headers, with an HTTPS POST to the header’s URI. The visible link is in the message body and serves readers directly; it does not replace the header-based one-click mechanism. Gmail and Yahoo also call for a visible body link for applicable marketing messages.
What should an unsubscribe POST endpoint change?
It should suppress the recipient from the identified marketing list or subscription, then make that suppression available to the system that selects campaign recipients. Keep essential transactional messages separate from marketing suppression. Test with both the body-link flow and an RFC-style POST so neither path leaves the campaign’s send-time check unchanged.
Does Volanea automatically add RFC 8058 headers?
Volanea’s published product information describes a contact graph with one-click unsubscribe, API support, webhooks, and unsubscribe statistics, but does not specify automatic RFC 8058 header insertion. Confirm the outgoing headers and DKIM h= field in your integration rather than assuming they are added. You can review the Volanea platform for its documented email capabilities.
Start free with 1,000 emails a month