# External DATA-stage milter verdict no longer triggers automatic Junk delivery since v0.15.0

**URL:** https://support.stalw.art/t/external-data-stage-milter-verdict-no-longer-triggers-automatic-junk-delivery-since-v0-15-0/2135
**Category:** Issues
**Tags:** no-ai
**Created:** [October 30, 2026, 1:28pm UTC](https://support.stalw.art/t/external-data-stage-milter-verdict-no-longer-triggers-automatic-junk-delivery-since-v0-15-0/2135 "2026-10-30T13:28:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JDunphy](https://support.stalw.art/user_avatar/support.stalw.art/jdunphy/32/58_2.png) [@JDunphy](https://support.stalw.art/u/JDunphy)
#### Post date: [October 30, 2026, 1:28pm UTC](https://support.stalw.art/t/external-data-stage-milter-verdict-no-longer-triggers-automatic-junk-delivery-since-v0-15-0/2135/1 "2026-10-30T13:28:51Z")

</div>

### Issue Description

I use Rspamd through a milter for spam classification and rely on Stalwart to deliver marked messages to the user’s Junk folder. While testing an upgrade from Stalwart 0.14.1 to 1.0.0, I found a change in that behavior.

The milter still runs and adds its headers, but messages marked `X-Spam-Status: Yes` now arrive in Inbox.

This was reproduced using fresh Docker instances and fresh accounts, independently of any account migration. A small test milter adds a deterministic verdict header, so the reproduction does not depend on Rspamd’s scoring configuration.

**Reproduction**

1. Run the official Stalwart image with a fresh account containing the default Inbox and Junk folders.
2. Leave global spam handling enabled, but disable the built-in SMTP spam classifier because the external milter supplies the verdict.
3. Configure an enabled DATA-stage milter to add:

```auto
X-Spam-Status: Yes, score=8

```

4. Deliver a message through unauthenticated inbound SMTP. The recipient has no active Sieve script or trusted-contact exceptions.
5. Repeat with the milter adding `X-Spam-Status: No` as a control.

| Milter verdict | Stalwart 0.14.1 | Stalwart 1.0.0 |
| --- | --- | --- |
| `Yes, score=8` | Junk, with `$junk` keyword | Inbox |
| `No` | Inbox | Inbox |

### Expected Behavior

A trusted external milter’s spam verdict should be able to trigger Stalwart’s normal automatic Junk delivery, while preserving the existing precedence of explicit user filing rules.

**What the source history shows**

The change appears to originate in [commit 53a04ce — “Spam filter performance and accuracy improvements (part 2)”](https://github.com/stalwartlabs/stalwart/commit/53a04ce0691f73819abb909a117bff52a3dbbc9d), first released in **v0.15.0**.

In 0.14.1, delivery checks the configured spam-status header and can use that result to select Junk. That header-based check was removed.

In 1.0.0, delivery uses an internal spam verdict established before the DATA-stage milter runs. Headers subsequently added by the milter do not update that verdict. The automatic Junk delivery code remains present, but the external verdict does not reach it.

Runtime testing covered 0.14.1 and 1.0.0; the first affected release was identified from source history.

Is this an unintended compatibility regression, or is there a supported 1.0 configuration for this workflow?

If a code change is needed, would you support an explicit, trusted-milter mechanism that feeds its verdict into the existing Junk delivery path? Ideally, this would preserve the previous behavior without requiring a separate Sieve rule in every account, and without trusting arbitrary spam headers supplied by senders.

### Stalwart Version

v1.x

### Installation Method

Docker

### Database Backend

RocksDB

### Blob Storage

RocksDB

### Search Engine

Internal

### Directory Backend

Internal

### I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

### I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

### I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

---

<div class="post-metadata">

### Author: ![stalwart](https://support.stalw.art/user_avatar/support.stalw.art/stalwart/32/12_2.png) [@stalwart](https://support.stalw.art/u/stalwart)
#### Post date: [October 30, 2026, 3:36pm UTC](https://support.stalw.art/t/external-data-stage-milter-verdict-no-longer-triggers-automatic-junk-delivery-since-v0-15-0/2135/2 "2026-10-30T15:36:14Z")

</div>

This is how 1.0 works: the automatic Junk filing only looks at the verdict from Stalwart’s own spam classifier. That verdict is set before the DATA-stage milters run, and nothing a milter adds afterwards feeds back into it. With the built-in classifier disabled, every message gets an unknown status and goes to Inbox, which matches what you saw in both of your runs. The header check that 0.14 did was dropped in the spam filter rework you found, so no setting brings it back.

To keep using Rspamd’s verdict, file on the header with a Sieve script in each account:

```auto
require "fileinto";

if header :contains "X-Spam-Status" "Yes" {
    fileinto "Junk";
}

```

That trusts any `X-Spam-Status` header, including one a sender put there, so have Rspamd remove existing copies before it adds its own (the `remove` setting on the routine in its `milter_headers` module).

For a trusted-milter option that sets the verdict directly, please open a topic in Feature Ideas ([Feature Ideas - Stalwart Support](https://support.stalw.art/c/feature-ideas/8)) with the setup you described here.

---

<div class="post-metadata">

### Author: ![JDunphy](https://support.stalw.art/user_avatar/support.stalw.art/jdunphy/32/58_2.png) [@JDunphy](https://support.stalw.art/u/JDunphy)
#### Post date: [October 30, 2026, 3:54pm UTC](https://support.stalw.art/t/external-data-stage-milter-verdict-no-longer-triggers-automatic-junk-delivery-since-v0-15-0/2135/3 "2026-10-30T15:54:05Z")

</div>

I’ll patch my copy of 1.0.x and use that. Thanks for the quick response.
