I have the same problem, I found this when doing rebuild
Running transaction
Preparing : 1/1
Installing : perl-NetAddr-IP-4.079-7.el8.x86_64 1/29
Installing : perl-Mail-SPF-2.9.0-15.el8.noarch 2/29
Running scriptlet: perl-Mail-SPF-2.9.0-15.el8.noarch 2/29
failed to link /usr/bin/spfquery -> /etc/alternatives/spf: /usr/bin/spfquery exists and it is either not a symlink or --keep-foreign was set and link points outside /etc/alternatives