Solved IMAPsieve + rSpamd

traskowski

Verified User
Joined
Nov 13, 2012
Messages
63
Hey, I'm trying to configure IMAPSieve + Rspamd but I can’t get it to work.

The Dovecot group is added to the _rspamd user.

I’m following the documentation:
https://docs.directadmin.com/other-...l#setup-usr-local-bin-dovecot-sieve-directory


I modified the sa-learn.sh file over SSH to:
Bash:
#!/bin/bash
echo "$(date) IMAPSIEVE arg=$1" >> /tmp/imap-sieve.log
cmd="learn_spam"
[ "$1" = "ham" ] && cmd="learn_ham"
exec /usr/bin/rspamc -h /var/run/rspamd/rspamd_controller.sock "$cmd"

Note that I added event logging here. Unfortunately, the script does not execute at all.

spam_inbox_prefix is set to 0, and every user has a Junk folder. Should i use Junk folder or INBOX.spam?

The permissions for files in /usr/local/bin/dovecot-sieve (e.g., report-ham.sieve, report-ham.svbin, etc.) are set to root:root. I also tried changing them to mail:mail, but that didn’t help either.
 
Back
Top