Reads accounting files and computes statistics: throughput, delivery times, bounce categories, top domains — for the node as a whole or broken down by sending address, job, sender and header.
It works with files, not with a live node: it answers questions about the past. Several files can be named — for example, if accounting was rotated in the middle of a campaign; gzip-compressed files are accepted with the .gz or .gzip extension. The manual notes that the program currently works only with CSV accounting.
Reports are selected by words — vmta-summary, delivery-times, bounce-categories, top-rates and others, each with its own options. Common options filter records by job, sending address, recipient domain and age, and –output html produces the report as a page.
When to use it:
| Question | This command or not |
|---|---|
| how fast the node delivered over a period | yes — delivery-times, top-rates |
| which bounce categories prevailed | yes — bounce-categories |
| what happened to one message | no — acctfind |
| what is happening now | no — show status |
# a summary by sending address and bounce category for one day pmtastats --last 1d vmta-summary bounce-categories --bounceCat all acct*pmtastats --output html vmta-time-breakdown acct* > report.html
2 relations
How an accounting record is structuredThe mechanism the command works with. § 12.4
The address does not existA neighboring catalog entry. § 12.6
pmtastats --version ls -l /var/log/pmta/acct*
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.◇The watchdog that restarts the engineKeeps an eye on the engine and brings it back up after a crash by itself, sending a crash report to the postmaster address.◇How the policy for a receiver is assembledSettings are assembled from the most general pattern to the most precise; the order of blocks in the file means nothing.