The pmta command prints its result in one of four formats: text for a person — by default, –xml, –dom — variables for scripts without XML parsing — and –json.
The format option goes before the command: pmta –json show status.
Four formats:
| Option | What it prints | For whom |
|---|---|---|
| — | text | a person |
| –xml | XML | programs with XML |
| –dom | variables of the form name=”value” | Perl and shell scripts |
| –json | JSON | programs with JSON |
# state as a structure and as DOM variables pmta --json show statuspmta --dom show status | grep smtpOut
2 relations
Monitor response formatsThe same setting at another level. § 6.2
pmta show version pmta --json show version
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.