<acct-file>
The line sets arbitrary text that the engine puts into the userstring field of every record of this stream.
🔴 By itself it does nothing. The userstring field must be listed in record-fields — otherwise the value simply will not get into the file. There will be no error.
The practical point is labeling the source. Records from all nodes of the fleet flow into one place, and the label answers the question “where did this line come from”: the node number, the site, the configuration version.
The value is constant. It depends neither on the message nor on the recipient — it is a property of the accounting block, not of an event.
The line would be useful if records were collected from files rather than arriving in batches from a known address.
The label answers the question “where did the record come from”:
| Value | When |
|---|---|
| do not set | the source is known by another sign |
| the node number or name | records from all nodes flow into one place |
| the configuration version | you need to know under which setting the data was obtained |
And check that the userstring field gets into the set — with * it gets in by itself.
# the label gets into the file only together with the field in the set <acct-file /var/log/pmta/acct.csv> records d, b record-fields d timeLogged,rcpt,vmta,userstring user-string node-7-fra</acct-file>
what people get wrong and how it ends1 mistake▶
§ 3.3.11.8
2 relations
head -2 "$(ls -t /var/log/pmta/acct-*.csv | head -1)"
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.