Knowledge base

<acct-file>

The accounting file and its rotation
There can be several streams, each with its own composition

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.

Example configuration
# two streams: deliveries separately, bounces separately
<acct-file /var/log/pmta/acct-d.csv>
    records d    move-interval 1h
</acct-file>
The highlighted line is what separates one stream from another — it lists the record types. Without it the file gets everything the engine writes by default.
yellow — — directive names, blue — blocks. They are highlighted the same way in the text of the card.
Block directives: 26