RPM Repository

We have updated SpamAssassin packages available for RHEL/CentOS/Cloudlinux 7 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 RHEL/CentOS/Cloudlinux 7 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.2 packages (recommended).
  • The danami-warden-testing repository has bleeding edge SpamAssassin 4.0.0 packages (currently in testing).

Install the Warden Repository and update SpamAssassin

RHEL/CentOS/Cloudlinux 7:

// 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
/usr/bin/sa-update

// restart spamassassin
systemctl restart spamassassin

Install the GeoIP2::Database::Reader Perl Module (Recommended):

yum install perl-devel curl gcc
curl -L https://cpanmin.us | perl - --sudo App::cpanminus
cpanm --self-upgrade --sudo
cpanm --sudo --notest File::Which --force
cpanm --sudo --notest 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

RHEL/CentOS/Cloudlinux 7:

// uninstall the repo and downgrade spamassassin
yum remove danami-warden-repo
yum downgrade spamassassin-3.4.0-4.el7_5   

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