CMDCommand · run as root on the server · mail family
urbestack-mail-trace
First published 14 Oct 2026
0.2.0Unchanged since publicationUsage
5 forms# urbestack-mail-trace --q ADDRESS [--dir any|sender|recipient] [--other ADDRESS] [--around "YYYY-MM-DD HH:MM" [--within 15m|1h|3h|12h|24h] | --from "YYYY-MM-DD HH:MM" --to "YYYY-MM-DD HH:MM"] [--subject TEXT] [--ip ADDRESS] [--sasl ADDRESS] [--status STATUS] [--no-rejected] [--limit N]# urbestack-mail-trace --id QUEUE_ID# urbestack-mail-trace --message-id '<local@domain>'# urbestack-mail-trace --files# urbestack-mail-trace --reverse IP [--reverse IP ...]Description
From the command's --help outputFinds messages in the mail logs and shows what happened to them. Use --q to search by email address. It also accepts a queue ID or a Message-ID in angle brackets for a single-message trace. An email address search covers the last 24 hours by default. Use --around for a window centered on a time, or use --from and --to for a range. Give times as YYYY-MM-DD HH:MM in the server's local time. With --around, --within sets the margin on each side to 15m, 1h, 3h, 12h or 24h. The default margin is 1h. Use --dir sender to match the envelope sender or SASL login, or --dir recipient to match a recipient. The default is any. Use --other to require a second email address on the same message. Filter by subject with --subject, by client IP address with --ip, or by SASL login with --sasl. The --status values are delivered, deferred, bounced, partial, expired, rejected, junk, discarded and deleted. Use --no-rejected to omit connections refused before Postfix assigned a queue ID. Use --limit to cap the number of results. Use --id to see a message's timeline, recipients, each delivery attempt with Postfix's four delays, mailbox delivery and what happened to the copy afterward, the verdict and findings, and the raw log lines. If a --message-id lookup finds several queue IDs, it shows the full trace for the newest and lists the others. Use --files to list the retained mail logs and see how far back they go, the server's time and time zone, and whether subject logging is enabled. Use --reverse to look up reverse DNS for up to 64 distinct IP addresses in parallel. Use --owner to restrict searches and message traces to the domains of that reseller and their customers. Administrators and resellers only.Usage: urbestack-mail-trace --q ADDRESS [--dir any|sender|recipient] [--other ADDRESS] [--around "YYYY-MM-DD HH:MM" [--within 15m|1h|3h|12h|24h] | --from "YYYY-MM-DD HH:MM" --to "YYYY-MM-DD HH:MM"] [--subject TEXT] [--ip ADDRESS] [--sasl ADDRESS] [--status STATUS] [--no-rejected] [--limit N] urbestack-mail-trace --id QUEUE_ID urbestack-mail-trace --message-id '<local@domain>' urbestack-mail-trace --files urbestack-mail-trace --reverse IP [--reverse IP ...] Finds messages in the mail logs and shows what happened to them. Use --q to search by email address. It also accepts a queue ID or a Message-ID in angle brackets for a single-message trace. An email address search covers the last 24 hours by default. Use --around for a window centered on a time, or use --from and --to for a range. Give times as YYYY-MM-DD HH:MM in the server's local time. With --around, --within sets the margin on each side to 15m, 1h, 3h, 12h or 24h. The default margin is 1h. Use --dir sender to match the envelope sender or SASL login, or --dir recipient to match a recipient. The default is any. Use --other to require a second email address on the same message. Filter by subject with --subject, by client IP address with --ip, or by SASL login with --sasl. The --status values are delivered, deferred, bounced, partial, expired, rejected, junk, discarded and deleted. Use --no-rejected to omit connections refused before Postfix assigned a queue ID. Use --limit to cap the number of results. Use --id to see a message's timeline, recipients, each delivery attempt with Postfix's four delays, mailbox delivery and what happened to the copy afterward, the verdict and findings, and the raw log lines. If a --message-id lookup finds several queue IDs, it shows the full trace for the newest and lists the others. Use --files to list the retained mail logs and see how far back they go, the server's time and time zone, and whether subject logging is enabled. Use --reverse to look up reverse DNS for up to 64 distinct IP addresses in parallel. Use --owner to restrict searches and message traces to the domains of that reseller and their customers. Administrators and resellers only.
Options
Find other commands that accept these optionsSame in the API
These operations run the command.urbestack-mail-autoresponder-urbestack-mail-check-urbestack-mail-dkim-urbestack-mail-hold-urbestack-mail-settings-urbestack-mail-smarthost-Generated from release 0.2.35 (current) · urbestack-mail-trace --help outputThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/commands/urbestack-mail-trace/