Skip to content

Instantly share code, notes, and snippets.

View Bluehorn's full-sized avatar

Torsten Landschoff Bluehorn

  • Scale GmbH
  • Dresden
View GitHub Profile
@moisseev
moisseev / rspamc_learn.sh
Last active February 25, 2024 13:36
Train Rspamd using Dovecot folders ( * the script expunges folders *)
#!/bin/sh
USER="[email protected]"
FOLDER_PREFIX="train_"
FOLDER_HAM="${FOLDER_PREFIX}ham"
FOLDER_PROB="${FOLDER_PREFIX}prob"
FOLDER_SPAM="${FOLDER_PREFIX}spam"
DOVEADM="/usr/local/bin/doveadm"
RSPAMADM="/usr/local/bin/rspamadm"
RSPAMC_CONNECT="-h localhost:11334" # rspamc (--connect|-h) option