Update:
On further investigation I believe running dovecot --build-options is not relevant for showing that there are files necessary for Sieve functionality that are missing in installations from the RHEL 9 repo on the Dovecot site. I know this also as (because I wanted to get this solved and working) I compiled Pigeonhole from source from https://pigeonhole.dovecot.org/download. I compiled Pigeonhole from source after downloading necessary devel header files. I made sure it installed into /usr/ not /usr/local.
make clean
./configure --with-dovecot=/usr/lib64/dovecot --prefix=/usr
make
make install
After installing Pigeonhole — and working through the necessary config in /etc/dovecot/dovecot.conf (config all in main file) and building .sieve scripts I got a **fully working** (and tested) Sieve setup — for example emails flagged as SPAM by Rspamd automatically moved to /Junk.
Anyway two points:
- It seems clear and confirmed that the
dovecot-sieve2.4.2 package does not install necessary files. As a help I did a files list of both thedovecotanddovecot-sievepackages and selected out files in/usr/lib64/dovecotand merged sorted them. Then a did a find listing of/usr/lib64/dovecotfrom the server and fed them into an online diff checker, you can have a look here to see the differences...
https://www.diffchecker.com/PuShQgqJ/
there are a lot of files added by compiling Pigeonhole.
- Moving forward I imagine there will be a re-release of the
dovecot-sievepackage. I am wondering about my installation — which is working fine now. Should — would it be best to try to reinstall the updateddovecot-sievepackage? Or can I stay with the (again working) compiled Pigeonhole. Obviously when it comes time to update Dovecot + Sieve that will/may be a problem.
- Patrick