Submit spam to rspamd from Kmail?

I host my own mail server, which uses Rspamd. I have local anti-spam set up in Kmail with Bogofilter, but when I use the filters set up with the anti-spam wizard, it only trains the local anti-spam. Does anyone know of a way to automatically submit spam to the Rspamd server for training also?

To many variables – I don’t know what your setup is.

Our company stores all the work email on the mail server (nothing gets deleted manually, only archived).

Local spam filtering is forbidden.

Mail client uses IMAP. On the mail server spam gets moved to ~/Inbox/spam.

New email gets sorted either manually or by local filters by the mail client.

Then:

  • eMail in the Inbox that is spam gets manually moved to Inbox/spam
  • eMail that is not spam in Inbox/spam gets moved to Inbox
  • eMail that you’re done with gets moved to Done (and the mail server handles the archiving).

On the mail server it does a regular sweep of the mail boxes and learns what is spam and what is ham by the location of the read emails.

So:

  • Read emails in Inbox/spam are confirmed as spam and deleted.
  • Read emails in Inbox are confirmed as ham.
  • Read emails in Done are confirmed as ham and eventually automatically archived.

Thanks for your reply. My local spam filtering does move emails to Inbox/spam, but I don’t know whether or not rspamd does anything with them at this point (I am also using IMAP), so I suppose I’d need to figure out if the default rspamd config does this.

Have you found what you where looking for?

If not let me know and I’ll investigate further on my side.