critical
The general structure of accounting records: the record type — d delivery, b bounce, t temporary error, tq queue temporary error, r reception, f complaint, rb and rs — a bounce and a status that arrived by mail — and fields whose set is configurable. By default only d and b are written.
The record type decides what the line is about, the field set decides what is in it. Both are set in the accounting block, and both affect size: there are as many delivery records as delivered recipients.
Record types:
| Type | What the line is about | By default |
|---|---|---|
| d | delivery | yes |
| b | bounce | yes |
| t, tq | temporary error of a recipient, of a queue | no |
| r | message reception | no |
| f | complaint | no |
| rb, rs | a bounce and a status that arrived by mail | no |
<acct-file /var/log/pmta/acct.csv> records d,b,t record-fields d *,timeFirstAttempt </acct-file>
3 relations
Temporary failureThe accounting record in which the result is visible. § 12.2.3
The telemetry contractA related mechanism: they work together. § 12.2
cut -d, -f1 /var/log/pmta/acct-*.csv | sort | uniq -c
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 telemetry contractOne block describes the accounting output in full: which record types, which fields, where they go, how files rotate and what gets anonymized.◇Exposing metrics to a collectorExposing the node’s metrics to an external collector in its format.