An update on this, since I noticed SpamAssassin's status shows a Razor error on the default CWP install. Plus, many users are crying out due to the deluge of spam they are facing. So I gave these instructions a whirl. Just a few updates to note:
With AlmaLinux 8, you only need to install pyzor:
dnf install pyzorAdd 2703 to TCP_OUT in /etc/csf/csf.conf, then issue csf -r to restart the firewall.
You don't need to enable the Pyzor plugin in /etc/mail/spamassassin/v310.pre -- it is already enabled.
The only other change in the directions is that you should create the razor-agent.conf file BEFORE restarting SpamAssassin
/etc/mail/spamassassin/.razor/razor-agent.conf
To test Razor with the GTUBE (Generic Test for Unsolicited Bulk Email) test:
spamassassin -t -D razor2 < /usr/share/doc/spamassassin/sample-spam.txt