rspamd

Rspamd: Train spamfilter after mailserver migration

Learn spam: find /var/vmail/mailboxes/*/*/mail/Spam/cur -type f -exec /usr/bin/rspamc learn_spam {} \; Learn ham: find /var/vmail/mailboxes/*/*/mail/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Sent/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Trash/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Drafts/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Templates/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Archives/*/cur -type f -exec /usr/bin/rspamc learn_ham {} \;

Debian: How to add an external repository to unattended upgrades

In this post, we’ll be using Rspamd as an example. ls /var/lib/apt/lists/ look for repository ending with _InRelease e.g.: rspamd: cat /var/lib/apt/lists/rspamd.com_apt-stable_dists_stretch_InRelease result: [...] Origin: Rspamd Label: Rspamd Codename: stretch Date: Wed, 13 Dec 2017 21:02:14 UTC Architectures: amd64 i386 Components: main Description: Apt repository for rspamd stable builds [.