For systems like Alma Linux, CentOS, RHEL:
# install spamassassin
dnf -y install spamassassin
# update once manually
sa-update
# activate and start
systemctl enable spamassassin.service --nowFor macOS (just for testing):
# install spamassassin with macports
port install p5-mail-spamassassin
# update manually
umask 22
sa-update-5.34
# start
spamd-5.34git clone https://github.com/mmdevl/pisf /scratch/pisf
python -m venv /scratch/pisf
source /scratch/pisf/bin/activate
pip install -r /scratch/pisf/requirements.txtcd /scratch/pisf
cp -p pisf.conf-dist pisf.confand personalise at least the "IMAP" stuff.
For systems like Alma Linux, CentOS, RHEL:
cp /scratch/pisf/src/pisf.service /etc/systemd/system/pisf.service
systemctl enable pisf.service --nowFor macOS (just for testing):
/scratch/pisf/bin/python /scratch/pisf/personal-imap-spam-filter.pyAdd the following cronjob:
@daily /scratch/pisf/bin/python /scratch/pisf/learn-imap-spam.py