Outbound¶
Outbound has the mail waiting to leave (Queue) and the recipients it is no longer sent to (Suppressions). Each tab has its own switch under Settings > Features; the page goes when both are off. The summary under the title counts queued messages and blocked recipients.
Queue¶
The queue is read live from mailcow, rather than from imported message history.
Counts¶
The summary counts messages waiting for retry, on hold and being delivered. The sidebar shows the total of all queued messages.
Mail Queue¶
Search matches part of the sender or any recipient. Search and the queue ID filter use the loaded queue without asking mailcow again.
Last response is Postfix's last result for each recipient, usually the remote server's reason for delaying or refusing delivery. See How the Postfix queue works for queue states.
Actions¶
Retry, hold, release and delete need a read-write API key. Reading the queue and adding a suppression do not.
Retry requests an immediate delivery attempt; Flush All retries the entire queue. Neither fixes the cause of a failure. Hold prevents delivery until Unhold returns the message to the delivery queue.
Suppress opens the Add Suppression dialog for the recipient, to block future mail to that address. With the read-write key, saving it also deletes the queued messages to that address. With multiple recipients, choose the address to suppress. See Suppressions.
Retry Selected and Delete Selected affect selected messages. Delete All affects the entire queue.
Warning
Deletion is permanent. Postfix removes the message without delivering it or telling the sender. Use Delete All only when every queued message is unwanted, such as spam from a hijacked mailbox.
Suppressions¶
Suppressions are kept in the app's database and written to Rspamd's recipient denylist.
Active suppressions go into global_rcpt_blacklist.map (Recipient Denylist), where Rspamd rejects new mail to matching recipients.
Key figures¶
Active counts enabled entries. Hard Bounces and Soft Bounces count active entries with those reasons, not individual bounces. Pending Sync counts active entries not yet written to Rspamd.
Find a suppression¶
Search matches the address, notes and last bounce message. Expired shows entries turned off after their expiry date passed.
The list¶
| Value | Meaning |
|---|---|
| Reason | Hard Bounce: 5.x.x; Soft Bounce: 4.x.x; Deferred Stuck: queue cleanup; Rejected: another bounce status. |
| Source | auto: added by the app; manual: added in the dialog; import: CSV; From Rspamd: added in mailcow to this app's part of the Rspamd map, or loaded back from it when Suppressions was turned on again. These are permanent and no automatic handling changes them; you can edit or delete them. |
| Bounces | Total counted bounces, with hard (H:) and soft (S:) counts. |
| Rspamd | Synced: in step with the map; Pending: waiting to be added, or, on a disabled or expired entry, to be removed. |
Block details¶
Block details on a row shows why the address is blocked, newest first: each bounce that blocked it, extended its block or only counted toward the threshold, each stuck message the queue cleanup deleted, and each change by hand. A bounce keeps the server's reply, the sender, the subject, the Queue ID, the Message-ID and that message's Postfix lines for this address (at most 50, always with the line that decided it). The details are copied when they happen, so they stay after the logs and the message are deleted, for as long as the address is on the list. Open message opens the message while it is still on Messages. Addresses blocked before this version show only the reason their row kept.
Automatic suppressions¶
With Handle failed mail automatically on (Settings > Outbound), two jobs add entries every 5 minutes:
- Detect Suppressions checks delivery-agent
bouncedlines imported in the last 10 minutes, anddeferredlines when a temporary failure keeps retrying. It runs when an Outbound choice needs the Postfix logs. Connection-time rejections (NOQUEUE) and deliveries to mailboxes on this server (lmtp,local,virtual) do not create suppressions. Empty senders andMAILER-DAEMONare skipped. - Cleanup Deferred Queue, when a temporary failure is set to delete after N minutes in the queue and the read-write key is set, deletes deferred messages older than those minutes (60 by default) and, with Block new mail to those addresses., suppresses their recipients as Deferred Stuck. The age counts from arrival, including time before a message became deferred. The recipients are blocked before the message is deleted: if the deletion fails, the next run deletes it without counting it again. A message with a recipient that cannot be read stays in the queue, and so does one to an address whose entry was disabled by hand.
Ignore these domains lists exact domains, without subdomains. Their addresses are never blocked automatically, and a queued message to any of them is never deleted automatically, by cleanup or after a permanent failure. The domains of this server, alias domains and domains turned off in mailcow included, are always treated this way, and both jobs wait until the app has read them from mailcow. For a permanent failure, with the read-write key set, other mail waiting to be sent to that address is deleted, blocked or not. A message is deleted only when every address it goes to failed permanently in the same run; a message that also goes to any other address stays. A deletion counts only when mailcow confirms it, and the settings are checked again right before it. A deletion that fails shows on Status and is not tried again; the mail stays in the queue.
Automatic entries start with Days per failure (7 days by default). A later bounce sets expiry to that value times the failure count, capped at Longest block (90); permanent and temporary failures count together. Lowering the maximum does not shorten blocks already set. Log lines are counted once across restarts and overlapping runs. A bounce never brings an expiry closer. Detection reactivates expired entries, except soft bounces below the failures that Keep retrying. Block new mail to the address after N failures. waits for. A bounce only counts toward an entry that is disabled by hand, a manual or imported entry in force, or an automatic one made permanent: its reason, expiry and state stay as they are.
Earlier versions could double-count bounces. When temporary failures are set to block after N failures, the upgrade disables automatic soft-bounce suppressions and resets their counts to 0. The next sync removes them from Rspamd; new bounces must reach the threshold again. The application log reports how many were lifted. Other entries are unchanged.
With Sync with Rspamd on, new and updated automatic entries are written to Rspamd right after detection. Automatic entries always match the exact address.
Add a suppression¶
A domain must be entered as a plain name. It matches that exact domain, excluding subdomains. Email Address also accepts patterns such as /^.+@example\.(net|org)$/i; the app anchors the whole pattern when writing it to Rspamd.
Entries are permanent by default. Temporary entries last 1 to 365 days, 7 by default. Adding an existing inactive address reactivates it as a permanent manual entry and ignores the expiry fields; an active duplicate is refused.
With the read-write key, adding an entry deletes queued messages to that address, or every recipient at that domain.
Edit, disable and delete¶
Disable keeps the entry and removes its block from Rspamd with the next write. Re-enabling an expired entry requires a new expiry or Permanent block; otherwise the hourly expiry job disables it again. Delete removes the entry permanently; its block is removed from Rspamd with the next write.
With Sync with Rspamd on, adding, enabling, disabling, deleting or importing is written to Rspamd at once.
Sync with Rspamd¶
With Sync with Rspamd on (Settings > Outbound), the list and the app's part of global_rcpt_blacklist.map are kept in step both ways, by themselves. Every 10 minutes, and before every write, the app reads its part of the map: a block deleted there in mailcow is deleted from the list, and a block added there joins the list as From Rspamd. Then the list's changes are written. A change that could not be written waits, shown as Pending, and is written on the next try. Reading needs the Rspamd password; writing also needs the read-write key. It does not need Handle failed mail automatically: a list kept by hand syncs too.
With it off, the list is kept but cannot be changed: Suppressions shows it under a note, entries cannot be added, imported or changed, and the Queue tab has no Suppress. Choices that delete queued mail without blocking keep working.
The app's part is the section between these markers; your own entries go above or below it:
# === MANAGED BY MAILCOW LOGS VIEWER - DO NOT EDIT BELOW ===
# === END MANAGED SECTION ===
A write starts from the map as it is then and changes only the list's waiting entries, so changes made in mailcow stay; one made at the very moment of a write can still be lost. Nothing is written when nothing changes. If the map cannot be read, or the markers are missing or repeated, nothing is read in or written until that is fixed. A write counts only when mailcow confirms it; one whose answer was lost is checked on the next read. Connecting to another mailcow or Rspamd, and the first sync after an upgrade, make every active entry wait to be written there; none is deleted. An entry deleted from the list before this version while its block stayed in Rspamd comes back as From Rspamd. Your own lines, above and below the app's section, stay. Bare addresses among them are anchored during sync so they cannot match longer addresses containing them; a line with regex characters, such as .*@example\.com, is left as written.
The map itself can also be edited on Rspamd: Open in Rspamd, in the ⋯ menu, opens it.
When the sync stops or starts¶
Turning Sync with Rspamd off, or turning Suppressions off, keeps the list. While the sync is off, the list cannot be changed and nothing reaches Rspamd; while Suppressions is on and the list has entries, Needs attention says so. If the app has blocks in Rspamd, it asks whether to remove them or keep them; blocks you keep can still reject new mail. Removing empties only the managed section; your lines above it stay.
Turning it on again reads the changes made in mailcow meanwhile, then writes the list's waiting entries. When entries wait, it asks whether to apply them or to delete the list and the app's blocks in Rspamd. An empty list, after a new install or after the list was deleted, loads the blocks from the managed section instead: they become permanent From Rspamd entries. Without the Rspamd password the blocks load once it is set; until then nothing is blocked automatically.
Import and export¶
Export includes every suppression and its state, counts and expiry. Import reads email, type, reason and notes:
- Headers are optional. If the first cell is
emailoraddress, columns are read by name; otherwise use the order above. - Existing addresses and repeats are skipped.
- Unknown types become
email. Reasons other thanhard_bounce,soft_bounce,rejectedormanualbecomemanual. - Domain entries need pattern form, such as
/^.+@example\.net$/i, as in the export. - Imported entries are active and permanent, with source
import. Re-importing an export does not restore state or expiry, anddeferred_stuckbecomesmanual.
Settings that change this page¶
Under Settings > Outbound:
- Sync with Rspamd defaults on. Handle failed mail automatically defaults off; with it off, nothing is blocked or deleted automatically.
- Permanent delivery failure defaults to blocking new mail to the address and deleting any mail to it still waiting to be sent; Delete any mail to the failed address still waiting to be sent. deletes without blocking; Do nothing. skips permanent failures.
- Temporary delivery failure defaults to Delete mail still waiting to be sent after 60 minutes. Block new mail to those addresses.; the same choice without the second sentence deletes without blocking. With either, Handle failed mail automatically, Suppressions and the read-write API key, Cleanup Deferred Queue runs every 5 minutes; see Automatic suppressions. Keeping the message instead counts soft bounces on an inactive entry, which turns active after the set failures (3 by default), or at the first one; Keep retrying without blocking new mail. skips them.
- Failures to ignore, under Permanent delivery failure and Temporary delivery failure, list failure codes the app takes no action on: it does not block the address, count the failure, or delete waiting mail. Temporarily failed messages stay in the queue for Postfix to retry. Each area is closed at first; its line says what the app ignores.
- Ignore common mail problems applies a fixed list, such as full mailboxes and sending limits. View common mail problems shows the list.
- Other permanent failures to ignore and Other temporary failures to ignore let you choose a failure, type a code, enter one, or add one seen in recent mail logs. The app reads failures from the logs only when they carry a status code; deleting delayed mail by its age in the queue applies with or without one.
- Ignore these domains accepts comma-separated exact domains.
- The options that block need Sync with Rspamd: with it off they are not available, and a picked one changes to the option that does the same without blocking. Block duration is greyed then.
The jobs, including hourly expiry, require Handle failed mail automatically, except the sync with Rspamd. With it off, expiry does not run.
Under Settings > mailcow, set Rspamd password to sync the list. Leave Rspamd URL empty to use mailcow's path; try a direct URL such as http://rspamd-mailcow:11334 if that fails. See Settings.
Under Settings > Features, Queue turns off the Queue tab and the sidebar counter, and Suppressions turns off the Suppressions tab, its jobs and the Outbound settings, and keeps the list as described in When the sync stops or starts. The old name spam-filter in DISABLED_FEATURES turns off both Suppressions and Rspamd.
When something is missing¶
- Failed to load queue means the app could not read it from mailcow. Check the mailcow connection on Status.
- No read-write API key: suppressions can be added, edited and deleted locally, but cannot sync, and queue cleanup does not run. See Getting started.
- No Rspamd password: the sync does not run.
- Rspamd cannot be reached: check the application logs, password and Rspamd URL.
How the Postfix queue works¶
- Incoming messages are newly arrived and being prepared.
- Active messages are being delivered.
- Deferred means a temporary delivery failure, such as a timeout or a remote 4xx response. Postfix retries at growing intervals. After
maximal_queue_lifetime(5 days in default Postfix), it gives up and bounces the message to the sender. - Hold prevents delivery until an administrator releases the message.
A failed manual retry returns the message to the deferred queue. Check Last response for the cause, such as a full mailbox, a blocklisting of your server or a remote refusal.
How suppressions work¶
A delivery status starting with 5, such as 5.1.1 (unknown user), is a permanent failure or hard bounce. A 4 status, such as 4.2.2 (mailbox full), is temporary; Postfix keeps retrying from the deferred queue. Suppressions reject new mail to failing recipients before it is sent. Automatic entries expire so recovered recipients are not blocked forever.





