<domain>
How many recent events the engine remembers about a recipient domain. The manual clarifies: currently only errors are recorded, no other events get into this list.
This is not a log. The manual says directly: events are not written to a file, they are kept in memory. Everything else follows from that — a service restart wipes them, grep over the log will not find them, and they can be seen only on a running engine: show domains with the –errors option, show topdomains –errors or the queue page in the web monitor.
Why it is needed. The “last error” column in the domain list is the fastest answer to the question “what is wrong with this recipient.” There is no need to search accounting and match times: the engine already keeps the latest refusals next to the queue they belong to.
The default is 10. The web monitor shows exactly as many on the queue page — “the last 10 errors of the queue.”
There is no reason to touch the default of ten events: it costs nothing and is usually enough for an investigation.
There is no need to change the default. The last ten errors answer the question “what is happening now,” while history is accounting and the log, not the engine’s memory.
Raise it selectively and temporarily. Investigating one recipient: set 50 in its block, take a look, set it back. In the general block the same number will be multiplied by the number of domains in the queue.
Zero makes sense only where memory is more expensive than investigation — for example, on a small node with a very broad recipient list.
# we leave the general block as is and raise it only where we are investigating <domain *> max-events-recorded 10 </domain> <domain problem-mailbox.example> max-events-recorded 50</domain>
what people get wrong and how it ends3 mistakes▶
§ 3.3.10.7
§ 3.3.10.7
our experience
3 relations
pmta show domains --errors problem-mailbox.example pmta show topdomains --errors
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 watchdog that restarts the engineKeeps an eye on the engine and brings it back up after a crash by itself, sending a crash report to the postmaster address.◇How the policy for a receiver is assembledSettings are assembled from the most general pattern to the most precise; the order of blocks in the file means nothing.