Yum Repository

We have updated SpamAssassin packages available for CentOS/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/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.

  • The danami-warden repository has SpamAssassin 3.4.3 packages (recommended).
  • The danami-warden-testing repository has bleeding edge SpamAssassin 4.0.0 packages (currently in testing - not for production use).

Install the Warden Repository and update SpamAssassin

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 / Cloudlinux
yum install perl perl-devel curl gcc perl-App-cpanminus

// Debian / Ubuntu
apt-get install perl build-essential libssl-dev cpanminus

// Centos / 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.

Un-Install the Warden Repository and downgrade SpamAssassin

CentOS/Cloudlinux 7/8:

// uninstall the repo and downgrade spamassassin
yum remove danami-warden-repo

// centos 7
yum downgrade spamassassin-3.4.0-4.el7_5   

// centos 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

// restart spamassassin
systemctl restart spamassassin