The block describes one accounting stream: what goes into it, where it is written and what happens to it next.
There can be several streams. Each with its own file, its own set of record types and its own field composition — this is how deliveries and bounces, for example, are separated.
Rotation is set right here: how often to start a new file and how many old ones to keep. This is a decision about history depth, and it has to be made together with the decision about disk space.
The field composition is also a decision about size. There are as many delivery records as delivered recipients; every extra field is multiplied by that volume.
# two streams: deliveries separately, bounces separately <acct-file /var/log/pmta/acct-d.csv> records d move-interval 1h </acct-file>
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.