@stephdl fixed the rspamd configuration for the latest release of rspamd: 1.7.1
It is available from the testing repository:
- nethserver-mail2-filter-2.0.0-1.3.gae5c436.ns7.noarch
- rspamd-1.7.1-1.x86_64
The 1.7 branch has a new bayes DB format. To train the new bayes DB with messages in the Junk folder run the shell following script
for USER in /var/lib/nethserver/vmail/*; do
USER=$(basename $USER)
echo "Loading $USER.."
doveadm search -u $USER mailbox Junk ALL |
while read guid uid; do
doveadm -f pager fetch -u $USER text mailbox-guid $guid uid $uid \
| sed '1d;$d' \
| rspamc -h localhost:11334 learn_spam
done
done