docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec postfix-mailcow postqueue -j

Category: Mail Servers & Postfix

docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec postfix-mailcow postqueue -j

Dump the Mailcow mail queue as JSON

postqueue -j prints every queued message with its ID, sender, recipients, and reason for deferral in machine-readable JSON. Pipe it through jq to find all messages stuck on one destination. This is the container equivalent of mailq with richer output.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.