Pricing

Deliverability guide

How to add unsubscribes to Amazon SES

Amazon SES sends exactly what you give it. It adds unsubscribe links only if you turn on its subscription management; otherwise you add the headers yourself and run an endpoint that records the opt-out. Either way, you also have to stop sending to people who unsubscribed, bounced or complained. This guide covers both routes, what Gmail and Yahoo check for, and how to handle bounces and complaints.

Updated

What Gmail and Yahoo require

Both providers require one-click unsubscribe from bulk senders. Gmail defines a bulk sender as one that sends close to 5,000 messages or more to personal Gmail accounts in 24 hours, and the status doesn’t expire once you have it.

Gmail Yahoo
One-click unsubscribe Required for marketing and subscribed messages Required for marketing and subscribed messages
How Both the List-Unsubscribe header (with an HTTPS link) and the List-Unsubscribe-Post header. An email-address-only (mailto) unsubscribe doesn’t count The POST method (RFC 8058) is highly recommended; mailto is accepted
Visible link in the email body Required Required
Time to honor an unsubscribe 48 hours recommended Within 2 days
Spam complaint rate Stay below 0.3%; aim for below 0.1% Stay below 0.3%
Transactional email Excluded from the one-click rule Not stated
From Google’s email sender guidelines and FAQ and Yahoo Sender Hub, checked 2 December 2026.

What “one-click” means: RFC 8058

One-click unsubscribe is two email headers. List-Unsubscribe holds an HTTPS link that identifies the subscriber. List-Unsubscribe-Post always has the same fixed value.

List-Unsubscribe: <https://example.com/unsubscribe/8f3c2a?signature=4b1e9d>
List-Unsubscribe-Post: List-Unsubscribe=One-Click

When a reader clicks “Unsubscribe” next to your name in Gmail or Yahoo, the provider sends an HTTPS POST request to that link. RFC 8058 sets the rules:

  • The List-Unsubscribe header must contain one HTTPS link. You can add an email address as well.
  • The request arrives without cookies or a login, so the link itself has to identify the subscriber. It should contain something hard to forge, such as a signature, and your server should check it.
  • Don’t answer the request with a redirect.
  • The message must have a valid DKIM signature that covers both headers.

One thing the RFC doesn’t spell out: security scanners and link checkers open links in emails automatically. If opening your footer link unsubscribes people straight away, a spam filter can unsubscribe them without their knowing. Make the page behind the footer link show a confirm button, and only unsubscribe when that button is pressed or the provider’s POST request arrives.

Option 1: let SES do it (subscription management)

SES can manage the list, the headers and the unsubscribe page for you:

  1. 1 Create a contact list in SES with one or more topics, for example “newsletter” and “product updates”.
  2. 2 When you send, tell SES which contact list (and optionally which topic) the email belongs to. In the SES API this is the list management option on each send.
  3. 3 Put SES’s unsubscribe-link placeholder in your email body where the link should go. AWS’s documentation gives its exact name.

SES then adds both unsubscribe headers to each email (replacing any you set), inserts the link, and hosts a page where people can opt out of one topic or everything. It records the choice and won’t send to that contact for that topic again.

The limits

  • One contact list per AWS account, with up to 20 topics. That rules it out if your app sends on behalf of many customers.
  • One recipient per message: SES adds the headers and link only when an email goes to a single recipient.
  • Easy DKIM only: if you sign messages yourself before handing them to SES, it can’t add the links.
  • The placeholder is replaced at most twice, and only in the HTML and plain-text parts.
  • Sending to an address that isn’t on the list adds it automatically.
  • The opt-out lives in SES, not in your own database. To copy it into your app, publish subscription events through a configuration set (see bounces and complaints below).

If you send one newsletter from one AWS account, this is the quickest route. If you need your own branding on the unsubscribe page, several lists, or opt-out status in your own database, build it yourself.

Option 2: build it yourself

You need five pieces.

  1. 1 A signed link per subscriber. Each subscriber gets an unsubscribe link that identifies them and carries a signature your server can check, so nobody can unsubscribe someone else by guessing a link. Don’t make the links expire: people click unsubscribe in emails that are months old. Most web frameworks have signed links built in; in Laravel, for example, these are signed routes.
  2. 2 One address, two behaviors. Use the same link in the header and in the email footer. When someone simply opens it, show a page with a confirm button and change nothing. When a POST request arrives, from that button or from the mailbox provider’s one-click request, record the unsubscribe. Answer the provider’s request with a plain success response: no redirect and no login page.
  3. 3 No form token check on that address. Mailbox providers can’t send the anti-forgery token your forms normally require, so exclude the unsubscribe address (and the SES webhook described below) from that check. The signature in the link does the protecting instead.
  4. 4 The headers and the footer link. Add both headers to every marketing email and put the same link visibly in the footer. Only add an email address to the List-Unsubscribe header if someone actually reads that mailbox and processes the requests.
  5. 5 A check before every send. Skip anyone who has unsubscribed or is suppressed, and send one message per recipient: a message addressed to several people can only carry one person’s unsubscribe link.

