The manual mentions the watchdog in passing — while explaining why the postmaster address must be set. But the consequence of that sentence is much bigger than the sentence itself.
A node can crash and come back up on its own. The watchdog notices the crash and starts the engine again; sending resumes without human intervention.
And the only documented notification of this is an email. The crash report goes to the postmaster address set by the postmaster directive. The event is not reflected anywhere else: in the status summary the node looks like it is working, because it really is.
This is important for a fleet: a node that crashes once a day and comes back up in seconds is indistinguishable from a healthy one from the outside. It will be visible only indirectly — through sending gaps as long as a restart takes.
So the watchdog’s reports have nowhere to go: a node that crashed and came back up looks no different in the cabinet from one that worked continuously. Telemetry might at most see a gap in polling, if the crash fell between two measurements.
This is not the only thing lost: the manual names the postmaster address as the channel for the warning about the license expiring soon as well. Neither message reaches anyone right now.
The Hub accepts mail to role addresses (postmaster@, abuse@, dmarc@) and discards it — but that is about inbound messages from other systems, not about the watchdog’s outgoing reports.
What the mechanism needs in order to work:
| What | What it must be |
|---|---|
| postmaster address | set by the directive and outside this node |
| the mailbox behind it | one that is read, not a role address into the void |
| the path to it | not through this same node — it may have crashed |
An address outside the node is not nitpicking. The crash report is sent by a machine that has just crashed; if the email goes through it, it may not go out at all.
For a fleet, email is not the best channel. It would be better for the Hub to learn about a restart; but the manual describes no such way, and email remains the only one.
# the only thing the watchdog needs is where to write postmaster admin@example.net
what people get wrong and how it ends3 mistakes▶
§ 2.3
§ 2.3
§ 2.3
2 relations
postmasterGlobalThe watchdog sends crash reports here — it is its only way to report them. § 3.3.1.4backoff-notify<domain>A second channel for learning that something is wrong: the watchdog watches the engine itself, the notification watches queue behavior. § 2.3Starting and stopping the engineA manual stop and start is the same action the watchdog performs by itself after a crash. § 4.1.3What to do after a crashThe mechanism this step relies on. § 4.2.5
grep -n '^postmaster' /etc/pmta/config pmta show status | grep -i 'uptime\|started'
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.◇What makes a virtual machine riskyRunning on a virtual machine is possible, but the manual does not recommend it without sufficient hardware and properly tuned hypervisor settings: under load the node may stop responding.◇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.