Hi, i got the solution, you need to remove the module perl-DBD-MySQL, and if you use cbpolicyd you need to modify the file /etc/cbpolicyd/cluebringer.conf
in DSN=DBI:mysql:database=postfix_policyd;host=localhost
you need to put DSN=DBI:MariaDB:database=postfix_policyd;host=localhost
then you can update almalinux and still got mail server working.
the solution cost me a lot of time to figure it out.