<virtual-mta>criticalset by the Hub
The same line as at the node level — selector, domain, key — but declared inside <virtual-mta>. The selection mechanism is described on the general page; what matters here is something else: what declaring it in this particular place changes.
It changes two things. The key becomes available only to this stream’s messages — whatever leaves through other streams will not see it. And it is stronger than the general ones: if matching declarations exist both at the node level and here, the ones here win.
Hence the usual use: different senders sign with different keys, and they are separated by stream.
An asterisk inside a stream is safer than at the node level. Here it intercepts only this stream’s messages, not all mail. The manual’s example is exactly that.
Check the route before the value. A key in a stream makes sense only together with a rule that routes the right mail there.
The general declarations do not disappear. They remain a fallback for messages that the ones here did not fit.
# the key applies only to this stream's messages <virtual-mta mta1> domain-key s1, *, /etc/pmta/key.pem</virtual-mta> # and the rule that routes the right mail here <pattern-list L> mail-from /[@\.]example\.com$/ virtual-mta=mta1 </pattern-list>
what people get wrong and how it ends2 mistakes▶
§ 10.3.2
our experience
2 relations
grep -i 'DKIM-Signature' /var/log/pmta/pmta.log | tail -5 pmta show queues | grep -i mta1
3 articles
◇Headers the sender uses to control deliverySix control headers let the submitting side choose a stream, tag a message with a job, set signing options and the key, the envelope identifier and the schedule; each is allowed separately and per source.◇Backoff mode — the queue's second personalityA queue that a receiver has started refusing switches to a parallel set of limits, retries and routes — ten directives that act only in this mode.◇Warm-up built into the engineA warmed-up address hands the first N messages of the day for each receiver to its cold partner; the partner sends them itself and builds history.