What tasks do I have to complete for Warden after upgrading a server from Centos 7 to AlmaLinux/CloudLinux 8 using the centos2alma conversion tool?

After upgrading from Centos 7 to AlmaLinux/CoundLinux 8 you should run the commands below to get Warden fully functional again:

1. First re-run the Warden installer from the command line. It will install any missing packages for the new OS version.

/usr/local/psa/admin/bin/modules/warden/install.sh

2. Reset the Amavis and SpamAssassin database credentials. This will change the DB connection string used to the new perl-DBD-MariaDB driver used on AlmaLinux/CoundLinux 8+. (The old perl-DBD-MySQL driver used by Centos 7 cannot be used as it has a bug which will cause all mail scanned by Amavis to be flagged as spam):

warden --task=contentfilter:contentfilter --default=yes --reload=yes
warden --task=antispam:learning --default=yes --reload=yes

3. Delete the legacy Perl module List::Util that was installed using Cpan on Centos 7:

rm -rf /usr/local/share/perl5/List

4. If you are using the SH plugin then you need to use the commands below to update the SH plugin from SpamAssassin 3.4 to SpamAssassin 4.0 .

// Re-enable the SH plugin. This will upgrade the SH plugin to the new version
warden --task=antispam:plugins --SH=1 --reload=yes

// Set the SH API key and enable the HBL (replace XXXX with your real API key. Only enable the HBL if your key supports it). This will copy the new SH rules used by the new SH plugin version
warden --task=antispam:plugin:sh --sh_apikey='XXXXXXXXXXXXXXXXXXXXXXXX' --sh_hbl=1 --reload=yes

  • CentOS2Alma, centos7, upgrade
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I change the interface language of the extension?

You can change the interface language under Settings -> Application Settings -> Locale...

How can I disable admin email notifications in Amavis?

Amavis has different default options for controlling where virus, spam, banned file attachments,...

How can I whitelist or blacklist a mail server from greylisting?

To Whitelist a Mail Server From Greylisting Navigate to Warden -> Settings ->...

How can I enable third party anti-virus signatures within Warden to improve the ClamAV detection rate?

Warden supports enabling third party anti-virus signatures to improve the detection rate. These...

How can I setup a local caching DNS resolver to speed up DNS queries used by Amavis?

Run the following command to check if local DNS caching is enabled: host -tTXT...