Replies: 8 comments 1 reply
-
|
To me, this seems to be rather a dovecot config issue than an issue with rspamd. Assuming rspamd is running on the same host dovecot runs on, you can use these sieve scripts without any additional shell scripts: I'm using these for years now. I'm not affiliated with rspamd nor with the author of that site. And I can't help with any change requests to these scripts. I just use them as they are. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the answer. Unfortunately, this results in exactly the same error: Feb 23 13:18:11 server.tld dovecot[19965]: imap(user@server.tld)<20045><XAclL84uF+ggAwDmFwfIADWNrrIWv4lo>: Error: program exec:/usr/bin/rspamc (20285): Execution timed out (> 10000 msecs) Since every other program in /usr/bin I call via the script (e.g. echo, curl and cat) works fine, I doubt that this is solely a dovecot issue. But as I said: I'm out of ideas here. To me this looks like a SELinux / AppArmor issue (things don't work without any meaningful error message or apparent reason), but I have neither of them installed. |
Beta Was this translation helpful? Give feedback.
-
|
You can try to debug the dovecot sieve script execution with: (your dovecot path may differ) Maybe that will sched some light. |
Beta Was this translation helpful? Give feedback.
-
|
I had to change the sieve script slightly, because require imapsieve would not work with sieve-test: That worked without error. The same script still gives the error above when moving the email in the imap client. |
Beta Was this translation helpful? Give feedback.
-
|
I changed the script "learn_spam.sh" to run rspamc in the background that it does not get terminated after 10 seconds: Even with the timeout set to 60 s rspamc runs indefinitely (I killed it after 8 minutes or so) and uses 100 % CPU. One more piece to the puzzle but still no solution. |
Beta Was this translation helpful? Give feedback.
-
|
Has anybody found the answer for this? I have completely the same issue. |
Beta Was this translation helpful? Give feedback.
-
|
Had a similar problem. For me the issue was, that rspamc wanted to allocate more than 256M of memory, which is the default limit set by dovecot, see https://doc.dovecot.org/main/core/summaries/settings.html#default_vsz_limit Setting this to |
Beta Was this translation helpful? Give feedback.
-
|
Plus 1. I've been struggling with this all day. I don't suppose anyone has found a fix they can post? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have dovecot / sieve setup that rspamd learns spam/ham when the user moves email into / out of the spam folder. This worked until recently but now calling rspamc seems to timeout after 10 seconds. I see the following error message in the dovecot log:
This is the sieve filter to learn spam:
This is the script "learn_spam.sh":
I tried a couple if things to find where the problem is but it seems all rather strange:
I added some debug code to "learn_spam.sh" to find out where the problem might come from:
The curl works fine. Therefore I can call other programs from a sieve script and there is no firewall issue. The script hangs at "rspamc stat" - there are not logs entries after "echo stat:". 10 seconds later the error messages in the dovecot logs appear.
I tried other calls of rspamc:
I am out of ideas what the issue might be.
Beta Was this translation helpful? Give feedback.
All reactions