<domain>set by the Hub
All the other directives in the family answer the question “how much slower.” This one answers another: maybe not from here at all. While the queue is in backoff mode, its messages are moved to the specified sending address or pool — and new ones arriving in the queue too, as long as the mode holds.
It is the queue that moves, not the message. The manual describes it like this: messages from example.com/vmta1, when rerouted to vmta2, end up in the example.com/vmta2 queue. The receiver is the same — what changes is the address they go to it from.
The move can be delayed. The optional after= delays the reroute until a message has sat in the queue for the specified time; the minimum is one minute. It is the difference between “move right away” and “move what has been sitting around.”
The engine catches loops itself. The manual warns separately: when a loop is detected, the reroute is silently ignored, and messages stay in the original queue. Rerouting an address to itself is a loop too. When rerouting to a pool, messages go along the paths where there is no loop.
The Hub gives the backup address its own smtp-source-host and, if the address has a reverse record, its own greeting name.
Move to an address, not into a void. The second address must be fully configured: its own source, its own greeting name, its own signing keys. A reroute to a half-configured address replaces one problem with another.
after= is almost always better than without it. An instant reroute also moves messages that would have gone out anyway — the queue could have entered backoff on a single reply. Ten to fifteen minutes filter out the accidental.
A pool instead of an address, if there are several backups: the engine will distribute messages along loop-free paths itself.
Do not set it for everyone in the general block. A reroute makes sense for specific “receiver — address” pairs, not as a general policy: otherwise the first bad day moves all traffic to one address.
# we move only what has been sitting around, and only where the address is configured <virtual-mta vmta1> smtp-source-host 1.2.3.4 mail1.example.com <domain *> backoff-reroute-to-virtual-mta vmta2, after=10m </domain> </virtual-mta>
what people get wrong and how it ends3 mistakes▶
our experience
§ 3.3.10.59
our experience
4 relations
pmta show queues --mode=backoff --maxitems=20 pmta show queues --maxitems=20 'example.com/*'
3 articles
◇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.◇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.◇Headers the sender uses to control deliverySix control headers let the submitting side choose a stream, tag a message with a job, set signing options and the key, the envelope identifier and the schedule; each is allowed separately and per source.