The extreme form of handing the decision over to the submitting side: the private key arrives in the message itself, in the X-DKIM-Key header. The node signs with it and removes the header before sending — for security reasons, as the manual says.
It works only in combination. Two lines are needed on the source: key processing and signing options processing. Plus the selector itself: it is passed in a separate header, and without it the message cannot be signed.
The key takes several lines, so the header in the message is folded — like any long header.
# processing of both headers is enabled on the source <source 10.0.0.0/8> process-x-dkim-key true process-x-dkim-options true</source>
what people get wrong and how it ends2 mistakes▶
our experience
§ 10.3.5
2 relations
grep -n 'process-x-dkim' /etc/pmta/config grep -i 'DKIM-Signature' /var/log/pmta/pmta.log | tail -3
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.◇The group that grants management rightsMembership in the pmta group gives an unprivileged user the right to call the node’s commands and use submission.◇How the node selects a source and combines its settingsA connection falls under all source blocks whose addresses cover it, and they act merged — the narrow one overrides the wide one; named blocks are attached only by direct reference.