Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
On 16.09.24 13:07, Sirius wrote: On mån, 2024/09/16 at 11:41:24 +0200, Richard via dovecot wrote: On 16.09.24 09:50, Sirius wrote: On sön, 2024/09/15 at 14:30:19 +0200, Richard via dovecot wrote: [snip] I do the same as you. Not exactly. I'm on rspamd 3.9.1-1~82f43560f~bookworm.

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
So, there was actually one piece missing to fully solve this puzzle. For whatever reason, the guide I used back when I set up the scripts put "exec" in front of the actual command. Not sure what it does, but it's garbage in this scenario. As far as I read it somehow replaces bash with whatever

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
This actually helped. So I'm not entirely sure when my method stopped working, but for all I can tell it used to work. Now this has changed. I've changed rspamd-learn-spam.sh to this: #!/bin/sh exec /usr/bin/rspamc -h localhost:11333 -P learn_spam Manually testing this now works better, so

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
On 16.09.24 09:50, Sirius wrote: On sön, 2024/09/15 at 14:30:19 +0200, Richard via dovecot wrote: I've set up dovecot via global sieve scripts to send mails that a user manually moved to their junk directory to rspamd to learn them as spam (and learn messages as ham if they are moved out

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
I did forget to mention both shell scripts have rwx, rwx, - permissions. manually executing rspamc does result in a "IO read error: unexpected EOF". So yet another issue to add to the list I guess... Richard On 16.09.24 09:07, Aki Tuomi wrote: Did you remember to set +x on the rspamd-learn-s

Re: Correct permissions for global sieve scripts

2024-09-16 Thread Richard via dovecot
Good question. There isn't any entry in journal, the only additional message I get is from dovecot Sep 15 13:01:00 dovecot[523226]: imap(rrosner)<823661><4+8RXyYi2L9/AAAB>: program exec:/etc/dovecot/sieve/global/rspamd-learn-spam.sh (823662): Terminated with non-zero exit code 1 right befor

Correct permissions for global sieve scripts

2024-09-15 Thread Richard via dovecot
Hi there, I've set up dovecot via global sieve scripts to send mails that a user manually moved to their junk directory to rspamd to learn them as spam (and learn messages as ham if they are moved out of it). I thought I had it all properly set up, but I'm now again seeing log messages like th