IMAPSieve - permission issues (learn from user)

I think that something like that (but for me still don't work):


Code:
#!/bin/bash
inputmail=`/usr/bin/cat`
sudo bash -c 'echo "${inputmail}" | rspamc -h /var/run/rspamd/rspamd_controller.sock learn_spam'
 
The error (user for .sh scripts and sieve scripts is mail:mail), you mean sudo for "mail" user?

Code:
2024-10-10 20:10:42 #1609377(controller) <e02481>; csession; rspamd_controller_check_password: allow unauthorized connection from a unix socket
 
Back
Top