<domain>
It works for a queue of the discard type (type) — the one that discards messages. It discards them but writes a record to accounting, and this line decides which one.
The false default records them as deliveries (d). The default was chosen this way for a reason: from the node’s point of view the job is done, and the message left the queue without an error.
true records them as bounces (b). That is more honest if a discard queue plays the role of a black hole for known-undeliverable mail: in reports these messages will stand next to real bounces rather than next to delivered ones.
true is almost always the right choice. It does not prevent discarding messages but keeps them out of the delivered ones.
The default is kept deliberately and rarely. It is appropriate where discarding is regular delivery — for example, a sink queue for messages processed elsewhere.
The line does not cancel the record itself. Accounting happens with any value; the choice is only between the delivery letter and the bounce letter.
# a dead-end domain: we discard messages but do not record them as deliveries <domain undeliverable.example.com> type discard discard-as-bounce true</domain>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.109
2 relations
pmta show settings undeliverable.example.com/vmta1 | grep -i discard-as-bounce grep -c ',undeliverable.example.com,' /var/log/pmta/acct-*.csv
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.