You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In any mail client move mail message to /Junk folder
On the server, watch /var/log/syslog, there will be line:
...
... learn-hamorspam: Cannot open socket file for writing, tried with <UID>
...
... Error: sieve: report-spam: line 23: execute action: failed to execute to program `learn-hamorspam.sh': refer to server log for more information. [<ISO DATETIME>]
...
Problem description
The feature of ham or spam learning by moving in and out of the Junk folder is claimed, but in fact is not working, at least for me.
How to reproduce
What expected
No errors in syslog
What I did
I found that in 90-sieve-extprograms.conf template of dovecot role there is mail_users group
Privileges in both
service sieve-pipe-script {
andservice sieve-execute-action {
blocks are the same:While in worker-controller template of rspamd role there is _rspamd group.
... bind_socket = "/run/rspamd/controller.sock mode=0660 owner=_rspamd group=_rspamd"; ...
What i tried
Both of my attempts didn't resolve the socket write error problem.
Kind of solution
So far, only chmod others privileges to rw for rspamd socket helps.
If someone knows better way write comment here.
Disclaimer:
See attachment for details:
learn-hamorspam-error.log
The text was updated successfully, but these errors were encountered: