# Clean Shopify Customer Emails: Check and Segment

URL: https://email-validation.org/guides/clean-email-list-shopify/
Updated: 2026-11-27

> Documentation index: https://email-validation.org/llms.txt

To clean the email addresses of your Shopify customers, check them, keep each result on the customer, and send your
campaigns to a segment that leaves the bad ones out. Shopify stops mailing an address after mail to it has bounced, or
after the customer has complained or unsubscribed, and its Smart delivery leaves out subscribers who have not engaged
with recent mail.

## Choose a way

| You want to | Use |
|---|---|
| Block a bad address before the customer exists | [Form Guard](https://email-validation.org/docs/form-guard/frameworks/#shopify) on your theme's newsletter, contact and create-account forms (not checkout, log-in forms or Shopify's own customer account pages) |
| Flag new and changed customers | The [webhook relay](https://email-validation.org/docs/guides/shopify/#relay): it flags each customer once added, and never blocks a sign-up or a checkout |
| Clean the customers you already have | Our clean-up command: it checks every customer and saves the result on the customer, in metafields and, if you ask, a tag. It runs on your own computer with Node. Start with [step 1](#check-customers). |
| Clean them without installing anything | Export your customers as CSV in Shopify, check the file as a [bulk list](https://email-validation.org/docs/bulk/), then unsubscribe the ones to remove by hand ([step 3](#valid-remove)) |
| Check a file before you import it | A bulk list: Shopify itself advises checking addresses with a verification tool before you import them. Go to [Check a file before you import it](#before-import). |

## What Shopify already does on its own

Shopify Messaging is Shopify's own app for email campaigns.

- **It suppresses addresses that bounce.** When mail bounces because of a problem with the address, Shopify
  suppresses that address from future sends
  ([Email subscriber list management](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/subscriber-list-management)).
- **It leaves out unsubscribes and complaints.** Customers who unsubscribe, bounce or mark your messages as spam are
  left out of future campaigns
  ([Optimizing your marketing campaign delivery and deliverability](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/email-delivery)).
- **It can pause your sending.** With sustained spam complaints or high bounce rates, Shopify may temporarily limit or
  pause your access to Shopify Messaging, scheduled campaigns included. It gives no figures.
- **It can leave out unengaged subscribers.** Smart delivery, on by default and set for the whole store, sends a
  campaign only to engaged subscribers when the send list has more than 1,000 subscribers, leaving out customers who
  have not interacted with your recent marketing emails
  ([Optimizing your marketing campaign delivery and deliverability](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/email-delivery#smart-delivery)).
- **It asks you to check addresses first.** Shopify's deliverability page says to check email addresses with a
  third-party verification tool before you import them
  ([Building and maintaining your email deliverability](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/deliverability)).
  Its subscriber page also advises removing role addresses such as `info@` from your subscribers
  ([Email subscriber list management](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/subscriber-list-management)).

All of this happens after you send. A check looks at the addresses before the next send. It finds mailboxes that no
longer exist ([`no_mailbox`](https://email-validation.org/docs/statuses/invalid/#no_mailbox), which would bounce with a reply like
[550 5.1.1](https://email-validation.org/bounce-codes/550-5-1-1/)), [disposable](https://email-validation.org/docs/statuses/disposable/) addresses, and addresses that accept
mail but should not be mailed, such as known [spam traps](https://email-validation.org/docs/statuses/valid/#spamtrap). It also tells you which
domains are [catch-all](https://email-validation.org/docs/statuses/catch-all/), where a single mailbox cannot be confirmed.

## Step 1: Check your customers

Follow our [Shopify setup guide](https://email-validation.org/docs/guides/shopify/): create a custom app for your store, run the command once
with `--setup`, which creates the four metafield definitions so Shopify shows them by name, then run the clean-up
command with `--tags` ([Clean your customers](https://email-validation.org/docs/guides/shopify/#clean)):

```bash
node clean.mjs --setup
node clean.mjs --tags
```

Both use the key and store settings of the setup guide. Each checked customer gets four metafields in the namespace
`email_validation` and one tag for its status:

| Tag | Status | What to do |
|---|---|---|
| `email-valid` | `valid` | send, apart from the few in [step 3](#valid-remove) |
| `email-invalid` | `invalid` | leave out: the address cannot receive mail |
| `email-disposable` | `disposable` | leave out: a throwaway inbox |
| `email-catch_all` | `catch_all` | send with care, see [step 4](#caution-and-retry) |
| `email-unknown` | `unknown` | check again later, see [step 4](#caution-and-retry) |

The tag shows the status. The reason is in the metafield `email_validation.reason`, for example `no_mailbox` or
`spamtrap`. Each reason has an action, `send`, `send_with_caution`, `remove` or `retry_later`
([actions](https://email-validation.org/docs/statuses/#actions)). Every `invalid` and `disposable` address has the action `remove`.

To check new and changed customers as they come in, the setup guide also has a
[webhook relay](https://email-validation.org/docs/guides/shopify/#relay) that writes the same metafields, and the same tags when you turn tags
on for it.

## Step 2: Send to a segment that leaves the bad addresses out

Create a customer segment with this query
([Shopify-based customer segment filters](https://help.shopify.com/en/manual/customers/customer-segmentation/reference-guide/shopify-segments)):

```text
email_subscription_status = 'SUBSCRIBED'
AND customer_tags NOT CONTAINS 'email-invalid'
AND customer_tags NOT CONTAINS 'email-disposable'
```

Then, when you create a campaign in Shopify Messaging, choose this segment in the **To** field
([Create email marketing campaigns using Shopify Messaging](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/create-email/create-campaigns)).
Shopify's page does not describe a way to exclude one segment from another, so the exclusion sits in the query.

A customer added after your check has no tag yet, so this segment still includes it. Run the command again for new
customers, or use the relay.

## Step 3: Unsubscribe the valid addresses that should not be mailed

A few addresses are `valid`, because the mailbox accepts mail, but have the action `remove`. A known spam trap is
one: its reason is `spamtrap`. Their tag is `email-valid`, so the segment in step 2 still includes them.

1. Export your customers: go to **Customers** > **Export**, choose **All customers**, tick **Customer metafields**,
   choose **Plain CSV file** and click **Export customers**. With more than 50 customers, Shopify emails you the file
   ([Importing and exporting customer lists](https://help.shopify.com/en/manual/customers/import-export-customers)).
2. In a spreadsheet, filter the column of `email_validation.reason` to the reasons whose action is `remove`:
   `spamtrap`, `trap_pattern`, `complainer`, `suppressed` and `abuse_linked`.
3. For each of these customers, open the customer in Shopify, choose **Manage** > **Edit marketing settings**,
   turn off email marketing consent and click **Save**
   ([Managing customers](https://help.shopify.com/en/manual/customers/manage-customers)).

They are then no longer `SUBSCRIBED`, so the segment leaves them out.

## Step 4: Handle the caution and retry customers

- **Catch-all addresses** (`email-catch_all`) may or may not reach a person
  ([catch-all domains](https://email-validation.org/guides/catch-all-emails/)). To mail them less often, add
  `AND customer_tags NOT CONTAINS 'email-catch_all'` to your regular segment and send to them in a segment of their
  own. Some `valid` addresses also have the action `send_with_caution`, such as
  [role addresses](https://email-validation.org/guides/role-based-email-addresses/) like `info@` (reason `role_account`). Shopify advises
  removing role addresses from your subscribers: unsubscribe them as in step 3.
- **`email-unknown`** means the check got [no definite answer](https://email-validation.org/docs/statuses/unknown/) this time, for example
  because the receiving server was unavailable. Keep these customers. Run the command again in a few days: it checks
  customers whose status is `unknown` again.

## Check a file before you import it

To add a list of customers from another system, check the file first. Upload the CSV as a [bulk list](https://email-validation.org/docs/bulk/)
in the dashboard. You do not need to remove duplicates first, and duplicates, malformed addresses and `unknown`
results cost nothing ([cost](https://email-validation.org/docs/bulk/#cost)).

When the check is complete, click **Download all rows** for a CSV of every row with your original columns
([download options](https://email-validation.org/docs/bulk/#download)). Not **Download valid addresses** or **Download safe-to-send addresses**: one holds only the valid rows, the other
only the rows whose action is `send`, so the rows you act on below would be missing. Each row keeps your columns, followed by
our result columns. Three of them matter here:

| Column | What it holds |
|---|---|
| `ev_status` | `valid`, `invalid`, `catch_all`, `unknown` or `disposable` |
| `ev_reason` | why, for example `no_mailbox`, `spamtrap` or `role_account` |
| `ev_action` | `send`, `send_with_caution`, `remove` or `retry_later` |

Decide by `ev_action`, not by the status alone: a spam trap is `valid`, but its action is `remove`.

1. Delete the rows whose `ev_action` is `remove`, then delete our result columns, and save the file as CSV in UTF-8.
2. Import it under **Customers** > **Import**. The file can be up to 15 MB, and the Email column is required. Set
   **Accepts Email Marketing** to `yes` only for people who agreed to hear from you: Shopify warns that importing
   people who opted out as subscribers can cause spam complaints
   ([Importing and exporting customer lists](https://help.shopify.com/en/manual/customers/import-export-customers)).

## Unsubscribe, do not delete

Shopify cannot delete a customer who has an order, and deleting removes the whole customer profile
([Managing customers](https://help.shopify.com/en/manual/customers/manage-customers)). A customer whose address is
bad is still a buyer with a history. Unsubscribe the customer from email marketing, as in step 3, and keep the
profile and its orders.

## Questions

### Does Shopify stop mailing bounced addresses by itself?

Yes, after the bounce. Shopify Messaging suppresses an address once mail to it has bounced because of a problem with
the address. A check finds the addresses that would bounce before you send to them.

## Try it

Check one address in the free [email checker](https://email-validation.org/email-checker/), or upload a customer file for
[bulk email verification](https://email-validation.org/bulk-email-verification/).

## Related

- [Validate emails in Shopify: the setup guide](https://email-validation.org/docs/guides/shopify/).
- [Bulk lists: upload, cost and result columns](https://email-validation.org/docs/bulk/).
- [Statuses, reasons and actions](https://email-validation.org/docs/statuses/).

## Related guides

- [How to clean an email list](https://email-validation.org/guides/email-list-cleaning/)
- [Cleaning an email list in Klaviyo](https://email-validation.org/guides/clean-email-list-klaviyo/)
- [Cleaning an Omnisend contact list](https://email-validation.org/guides/clean-email-list-omnisend/)
- [Cleaning the customer email addresses of a WooCommerce store](https://email-validation.org/guides/clean-email-list-woocommerce/)
- [Cleaning a Drip subscriber list](https://email-validation.org/guides/clean-email-list-drip/)
- [All guides](https://email-validation.org/guides/)

## Sources

Shopify's help pages below were read on 2026-11-20.

- [Shopify: Email subscriber list management](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/subscriber-list-management):
  bounced addresses suppressed, unsubscribes and complaints, role addresses.
- [Shopify: Optimizing your marketing campaign delivery and deliverability](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/email-delivery):
  bounces, complaints and unsubscribes left out of campaigns, access limited or paused.
- [Shopify: Building and maintaining your email deliverability](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/deliverability):
  checking addresses with a verification tool before importing them.
- [Shopify: Shopify-based customer segment filters](https://help.shopify.com/en/manual/customers/customer-segmentation/reference-guide/shopify-segments):
  the tag filter with NOT CONTAINS, the email subscription status values.
- [Shopify: Create email marketing campaigns using Shopify Messaging](https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/create-email/create-campaigns):
  choosing a segment in the **To** field.
- [Shopify: Importing and exporting customer lists](https://help.shopify.com/en/manual/customers/import-export-customers):
  export options and delivery, the import file's limits and columns, the consent warning.
- [Shopify: Managing customers](https://help.shopify.com/en/manual/customers/manage-customers): marketing settings on a
  customer, which customers cannot be deleted.

## More on Shopify

- [Shopify integration](https://email-validation.org/integrations/shopify/)
- [Validate emails in Shopify](https://email-validation.org/docs/guides/shopify/)

_How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text._

## Get up to 500 free credits. No card needed.

New accounts get 500 free credits (100 when you sign up with a free email provider such as Gmail, Outlook or Yahoo, another personal mailbox such as a paid one like Fastmail or one from your internet provider, or an address from a relay or alias service). Try it on your own list before you buy. [Create your account](https://email-validation.org/signin/?new=1) or [open the free email checker](https://email-validation.org/email-checker/).
