Knowledge base

set queue

critical

Change a queue's mode by hand
Put a queue into or take it out of backoff mode

Switches the selected queues to backoff or normal mode. In backoff mode the backoff-… settings of the <domain> block apply. Stars in the target change many queues at once.

The mode holds until the next change — by a command or by the node itself under its return conditions, for example backoff-to-normal-after.

The main trap is returning normal mode without removing the cause. If the receiver keeps replying with the same errors, the reply rules put the queue back into backoff mode on the very first attempts.
What the Hub does. It calls it — the “BACKOFF mode” and “NORMAL mode” operations go through POST /command with the node key as set queue –mode=backoff target and –mode=normal. Backoff mode can be given a deadline: when it expires the Hub returns normal mode itself.

The node puts queues into backoff mode on its own too — the Hub tracks those episodes separately, every five minutes.

Recommended values

When to call it:

Question This command or not
hold back a receiver without stopping yes — –mode=backoff
return a queue after analysis yes — –mode=normal
stop completely no — pause queue
The two modes, stars and the link to the backoff-… settings come from the manual (§ 6.3.12). The trap analysis is ours.
Example configuration
# hold back all queues to one receiver and return them
pmta set queue --mode=backoff yahoo.com/*pmta set queue --mode=normal yahoo.com/*
A target with a star changes the mode of all queues to yahoo.com at once.
yellow — — directive names, blue — blocks. They are highlighted the same way in the text of the card.
Compatibility
PowerMTA 6.0
described in the manual of this version · platform: any
The vendor does not state the first version for every directive — there is no note here. The name also appears in the 5.0 edition of the manual.
How to check on the node
Check the mode:
pmta show queues --mode=backoff --no-rcpt-events --maxitems=1000
Queues with this target should appear in the backoff selection or disappear from it.
In the Hub
Cost of a mistake
reversible: harms only while it is set
Scenarios
Emergency stop · Tune the pace for a provider
Priority
critical