<domain>
It limits not the number of simultaneous conversations but the rate at which they are opened: how many new connections to this recipient domain may be started per interval from a given sending address. The neighboring source-ip-max-smtp-out handles the former, this one the latter, and they should not be confused: ten persistent connections and ten new ones every minute look completely different to a receiver.
Frequent reconnects irritate receivers more than volume. Large mailbox providers count connection attempts specifically, and a burst of connections from one address is a typical reason to respond with 421 and hold the sender back. A steady rate with long-lived connections looks much healthier than a ragged one.
The mask comes first, and each address gets the number. source-ip-max-connect-rate 1.2.3.0/24 60/m means sixty connections per minute from each address in the subnet, not sixty for the whole subnet. What exactly counts as a sending address is decided by enable-source-ip-limits-on-sending-ip.
The directive will be needed where several IPs are gathered into one sending address. With the proxy gate it was not needed: each proxy has its own sending address, and the queue’s connection rate already belongs to one rented address.
Start from the number of simultaneous connections, not from volume. If a receiver is allowed ten connections and each lives a minute, a connection rate above ten per minute means connections are being closed too early. Start with a value of the same order as the connection ceiling.
The denominator accepts a multiplier. 100/15m means a hundred connections in fifteen minutes; convenient when the natural window does not fit a minute or an hour. The multiplier appeared in PowerMTA 5.
The default is unlimited — the connection rate from an individual address is not limited, and only the queue limit applies.
# a steady connection rate: as many as the connections we hold <domain hotmail.com> max-smtp-out 10 source-ip-max-connect-rate 1.2.3.4 10/m connection-idle-timeout 1m </domain>
what people get wrong and how it ends3 mistakes▶
our experience
§ 3.3.10.91
our experience
2 relations
grep -rn source-ip-max-connect-rate /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.