Check the DKIM signature

RFC 8058 requires the DKIM signature to cover both unsubscribe headers, and AWS’s documentation doesn’t list which headers Easy DKIM signs. So test it: send yourself a campaign at a Gmail address, open it, choose “Show original”, and find the DKIM signature for your domain. Its list of signed headers (h=) should include list-unsubscribe and list-unsubscribe-post.

Bounces and complaints

AWS requires every SES sender to have a system in place for managing bounces and complaints. Two parts help here.

The account-level suppression list

If you started using SES after November 25, 2019, it suppresses bounced and complaining addresses by default. Only hard bounces are added. The list is per region, addresses stay until you remove them, and messages to them are accepted but not sent. Those messages don’t count toward your bounce and complaint rates, but they do use up your sending quota. The list only knows about bounces and complaints, not unsubscribes, so your own records still decide who gets email.

Event publishing to your app

Create a configuration set in SES that sends bounce and complaint events (and subscription events, if you use SES contact lists) to an Amazon SNS topic. Subscribe an HTTPS address in your app to that topic, and send your emails with that configuration set. Your app then needs to:

  • confirm the SNS subscription the first time AWS sends a confirmation request,
  • check that every message really comes from SNS (AWS publishes validator libraries for this),
  • mark the address as suppressed when a permanent bounce arrives,
  • treat a complaint as an unsubscribe.

Leave temporary bounces (a full mailbox, for example) alone and suppress only permanent ones. If you turn off SES’s email feedback forwarding, make sure the configuration set is applied to every message, or you’ll miss events.

Checklist

  • Every marketing email has an HTTPS List-Unsubscribe header and the List-Unsubscribe-Post one-click header.
  • The email body has a visible unsubscribe link.
  • The provider’s POST request gets a plain success response, with no redirect and no login.
  • Simply opening the link shows a confirm button and doesn’t unsubscribe.
  • The DKIM signature covers both headers.
  • Opt-outs are recorded and skipped on the next send, well inside 48 hours.
  • Permanent bounces and complaints are suppressed.
  • Transactional email (password resets, receipts) is sent without the marketing list’s unsubscribe link.

Or let Sendonia handle it

If you’d rather not build and maintain this, Sendonia does it for every campaign. It also sends through Amazon SES, with sending regions in the EU (Stockholm) and the US.

  • Every campaign includes a one-click unsubscribe header (RFC 8058) and a visible link. Opening the link shows a confirm page; nothing changes until the reader confirms.
  • Hard bounces and spam complaints go on the suppression list automatically.
  • Unsubscribed and suppressed contacts are skipped on every send, even if they’re still on a list, and opt-outs are never reversed automatically.
  • DKIM, MAIL FROM (SPF) and DMARC records for your domain are generated and re-checked for you.

Sendonia’s REST API manages contacts and lists; it isn’t a transactional email API. Your app can sync subscribers to Sendonia for campaigns and keep its transactional mail on its own SES setup. The free plan covers 500 contacts. Sendonia doesn’t have automation (drip sequences) yet.

Frequently asked questions

Only if you use SES subscription management: send each email with its contact list set and include SES’s unsubscribe placeholder in the body. Otherwise you add the headers and link yourself.

Gmail excludes transactional messages, such as password resets, from its one-click requirement. AWS also suggests leaving list management off transactional email so recipients can’t unsubscribe from it.

Not for Gmail, which needs an HTTPS link for one-click unsubscribe. Yahoo accepts it but recommends the POST method.

No. The account-level suppression list only takes bounces and complaints. Store unsubscribes yourself, or use SES contact lists.

Gmail recommends within 48 hours; Yahoo says within 2 days. Recording it the moment the request arrives is simpler than batching.

Your audience is waiting. Send them something worth opening.

Create a workspace, import your contacts and connect your domain. We take care of delivery from there.

Already a customer? Log in

  • Authenticated sending on your domain
  • Amazon SES sending in the EU and the US
  • Unlimited seats on every paid plan
  • Every core feature on every paid plan
  • Monthly, cancel any time
  • Your data stays yours
  • Bot-filtered analytics