<source>
Adds to the header with verification results all DNS queries made while verifying the signature — that is, the public key lookup. The default is not to add them.
The benefit is one: when signature verification gives an unexpected result, the trace shows exactly which key the node looked for and what it got in response. Without the trace you have to repeat the query by hand and hope DNS answers the same way.
The trace travels with the message — as with the other lines of this kind.
Only for the duration of an investigation. And with a comment.
Narrow the source. The trace will get only into messages from the specified network.
A manual query is often enough. The public key is looked up with one command by the selector and domain from the signature.
# TEMPORARY: investigating why signature verification fails <source 198.51.100.0/24> check-dkim-inbound true trace-dkim-check true</source>
what people get wrong and how it ends1 mistake▶
our experience
1 relation
grep -n trace-dkim-check /etc/pmta/config dig +short TXT k1._domainkey.example.org
3 articles
◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇Two inbound report processors and what to do with themBounces by message and complaints are parsed by two identically structured blocks; each has its own address list and its own pair of decisions about the message’s fate.◇Address lists — named and unnamedA list of addresses, domains, patterns or hashes; a named one is attached by directives such as suppression, an unnamed one lives inside an inbound mail processor.