<domain>
The port the node sends mail to over SMTP. The default 25 is the ordinary mail port, and on the open internet there is no reason to change it: the receiver listens exactly there.
The line is overridden by a server list. If the receiver has smtp-hosts with ports after a colon, those apply, not this line.
Why it is touched at all. The manual names one scenario: several PowerMTA nodes talk through an address translation device. Such a device can tell streams apart by destination port — and then each sending address does not need its own local address, its own port is enough. Hence the manual’s example: two streams, 9001 and 9002.
Keep the default unless you are building address translation. The manual gives no other reason to change the destination port.
Set it inside a stream, not globally. The manual’s example is written exactly this way: the line sits in a receiver block inside <virtual-mta>, and different streams get different ports.
Remember the override. The port from smtp-hosts is stronger; setting both for one receiver is pointless.
# two streams differ by destination port, not by local address <virtual-mta vmta1> <domain *> default-smtp-port 9001 </domain> </virtual-mta> <virtual-mta vmta2> <domain *> default-smtp-port 9002 </domain> </virtual-mta>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.99
1 relation
pmta show settings example.com/vmta1 | grep -i default-smtp-port ss -tn state established '( dport = :9001 )' | head
3 articles
◇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.◇How the policy for a receiver is assembledSettings are assembled from the most general pattern to the most precise; the order of blocks in the file means nothing.◇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.