Catch all for domain don't work with spam filter

I had some issues with spam getting thru to my primary e-mail. I have a catch all om my domain (and a domain alias for another one). The catch all works great, use it a lot to use different mail for different services. Although, I notices a got a lot of spam delivered even though I have spamassassin running and working.

I did some tests, and it seems that the filter is working for mail delivered directly to my primary mail, but all those coming from the catch-all gets delivered even with a high spam value. I thew a lot of logs to LLM and see what’s going on.

Shouldn’t spam get catched even for catch-all?

This is the part the LLM concluded (not sure where it got Trash from, it’s delivered to my inbox):

Here is the crucial part of the log

First, SpamAssassin correctly identifies the message as spam:

text

Spam: True ; 12.8 / 5.0

Next, the server-level filter is executed:

text

[WA_AntiSpam_WL_Delete]: Move email into 'Trash' folder
Fileinto [Trash] requested

So far, both spam detection and the rule that moves spam to Trash appear to be working correctly.

However, the following happens afterwards:

text

Start filter WASieveDomain
Keep requested for <contact@kockisen.se>

This is the interesting part.

The domain-level Sieve filter issues a Keep action, which may override the previous request to move the message to Trash.

Finally, the log shows:

text

Redirect delivery to mailbox Trash for unknown recipient

The catch-all mechanism therefore initially redirects the message to the Trash folder of my regular mailbox. However, since this is a redirection to an existing account, subsequent filter processing may affect the final delivery location.