My appologies if this has been asked before: I wonder if mailcow will initiate a new scan of an email if it is moved to the junk folder? And if there are any differences if mail is moved by Sogo or imap client.

My setup detects spam as expected upon delivery, but I am pretty sure there is no rescan of an email If/when it is moved to the junk folder. If this is not normal behaviour I welcome input as to how I can set this up.

//Thomas

Yes, rspamd will learn the moved mail as SPAM if you move it to the Junk folder, and will learn it as HAM if you move it from Junk to another mailbox. This is already built in in Dovecot and is independent of the client

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

Thanks for the quick response. How can I debug this functionality? Rspam does not reflect these changes when I check the history.

Fantastic! Spot on 🙂 Thanks.

Trying out the logging now.

Rspam is initiated when a message is moved (and the debug log is huge per item), but these two are at the top. Any concerns with those?

2024-04-11 15:34:03 #41(controller) <dd0d1c>; task; register_fuzzy_controller_call: cannot connect to fuzzy storage [::1]:11445 (local rule): Cannot assign requested address
2024-04-11 15:34:03 #41(controller) <dd0d1c>; task; fuzzy_process_handler: cannot send fuzzy request: Cannot assign requested address

I didn’t get those messages… what exactly did you configure in your logging file?

Exactly as instructed:

`You can try it out and even tweak it to your own preferences by adding this line to data/conf/rspamd/override.d/logging.inc

debug_modules = [“fuzzy_backend”, “bayes”];`

I got a bunch of rspam debug logs (as expected), but as I stated: these were at the top.

Maybe its left over since I just restarted the rspam container?

    pittbull Maybe its left over since I just restarted the rspam container?

    Ah that makes sense

    No one is typing