<domain>critical
The value is record types separated by commas: d delivery, b bounce, t transient failure, tq failure to queue. You can disable one type or all of them at once.
The scope is the queue, that is, the “receiver plus sending stream” pair, not the node as a whole.
The case the manual names: messages sent nowhere — into the discard queue. By default the engine writes a delivery record for them, because formally it did deliver, and that record skews the statistics. The line removes it.
Disabling bounces is especially dangerous: their absence looks like flawless delivery, but in reality it means nobody will learn about them.
The second half: the line lives in the receiver block and obeys merging. In the * block it will turn off accounting for the entire node — while looking like a setting for a single queue.
Disabling any record type here would mean losing the corresponding events in telemetry irretrievably.
What to set. The line is needed rarely and pointwise:
| Value | When |
|---|---|
| do not write it | always, if outcomes are analyzed from accounting |
| d for the discard queue | messages go nowhere, and the “delivery” record spoils the statistics |
| several types | the queue is known to be a service one and does not take part in reports |
Disabling bounces (b) is not worth it anywhere: their absence is indistinguishable from there genuinely being none.
# messages go nowhere — a delivery record spoils the statistics <domain discard.example> disable-acct-records d</domain>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.8
2 relations
discard-as-bounce<domain>Another answer to the same problem: that one removes the record from accounting altogether, this one changes its type. § 3.3.10.8The telemetry contractThe flip side of the contract: a receiver can be excluded from accounting on its side, and there will be no records about it in any block. § 3.3.10.8
grep -n 'disable-acct-records' /etc/pmta/config /etc/pmta/virtualhost.txt grep -n -A6 '^<acct-file' /etc/pmta/config
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.◇How an accounting record is structuredHow an accounting record is structured: the record type in the first column, then the fields, whose composition is configurable.