Skip to content

Forcing delivery on frozen Exim messages

When to thaw a frozen Exim message on a cPanel server, when to delete it instead, and how to do either at scale without touching the messages you do not want to move.

Frozen messages in an Exim queue look like the queue is broken. They are usually working exactly as designed: Exim has tried, failed, hit the limit it was configured to hit, and stopped trying. The right move depends on why the message froze. A 5xx bounce that froze because the recipient went read-only for an hour should be retried. A 5xx bounce on a sender that doesn’t exist anymore should be deleted. Thawing everything wholesale is rarely the answer.

What’s happening

Exim freezes a message when one of three conditions hits: the message has been retrying for ignore_bounce_errors_after (default 2 days) without success, an unrouteable bounce came back, or a custom condition froze it deliberately. A frozen message stays in the queue, marked with a “Frozen” flag in exim -bp output, and Exim ignores it on queue runs until you explicitly thaw it.

How to verify

List frozen messages and their reasons:

exim -bpr | grep frozen | wc -l
exim -bpr | grep -B1 frozen | head -50

Then inspect a specific message’s log to understand why it froze:

exim -Mvl <message-id>
exim -Mvh <message-id>
exim -Mvb <message-id> | head -20

-Mvl shows the message’s log entries, -Mvh its headers, -Mvb the body. The log explains the freeze reason.

The fix

  1. Categorize the frozen messages. Usually one of three causes dominates: bounces to invalid senders, mail to a destination that was temporarily down, or mail that hit an external block (Spamhaus, content filter). Each calls for a different action.

  2. Thaw and retry messages whose freeze reason no longer applies. If the destination’s MX is now up, thaw the messages targeting it:

    exim -Mt <message-id-1> <message-id-2>
    exim -M <message-id>

    -Mt thaws, -M forces a delivery attempt. For bulk thaw by sender, use exiqgrep -z -f <pattern> (lists frozen matching a pattern) piped to xargs exim -Mt.

  3. Delete frozen bounces with empty Return-Path. Most are dead and reissuing them produces nothing useful:

    exiqgrep -z -f '<>' | xargs exim -Mrm
  4. For messages frozen by external blocks, fix the upstream cause first. Get off the blocklist (see the blocklist-specific KB articles), then thaw. Re-trying before delisting wastes effort.

  5. Set an automated freeze sweep. A cron that lists frozen messages over X days old and bounces them to the original senders (exim -Mg) prevents the queue from accumulating dead weight indefinitely.

For environments where the queue should never accumulate quietly, Stack Harbor adds the freeze-monitoring and triage cadence to cPanel server administration.