- Edited
Sorry, but that’s not true. Here you can find the ham and spam sieve files (report-ham.sieve and report-spam.sieve) which trigger the corresponding ham and spam bash scripts (rspamd-pipe-ham and rspamd-pipe-spam):
mailcow/mailcow-dockerizedtree/master/data/Dockerfiles/dovecot
You can test quite easily that it works if you add a line which logs something to a file in either rspamd-pipe-ham or rspamd-pipe-spam
Edit: just to clarify this: I just added the following line into /usr/lib/dovecot/sieve/rspamd-pipe-ham inside the dovecot container:
cat ${FILE} > /tmp/hamlog
Then I moved a mail from my Junk folder to the Inbox folder. The unencrypted content of the moved mail was in /tmp/hamlog afterwards.
I even logged the output of the 3 curl commands into a logfile:
{"success":true,"hashes":["16010468719eebce14f431cc0499298a9deb79f141481cf22b07f4742a1d935b1dec6465be7c6c4415e540821914ecdb44708bbedc69d96b119a77ae031986e2","9b3e1f31bff4f5457e6acd07a0a13fe0d37e508c9d9049c0d165ad8d7b4ce9137baa4e5af50ac5a041fb11ddffad7ceec48d90323fe5b2bf2969f4a1655c1c6d"]}
{"success":true}
{"success":true,"hashes":["16010468719eebce14f431cc0499298a9deb79f141481cf22b07f4742a1d935b1dec6465be7c6c4415e540821914ecdb44708bbedc69d96b119a77ae031986e2"
,"9b3e1f31bff4f5457e6acd07a0a13fe0d37e508c9d9049c0d165ad8d7b4ce9137baa4e5af50ac5a041fb11ddffad7ceec48d90323fe5b2bf2969f4a1655c1c6d"]}
That’s rspamd confirming the data.