We have updated SpamAssassin packages available for CentOS/RHEL/Cloudlinux 7/8 users. The repository was created for users who want to run the very latest SpamAssassin with Warden Anti-Spam and Virus Protection instead of the legacy SpamAssassin packages from their OS. If you are using CentOS/RHEL/Cloudlinux 7/8 and would like this setup follow the directions below or open a support ticket in our client area and a technician can upgrade your SpamAssassin packages for you.
danami-warden
repository has SpamAssassin 3.4.3 packages (recommended).danami-warden-testing
repository has bleeding edge SpamAssassin 4.0.0 packages (currently in testing - not for production use).CentOS/Cloudlinux 7/8:
// install the repo and upgrade spamassassin
yum install https://repo.danami.com/danami-warden-repo-1.00-1.noarch.rpm
yum update spamassassin
// this will ensure that /etc/sysconfig/spamassassin is configured correctly for Plesk and Warden
/usr/local/psa/bin/spamassassin --update-server -personal-conf false
/usr/local/psa/bin/spamassassin --update-server -status true -personal-conf true
// update new spamassassin rules
sa-update
// restart spamassassin
systemctl restart spamassassin
Install the GeoIP2::Database::Reader Perl Module (Recommended):
// Centos/RHEL/Cloudlinux
yum install perl perl-devel curl gcc perl-App-cpanminus
// Debian/Ubuntu
apt-get install perl build-essential libssl-dev cpanminus
// Centos/RHEL/Cloudlinux/Debian/Ubuntu
cpanm File::Which --force
cpanm Data::Printer --force
cpanm GeoIP2::Database::Reader
// Sit back and relax while cpamn builds and installs all the requred perl modules.
// After this completes the GeoIP2::Database::Reader and its dependencies should be installed.
Finally go to Warden Anti-spam and Virus Protection
-> Settings
-> Plugin Settings
and enable and configure any of the extra plugins that are now avaiable. We
recommend enabling the new plugins:
FromNameSpoof, HashBL, PDFInfo, Phishing, RelayCountry, ResourceLimits, TxRep (Disable AWL if enabled), and URILocalBL.
CentOS/Cloudlinux 7/8:
// uninstall the repo and downgrade spamassassin
yum remove danami-warden-repo
// Centos/RHEL/Cloudlinux 7
yum downgrade spamassassin-3.4.0-4.el7_5
// Centos/RHEL/Cloudlinux 8
yum downgrade spamassassin-3.4.2-6.el8
// this will ensure that /etc/sysconfig/spamassassin is configured correctly for Plesk and Warden
/usr/local/psa/bin/spamassassin --update-server -personal-conf false
/usr/local/psa/bin/spamassassin --update-server -status true -personal-conf true
// disable any non-compatible plugins
sed -i -e "s/^loadplugin Mail::SpamAssassin::Plugin::SH/#loadplugin Mail::SpamAssassin::Plugin::SH/" /etc/mail/spamassassin/init.pre
sed -i -e "s/^loadplugin Mail::SpamAssassin::Plugin::TesseractOcr/#loadplugin Mail::SpamAssassin::Plugin::TesseractOcr/" /etc/mail/spamassassin/init.pre
// restart spamassassin
systemctl restart spamassassin