Skip to content

The email blocklist: stop mail to addresses that bounce or complain

Describes Emails 0.9.0.

The blocklist is the list of addresses your site will not send to. PhoenixKit’s mailer checks it before every message, so a blocked address gets nothing: no password resets, no newsletters, no order mail.

Where to find it

In the admin sidebar, open Emails, then Blocklist. The address is /admin/emails/blocklist. You need the Admin or Owner role, or a role with the Emails permission, and the Emails module must be on.

The page refreshes itself every 30 seconds.

The Emails blocklist: totals, filters, Add Block, Import CSV and Export CSV, and an empty list The Emails blocklist: totals, filters, Add Block, Import CSV and Export CSV, and an empty list

The blocklist: addresses the site will not mail.

How an address gets on the list

  • Hard bounces: when Amazon SES or Brevo reports a permanent bounce, the address is blocked with the reason hard bounce and no expiry.
  • Spam complaints: when the provider reports that a recipient marked your mail as spam, the address is blocked too, with no expiry.
  • By hand: an admin adds it here, one at a time or from a CSV.

Amazon SES events reach PhoenixKit either through SQS polling or through the SNS webhook; both add blocks the same way. Bounces and complaints are only seen when delivery event tracking is set up for your provider (for Amazon SES, Process Amazon SES events must also be on).

Once blocked, an address stays blocked until its expiry date passes or someone unblocks it. Blocking an address that is already on the list replaces its reason and expiry date.

The counters

  • Total Blocks: all blocked addresses.
  • Active Blocks: blocks in force now.
  • Expired Today: blocks whose expiry date passed today.

Reading the table

Each row shows the Email Address, the Reason, when it was Added, when it Expires (Never for a permanent block) and its Status: Active, or Expired for a block that is no longer enforced. Expired rows are greyed out. Click Email Address, Reason, Added or Expires to sort by that column. The list holds 50 addresses per page.

Filtering and searching

  • Reason: All Reasons, or one of the reasons currently on the list.
  • The status menu: Active Only (the default) or Include Expired, which adds expired blocks to the list.
  • Search email… finds addresses containing your text.

When nothing matches, the table says No blocked emails found, with Try adjusting your filters or Your blocklist is empty.

Adding an address

Add Block opens Add Email to Blocklist:

  • Email Address.
  • Reason: Manual Block, Spam, Bounce Limit Exceeded, Complaint or Abuse.
  • Expires At (Optional): a date. The block ends at the end of that day (UTC). Leave it empty for a permanent block.

Add to Blocklist saves it and says Email address blocked successfully.

Importing from CSV

Import CSV opens Import Blocklist from CSV. Paste lines into CSV Content in the form email,reason,expires_at, one address per line. The expiry date is optional and written as 2025-12-31; a first line starting with email,reason is skipped as a header. Import adds each line and reports Successfully imported %{count} blocked emails. Lines that can’t be read are skipped without a message of their own, so compare the count with what you pasted.

Unblocking and other actions

  • Unblock on a row removes the address from the list straight away, with no confirmation, and says Email address unblocked successfully. The address stays unblocked: mail to it is sent again until a new bounce, complaint or admin blocks it.
  • Select All on Page ticks every row on the page; you can also tick rows one by one. With rows ticked, a bar shows %{count} email(s) selected with Remove Selected, Export Selected and Clear. Remove Selected asks you to Confirm first and reports Removed %{success} of %{total} emails from blocklist. Export Selected asks the same and then downloads the ticked rows as a CSV file.
  • Export CSV downloads the rows on the current page as a CSV file with email, reason, date added and expiry date.
  • Refresh reloads the list.

What it doesn’t do

  • Export CSV exports only the page you are looking at (up to 50 rows), not the whole blocklist.
  • Expired blocks are not deleted; they stay on the list, greyed out, under Include Expired.
  • It doesn’t block whole domains or patterns: each entry is one exact address (upper and lower case are treated the same).
  • Soft bounces don’t block an address.
  • Automatic blocking comes only from the events your provider reports back. Mail sent through a provider without delivery event tracking never adds blocks by itself.