> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openemails.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unsubscribes and the do-not-email list

> How a person stops your email, the list that keeps them stopped, and the few entries you can lift.

Every marketing email that OpenEmails sends carries a one-click unsubscribe. OpenEmails also checks the do-not-email list each time it hands an email to your sender. You don't need to do anything for either.

## One-click unsubscribe

* **In the inbox.** Each marketing email carries the `List-Unsubscribe` and `List-Unsubscribe-Post` headers. Gmail, Apple Mail and other mail apps then show their own **Unsubscribe** button. One press there unsubscribes the person, with no page to visit.
* **In the email.** Every marketing email has a visible unsubscribe link and your store's address. If an email from your agent leaves either out, OpenEmails adds it at the bottom.
* **The page.** The link opens a page on your own hostname, with your store's name and an **Unsubscribe** button. The page changes nothing when it opens. Only the button unsubscribes, so a mail filter that follows links can't unsubscribe anyone.
* **Test emails.** A test email's link shows **Test unsubscribe** instead. It changes nobody's preferences.

When someone unsubscribes, OpenEmails records all of this in one step, before it answers:

1. The consent change, dated at the click.
2. An **Unsubscribed** entry on the do-not-email list.
3. An unsubscribed event on the email they clicked from.
4. A write-back that marks the matching Shopify customer unsubscribed, with that date.

A contact with no Shopify customer stays unsubscribed in OpenEmails. The change applies before OpenEmails hands off the next email to that person. Anything already queued for them is skipped, with the reason.

Unsubscribes made in Shopify come into OpenEmails with the rest of your Shopify customer data.

> [!WARNING]
>
> **Keep your hostname answering.** The unsubscribe links in every email you have sent point to your hostname, such as `email.yourstore.com`. Keep it running even after you change sender. Put nothing in front of it, such as a login page or a firewall challenge. Gmail counts a failed one-click unsubscribe against your domain, even when the request never reached OpenEmails.

## The do-not-email list

The do-not-email list holds every address that must not get marketing email. OpenEmails checks it, with the contact's consent, each time it hands an email to your sender. That covers campaigns, flows and test emails. A contact can be subscribed and still be blocked by an entry, for example after a bounce.

Each entry has a reason and a source. The source is where OpenEmails learned it, such as an unsubscribe link, PostShiba, a Klaviyo import or your agent.

| Reason | What it means | Can it be lifted? |
| - | - | - |
| **Unsubscribed** | The person unsubscribed by link or inbox button, in Shopify, or in Klaviyo | Only when the person subscribes again |
| **Bounced** | Their mailbox refused your email. A hard bounce means the address doesn't work | Never, for a hard bounce |
| **Complained** | They marked an email as spam | Never |
| **Added by hand** | You or your agent added the address | Yes, with a staff member's approval |

An entry belongs to the address, not to a contact, so it outlives any contact.

> [!NOTE]
>
> **Order and shipping emails are different.** A transactional flow sends emails a customer must get, such as an order receipt or a shipping notice. These emails carry no unsubscribe header, and they still reach a contact who unsubscribed from marketing. A bounce, a complaint, a hand-added entry or an erasure still stops them. See [Flows](https://docs.openemails.com/use/flows.md).

### See the list

Open **Contacts > Do-not-email list**. The newest entries come first. Each row shows the address, reason, source, when it was added, and **Blocked since**. For an imported entry, **Blocked since** can be earlier than the date it was added.

* Use **View** to filter by reason.
* Use **Search by email address or domain** to find entries. Part of an address or a domain is enough.
* Choose **Export entries** to make `do-not-email.csv`, or ask your agent for an export. The private file expires 24 hours after it is made. Erased addresses are left out.

The screen doesn't add addresses. Your agent does that.

![The do-not-email list: entries with their reason, source and date, and Lift entry on hand-added rows.](https://mintcdn.com/openemails/_EEXRkFEoy5ouZ3V/images/use/do-not-email-list.png?fit=max\&auto=format\&n=_EEXRkFEoy5ouZ3V\&q=85\&s=09d6d0b21fbcfbc0368cf941d4af289e)

## How addresses match

* **Capitals don't count.** `Ana@Example.com` and `ana@example.com` are one address.
* **Plus tags don't escape.** An entry blocks the address with any plus tag. An entry for `ana+news@example.com` also blocks `ana@example.com` and `ana+shop@example.com`. A search for the full address of any of them finds the entries that block it.
* **Dots count.** `ana.lee@example.com` and `analee@example.com` are different addresses.
* **International domains match.** A domain in its own letters and the same domain in its ASCII form are one address.
* **Erased people stay blocked.** When a customer's data is erased, OpenEmails removes their address from their entries and keeps a one-way code of it. The list shows these entries as **Erased address**. Only a search for the full address finds them.

## Stop emailing someone

Your agent can unsubscribe contacts, or add addresses to the list by hand. It needs no approval, because the change only means less email.

```text wrap theme={"dark"}
In OpenEmails, add jo@example.com to the do-not-email list.
```

## Lift a hand-added entry

You can lift only entries **Added by hand**, one at a time.

* **In the admin:** on **Contacts > Do-not-email list**, find the entry, choose **Lift entry** and confirm. That is your approval. OpenEmails checks it with Shopify and records it with your staff account. The message that follows offers **View approval**.
* **Through your agent:** it calls `lift_do_not_email_entry` with the entry or its exact address. Then it sends you an approval link to open in the Shopify admin.

A lift removes only that entry. It doesn't subscribe anyone. If no other entry blocks the address, a campaign reaches it only when the contact is subscribed. A marketing flow reaches it only when the contact hasn't unsubscribed.

Nobody can lift an unsubscribe, a bounce or a complaint from the admin. When a person subscribes again, the new consent lifts their earlier unsubscribe. It also lifts a bounce from a delivery that expired. A complaint or a hard bounce stays for good, and a hand subscribe never lifts one.

## Tracking consent

OpenEmails records opens with a tracking pixel and clicks through tracked links, both on your own hostname. Turn either off on **Settings > Email settings** with **Track opens** and **Track clicks**.

Each contact also has a tracking consent: agreed, unknown or declined. Only declined stops the recording. A contact who declined gets no pixel. Their clicks still reach the link, but OpenEmails doesn't record them. The contact's page shows the consent as a badge.

* Tracking consent never changes whether someone gets email.
* Your agent records it with `set_tracking_consent`. It gives the state and the date the person gave it, for chosen contacts or a whole list. A whole list runs in the background as a job.
* Profiles that declined open or click tracking in Klaviyo arrive from a [migration](https://docs.openemails.com/use/move-from-klaviyo.md) with tracking declined.

Some regulators expect a person's consent before an open pixel. You decide how to use the switches and the consent field for your store.

> [card] [Contacts and lists](https://docs.openemails.com/use/contacts-and-lists.md)
>
> Where contacts come from, and how consent shows on each one.

> [card] [Approvals](https://docs.openemails.com/use/approvals.md)
>
> How a lift, and every other approval, works.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.