A refinement of the listener method, and its difference is a useful one: you need neither a named source per stream nor a listener per address. The value by-smtp-source-ip in default-virtual-mta tells the node: look at which of your own addresses the inbound connection arrived at, and take the stream that has this address declared as its sending address.
Matching is done by smtp-source-host and its proxy form. That is, by data that is already in the stream definition — the method repeats nothing and duplicates nothing.
Hence its main property: the selection configuration does not grow. A node with ten streams on ten addresses routes by itself; an eleventh stream requires not a single line in the selection rules. For a fleet where addresses come and go, this is the difference between “regenerate” and “leave alone.”
Note what complements it: the header stands higher and remains the main warm-up method, and the same source also carries a selection list by return address. by-smtp-source-ip is the bottom layer for submission without a login: it picks up everything not chosen above. Submission under a login goes through its own sources — the general login defaults to the pool, a pair’s login to that pair’s own stream.
The mechanism has no values of its own: there is exactly one value, and it is reserved — by-smtp-source-ip in default-virtual-mta. There are no intermediate forms: either the node matches the destination address itself, or a specific name is set as the default.
# ten streams on ten addresses, one selection line for all <virtual-mta mta1> smtp-source-host 203.0.113.10 mta1.example.com </virtual-mta> <source 0/0> default-virtual-mta by-smtp-source-ip</source>
what people get wrong and how it ends2 mistakes▶
§ 9.4.5
§ 9.4.5
3 relations
pmta show vmta-settings vmta1
3 articles
◇The sending address — what it is made ofA named set of everything that is a property of the address: which IP the message leaves from, how the node introduces itself, what it signs with and how fast it sends.◇The sender names the stream for each messageThe message carries the name of the stream it should be sent through — the choice is made by the submitting program, not by the node configuration.◇Cloud restrictionsClouds restrict outbound mail on port 25 until you ask them to lift the limit, and mailbox providers treat their address ranges with suspicion.