CertGrid CertGrid
Hands-on Lab·LPIC-2

A message in the queue and why it is still there

Accepting a message is not delivering it. This guide sends one message that fails permanently and one that fails temporarily, shows that only the second is queued, finds the queued file on disk, reads it with postcat, asks how long Postfix will keep trying, and deletes it - then proves local delivery never went near the relay at all.

202: E-Mail Services Guide 29 of 29 Intermediate

One host. Postfix is installed, pointed at an unroutable relay to manufacture a temporary failure, and purged at the end.
Server NameIP AddressOSRolesCPURAMHDD
LPIC2-A01192.168.0.78Ubuntu 26.04 LTSPrimary service host - BIND, Apache, Samba, Postfix. Topic 204 RAID runs on loop devices; this machine has no spare disk2 Core4 GB50 GB

This guide includes

Use this when mail has been sent and has not arrived, and you need to say whether it is still coming. This matters because sendmail exits 0 for a message that will never be delivered, and because the queue holds the reason for every message in it.

Before you start

  1. An MTA, and an empty queue

  2. A permanent failure never reaches the queue

  3. A relay that will never answer

  4. Where that message physically is

  5. How long it will keep trying

  6. Local delivery, which the relay never sees

  7. Emptying the queue on purpose

  8. Putting the machine back

Official sources