<domain>deprecated
It set the hosts to which this receiver’s mail should be delivered, bypassing the usual MX lookup — or told the engine to look up the MX of another domain. Replaced by the smtp-hosts directive.
Both have word for word the same definition. Section § 3.3.10.98 repeats the first sentence of § 3.3.10.100 word for word and adds one line: “deprecated, use smtp-hosts”. The vendor gives no syntax, no default and no difference in behavior for the old name.
What is known about the notation. It is described only for the new name: hosts separated by commas within a preference level, a semicolon between levels, an optional port after a colon, lookup-mx:domain instead of a host list, and empty quotes to clear an inherited value. Whether the old name accepts all of this, the manual does not say.
No new values are chosen. The only sensible value is none: the line is moved to smtp-hosts as is, and you check that delivery goes where it went before.
When moving it, recheck the meaning. Explicit hosts are liable to go stale along with the infrastructure they pointed to: the gateway address changes, but the line stays. Before copying the value, make sure the host is still the right one.
Empty quotes clear the inherited value. For the new name this is documented, and it is a needed technique: a receiver that inherited explicit hosts from a more general block cannot get rid of them otherwise.
# before — the deprecated name <domain example.com> route mail.example.net </domain> # the right way — the same with the new name, with a port and a fallback level <domain example.com> smtp-hosts mail.example.net:2525; [10.1.1.1]</domain>
what people get wrong and how it ends3 mistakes▶
§ 3.3.10.98
§ 3.3.10.100
§ 3.3.10.100
1 relation
pmta show settings example.com
3 articles
◇Accept, route, deliverA message’s path inside the node: accept, decide where, deliver — and all the settings live between these three steps.◇Four value types the whole config is written inBoolean, domain pattern, regular expression and time interval — defined once in § 3.2 and then used by all directives.◇Reloading settings versus restarting the serviceThe configuration is read at startup, and after that edits are picked up by the reload command — except for the directives the manual marks as requiring a restart.