<domain>
The regular max-smtp-out limits the queue as a whole: a queue is a “recipient domain + sending address” pair. If several IPs are brought up inside one sending address, they all share this limit and take from it unevenly — whoever gets there first takes it. This directive sets a ceiling for each address separately.
The mask comes first, not the number. The line looks like source-ip-max-smtp-out CIDR N: the mask says which addresses the rule applies to, the number says how many connections are allowed. The manual phrases the limit as “for a given outgoing address,” that is, each matching address gets the number, rather than it being divided among them. A /24 mask means not 10 connections for the subnet but 10 for each of its addresses.
What counts as a sending address is not decided by this line. enable-source-ip-limits-on-sending-ip chooses between the node’s local address and the one the recipient sees. Without a proxy they coincide; through a proxy the local one is counted by default — one for all — and the “per address” limit stops being a per-address limit.
Do not use the old name. Before this directive appeared, the same thing was called max-smtp-out-per-source-ip; the manual marks it as deprecated and refers here.
The directive will be needed in someone else’s configuration where several IPs are gathered into one sending address. With the proxy gate it was not needed: each proxy has its own sending address.
Count from the recipient domain, not from the node. The recipient domain sees the sum across all your addresses: five addresses at ten connections each means fifty simultaneous conversations with one mailbox provider, and for most that is a lot. It is sensible to keep the product within the same bounds as the regular queue ceiling.
A mask is a way not to repeat yourself. One line with /24 replaces two hundred fifty-six identical lines, one per address. But remember that each address gets the number: widen the subnet and the sum grows too.
The default is unlimited, which means there is no separate per-address ceiling and only the queue limit applies.
# one sending address has four IPs brought up <domain comcast.net> max-smtp-out 20 source-ip-max-smtp-out 1.2.3.0/30 5</domain>
what people get wrong and how it ends3 mistakes▶
§ 3.3.10.88
§ 3.3.10.86
our experience
2 relations
grep -rn source-ip-max-smtp-out /etc/pmta/ pmta show queues --maxitems=20
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.