I have the following “problem”:

I have synchronized some mailboxes from an old mail system to my Mailcow installation. Unfortunately there were 3 mailboxes where the spam filter was disabled on the old mail server, so on my new server all the spam was synchronized to the inbox during ImapSync.

The question I have now is, is there a good way to rescan already delivered messages in the INBOX with Rspamd and have it move the appropriately classified messages to JUNK?

Or does anyone happen to know a good (cli) tool with which I could do this?

Thanks in advance for constructive feedback =)

5 days later

Maybe this would help? https://docs.mailcow.email/manual-guides/Rspamd/u_e-rspamd/#learn-spam-ham

It indicates rspamd will learn what is spam when you move messages in/out of the Junk folder for the mailbox in question.

If you can export the mail to plain text format that you want to train rspamd on, the above link provides instructions for how to run rspamd against it to learn what messages are spam. But it will train itself with all such messages in that file as spam, so you’d need to curate the file to only have spam messages to begin with :-(

There is a CLI option for rspamd noted in that same link above as well.

Rspamd - rapid spam filtering system. Icon Documentation

is the direct documentation for this service that may be worth reviewing.

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!

No one is typing