Global
The second way to roll domains up into one queue. The first is the <mx-rollup-list> block, where you list MX records by hand. This one is a single line: the node itself combines domains whose set of lowest-priority MX records matches by name. By name, not by address: two gateways with different names pointing to the same address will be considered different by the node.
The list takes precedence. Automatic rollup is considered only where no match was found in <mx-rollup-list>.
The node makes up the queue name itself — from the set of MX records. Two gateways mx1.foo.com and mx2.foo.com give the queue qn.mx1.foo.com.mx2.arollup. A name longer than about 160 characters is shortened, and when names collide a number is added to qn. The created queue survives a restart.
There is one value. The line either exists with the word by-name or it does not: it has no other kinds of rollup.
Enable it together with a settings block. Right after enabling it, create a <domain> for the expected queue names, otherwise they will get settings from a random domain of the group.
Do not combine it with manual per-domain warm-up. The daily warm-up quota is taken from the rolled-up queue, not from individual domains — a schedule written per domain will stop working.
# rollup by matching MX names auto-mx-rollup by-name # and right away — settings for the made-up names, # otherwise they will go to the first matching domain of the group <domain *.arollup> max-smtp-out 20 max-msg-rate 300/h </domain>
what people get wrong and how it ends2 mistakes▶
§ 3.3.1.52
§ 3.3.1.52
3 relations
How the policy for a receiver is assembledRolling up domains by shared MX changes which queue a receiver belongs to — and therefore which policy applies to it. § 3.3.1.52Warm-up built into the engineWith MX rollup the quota is taken from the rolled-up queue, and per-domain numbers stop applying. § 3.3.10.57queue-to<domain>Automatic combining by matching MX: it does not need a list of domains, but it also comes up with the queue name by itself. § 3.3.10.39max-cold-virtual-mta-msg<domain>With MX rollup the value of the rolled-up queue is used — and less than configured may go through cold addresses. § 3.3.10.57disable-mx-rollup<domain>The automatic combining this line cancels for one recipient. § 3.3.10.103
pmta show queues | grep -i arollup grep -n auto-mx-rollup /etc/pmta/config
3 articles
◇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.◇Reputation monitoring inside the nodeThe engine itself watches the receiving servers’ replies and changes the queue mode on a pattern match — a reaction within the connection, not through telemetry.