<virtual-mta>critical
The syntax is the same as at the node level. What changes is the scope: the name applies only to messages leaving through this sending address.
But overriding the general name is not the last word. Name resolution for the greeting looks earlier at the name tied to the address itself — the second word of smtp-source-host. As long as it is there, this line has no effect.
Hence its real place. It is needed where no name is tied to the address: the address is given as a range, or the address line is omitted altogether and inherited from the node. In a regular fleet, where each sending address has its own “address plus name” pair, the directive is not needed at all.
The value is the same — a fully qualified domain name. The question here is a different one: whether the line is needed at all.
| How the sending address is set | Is this line needed |
|---|---|
| an “address plus name” pair in smtp-source-host | no: the name is taken from there, resolution will not get here |
| an address as a CIDR range | yes: a range has one name for all addresses, and there is nowhere else to set it |
| the address line is omitted | yes, but better not to omit the address line |
The name must match the reverse record of the address the message leaves from. With a range this condition cannot be met for all addresses at once — one more reason not to give addresses as ranges.
# the name is needed here precisely because the address is given as a range <virtual-mta bulk> smtp-source-host 203.0.113.0/28 host-name mail.example.com</virtual-mta>
what people get wrong and how it ends2 mistakes▶
§ 3.3.1.35
our experience
2 relations
swaks --server 203.0.113.10 --to probe@example.net --quit-after HELO
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.