Global
The line limits the number of simultaneous connections to an MX whose address falls within the named range. The range is written in CIDR notation — 173.194/16 — or as a single address.
The manual says: the syntax is similar to the neighboring mx-connection-limit, only with addresses instead of names. So all its caveats apply too: the limit is counted for each sending address separately and applied to each matching MX, not to all of them together.
It is specifically noted that the directive is allowed only at the node level. It cannot be written inside blocks.
The line is repeated — one line per rule.
Hence the practical point: limit by address when names do not work — for example, when the same address serves MXs with different names. In other cases a name is more reliable.
The other half is shared with the neighboring line: the limit is multiplied by the number of sending addresses.
The Hub also cannot track receivers’ address changes, so a range rule would have to be maintained by hand.
What to set. Limiting by address is for a narrow case:
| Value | When |
|---|---|
| do not write it | the usual case: limits are set on recipients and sending addresses |
| a range and a number | the same address serves MXs with different names, and it is exactly that address that needs limiting |
| a single address | a pinpoint measure for a specific receiver host |
As with the neighboring line, count it multiplied by the number of sending addresses.
# a whole range and a pinpoint rule for one address ip-connection-limit 173.194/16 50ip-connection-limit 104.47.2.33 1
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.1.60.2
1 relation
grep -n 'ip-connection-limit' /etc/pmta/config pmta resolve gmail.com
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.