Knowledge base

show precache

Domains resolved in advance
What the node keeps ready

Shows the domains the engine keeps in the DNS precache — regardless of whether there is a queue for them.

The list is set by a file: precached-domains-file in the <dns> block, one domain per line. Entries are refreshed every precached-refresh-interval, 5m by default, instead of by the records’ own lifetime; the limit is precached-max-domains, 500 by default.

The main trap is bloating the list. Each domain is refreshed on its own interval regardless of traffic: a large list with a short interval turns into a constant stream of queries, and the manual explicitly requires scalable DNS for this.
What the Hub does. It does not call it: the Hub does not write a <dns> block with a precache.
Recommended values

When to use it:

Question This command or not
which domains the node keeps resolved in advance yes
why the first delivery to a domain is slow partly — whether the domain is in the list
what the name server answers now no — resolve
The purpose and the precache directives with their defaults come from the manual (§ 6.3.38, § 3.3.16). The trap analysis is ours.
Example configuration
# keep large receivers resolved in advance
<dns>
    precached-domains-file /etc/pmta/precached-domains.txt    precached-refresh-interval 2m
</dns>
An example from the manual; after a reload, pmta show precache will show the list.
yellow — — directive names, blue — blocks. They are highlighted the same way in the text of the card.
Compatibility
PowerMTA 6.0
described in the manual of this version · platform: any
The vendor does not state the first version for every directive — there is no note here. The name also appears in the 5.0 edition of the manual.
How to check on the node
Reconcile the list with the file:
pmta show precache
wc -l /etc/pmta/precached-domains.txt
The output has no more domains than there are lines in the file and no more than precached-max-domains.
In the Hub
Cost of a mistake
safe: a wrong value breaks nothing
Scenarios
Untangle a stuck queue