The method was created for senders that cannot be changed: programs that cannot add headers, or a set of different machines, each of which should get its own address. Any number of <source> blocks can be declared, each with its own default, and a pool name is allowed instead of a stream name.
The defining property is that this is a default. It applies only when nobody higher up the ladder has spoken. So whether it takes effect on a specific message depends not on the configuration but on what the sender put into the message.
What the Hub does not do is reason about what stands higher up. The default is written, but whether the platform overrides it with a header, the Hub neither knows nor checks.
The mechanism has no values of its own: the value is set by default-virtual-mta. The choice here essentially comes down to three options:
| Value | When | What you get |
|---|---|---|
| a stream name | the source has one sending address | predictable and simple |
| a pool name | there are several addresses and they are equal | rotation by the engine |
| by-smtp-source-ip | each address has its own stream | a rule that does not grow with the number of addresses |
# each submitting machine has its own stream, without a single header <source 10.0.0.5> default-virtual-mta shop-example-com always-allow-relaying yes </source> <source 10.0.0.6> default-virtual-mta news-example-com always-allow-relaying yes </source>
what people get wrong and how it ends2 mistakes▶
§ 3.3.1.35
§ 9.4
2 relations
grep -n -B3 default-virtual-mta /etc/pmta/config
3 articles
◇How a message gets into the engineSix described submission methods: extended SMTP, four language bindings and a directory the node watches on disk.◇A license for a fleet, not for a serverThe license is not bound to a server: it is installed on as many machines as the instance limit allows, and the nodes send volume statistics to the vendor every hour.◇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.