Prints the node’s state: traffic — totals, the last hour and minute, peaks — connections with the ceiling, the name cache, queues, the spool and the running flag.
Counters run since the last reset. The manual notes that a restart does not zero them; reset counters does.
/status?format=json returns the same set of numbers, and with the –json, –xml or –dom options the command itself prints it as a structure.
When to call it:
| Question | This command or not |
|---|---|
| what is going on with the node now | yes |
| what the connection ceiling is | yes — the “maximum” column |
| what happened yesterday | no — accounting and pmtastats |
| the same as a structure for a program | yes — with –json |
# state as text and as a structure pmta show statuspmta --json show status
3 relations
Reset the countersThe only documented way to reset what it prints. § 6.3.6
The whole node state in one documentThe same thing, returned by a request. § 6.3.17
pmta show status | tail -1 systemctl status pmta
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇Two inbound report processors and what to do with themBounces by message and complaints are parsed by two identically structured blocks; each has its own address list and its own pair of decisions about the message’s fate.◇Five ways for a queue to hand off a messageA queue does not have to use SMTP: it can write to a file, run a program, call over HTTP or discard.