After upgrading from Centos 7 to AlmaLinux 8 Amavis is treating mail with low scores as spam. How can I fix this?

After upgrading from Centos 7 to AlmaLinux 8 Amavis is treating mail with low scores as spam. This is due to a bug with the perl-DBD-MySQL driver that Amavis used previously on Centos 7. On AlmaLinux 8+ Amavis uses the perl-DBD-MariaDB which fixes this bug.

To switch the Warden config to use the perl-DBD-MariaDB driver using the Command Line Interface

This will reset the Amavis database credentials and switch to the new perl-DBD-MariaDB driver:

// make sure that the perl-DBD-MariaDB package is installed
yum install perl-DBD-MariaDB

// reset the Amavis database credentials
warden --task=contentfilter:contentfilter --default=yes --reload=yes

// reset the SpamAssassin database credentials
warden --task=antispam:learning --default=yes --reload=yes

 

 

 

  • upgrade, CentOS2Alma, elevate, Centos 7, AlmaLinux 8
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I fix the error: "milter-reject: END-OF-MESSAGE from..." in the log and found the AV in error (cannot read /etc/clam.d/scan.conf).

Cloudlinux / Imunify360 added their own version of ClamAV to their repo which accidentally...

How can I fix the error: Can't connect to TCP port 10024 on ::1 [Cannot assign requested address] when trying to start Amavis?

When trying to start Amavis you see this in the mail log: Oct 02 03:20:15 condor3648 systemd[1]:...

How can I fix the error: Error [Contentfilter_Settings_Contentfilter]. Message [[QUARANTINEDIR] must be a valid directory?

This error means that Amavis was not installed correctly. Try running the Warden from the command...

How can I fix the error: host 127.0.0.1[127.0.0.1] said: 552 5.3.4 Declared message size (1208029 B) exceeds size limit for recipient?

You can set the message size limit for Amavis under Settings -> Policy Settings -> Misc...

How can I fix the error: milter-reject: DATA 451 4.7.1 Service unavailable - try again later?

Reject log In the Warden reject log you see the message: Service unavailable - try again later....