How do I create an always-suspended queue?
Some sites employ a catch-all queue for messages that didn't get categorized and queued into an expected queue. In the Momentum (AKA Ecelerity) MTA they might do this by defining a binding or binding group that has delivery permanently suspended.
The equivalent concept in KumoMTA is to define an Egress Pool that has no sources, and associate the always-suspended queue with that pool.
That will cause messages that are queued to it to experience a transient failure with a disposition of this form:
Messages will be subject to the usual retry schedule, which you can of course configure for your queue.
To configure this using the queues and sources helpers:
- Add the following to your
queues.toml
:
- Add the following to your
sources.toml
:
- Then in your policy, you can put messages in that queue explicitly: